Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001039, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2008/0.2008, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 63.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3047, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01657/0.3213, allocations: 15.39 MB / 0.5335 GB, free: 8.266 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.3329, allocations: 5.1 MB / 0.5384 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003755/0.3367, allocations: 123.8 kB / 0.5386 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01214/0.3489, allocations: 6.027 MB / 0.5444 GB, free: 220 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008684/0.3577, allocations: 2.937 MB / 0.5473 GB, free: 14.1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003962/0.3617, allocations: 1.576 MB / 0.5488 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.3731, allocations: 7.738 MB / 0.5564 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009931/0.3831, allocations: 7.469 MB / 0.5637 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005153/0.3883, allocations: 3.003 MB / 0.5666 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005437/0.3938, allocations: 3.879 MB / 0.5704 GB, free: 6.668 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002137/0.3959, allocations: 0.5859 MB / 0.571 GB, free: 6.082 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003824/0.3998, allocations: 1.432 MB / 0.5724 GB, free: 4.648 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004466/0.4043, allocations: 3.659 MB / 0.576 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006181/0.4105, allocations: 3.992 MB / 0.5799 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.4265, allocations: 12.17 MB / 0.5917 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4266, allocations: 0 / 0.5917 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.4266, allocations: 8 kB / 0.5918 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004024/0.427, allocations: 0 / 0.5918 GB, free: 0.7344 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.01973/0.4467, allocations: 9.014 MB / 0.6006 GB, free: 7.609 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4468, allocations: 8.031 kB / 0.6006 GB, free: 7.602 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002874/0.4497, allocations: 1.215 MB / 0.6018 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01098/0.4607, allocations: 2.683 MB / 0.6044 GB, free: 3.684 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01153/0.4722, allocations: 5.936 MB / 0.6102 GB, free: 13.67 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003554/0.4726, allocations: 446.8 kB / 0.6106 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001622/0.4743, allocations: 0.5544 MB / 0.6111 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03057/0.5048, allocations: 17.43 MB / 0.6282 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00019/0.5051, allocations: 79.34 kB / 0.6282 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008961/0.506, allocations: 267.8 kB / 0.6285 GB, free: 9.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004607/0.5106, allocations: 3.174 MB / 0.6316 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/0.5373, allocations: 13.4 MB / 0.6447 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08011/0.6175, allocations: 65.89 MB / 0.709 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3945/1.012, allocations: 5.387 MB / 0.7143 GB, free: 165.6 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0035/1.016, allocations: 2.119 MB / 0.7164 GB, free: 165.5 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/1.033, allocations: 10.01 MB / 0.7261 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/1.033, allocations: 54.59 kB / 0.7262 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 4.599e-06/1.033, allocations: 0 / 0.7262 GB, free: 160.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.0371/1.07, allocations: 14.61 MB / 0.7404 GB, free: 155 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/1.07, allocations: 149.1 kB / 0.7406 GB, free: 154.8 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007125/1.077, allocations: 6.428 MB / 0.7469 GB, free: 152.7 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0002803/1.077, allocations: 64.38 kB / 0.7469 GB, free: 152.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002404/1.08, allocations: 5.442 MB / 0.7522 GB, free: 148.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006556/1.081, allocations: 0.8553 MB / 0.7531 GB, free: 148 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001623/1.082, allocations: 1.698 MB / 0.7547 GB, free: 147 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.872e-05/1.082, allocations: 305.1 kB / 0.755 GB, free: 146.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002954/1.085, allocations: 2.311 MB / 0.7573 GB, free: 145.5 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004604/1.09, allocations: 7.727 MB / 0.7648 GB, free: 135.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008136/1.098, allocations: 10.94 MB / 0.7755 GB, free: 121.6 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000144/1.098, allocations: 59.94 kB / 0.7756 GB, free: 121.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.0139/1.112, allocations: 9.691 MB / 0.785 GB, free: 111.8 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.112, allocations: 88 kB / 0.7851 GB, free: 111.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/1.112, allocations: 192 kB / 0.7853 GB, free: 111.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000162/1.113, allocations: 259.9 kB / 0.7855 GB, free: 111.3 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005412/1.118, allocations: 1.918 MB / 0.7874 GB, free: 109.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002126/1.118, allocations: 370.6 kB / 0.7878 GB, free: 109 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005714/1.124, allocations: 419.8 kB / 0.7882 GB, free: 108.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008848/1.125, allocations: 0.5232 MB / 0.7887 GB, free: 108.1 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1039): * Single equations (assignments): 1028 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005165/1.13, allocations: 3.401 MB / 0.792 GB, free: 104.7 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/1.131, allocations: 0.5626 MB / 0.7926 GB, free: 104.1 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/1.132, allocations: 0.6328 MB / 0.7932 GB, free: 103.5 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/1.132, allocations: 24 kB / 0.7932 GB, free: 103.4 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/1.132, allocations: 0 / 0.7932 GB, free: 103.4 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/1.132, allocations: 11.97 kB / 0.7932 GB, free: 103.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/1.152, allocations: 15.28 MB / 0.8081 GB, free: 87.49 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.416e-05/1.152, allocations: 44 kB / 0.8082 GB, free: 87.45 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/1.153, allocations: 447.1 kB / 0.8086 GB, free: 87.01 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-05/1.154, allocations: 64.81 kB / 0.8087 GB, free: 86.95 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/1.154, allocations: 100 kB / 0.8088 GB, free: 86.85 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.052e-05/1.154, allocations: 95.64 kB / 0.8088 GB, free: 86.76 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.62e-05/1.154, allocations: 71.69 kB / 0.8089 GB, free: 86.69 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003593/1.157, allocations: 4.343 MB / 0.8132 GB, free: 81.64 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/1.159, allocations: 0.661 MB / 0.8138 GB, free: 80.96 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008632/1.16, allocations: 111.9 kB / 0.8139 GB, free: 80.85 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002357/1.162, allocations: 108 kB / 0.814 GB, free: 80.75 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/1.162, allocations: 310.5 kB / 0.8143 GB, free: 80.44 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.163, allocations: 139.4 kB / 0.8144 GB, free: 80.31 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005886/1.168, allocations: 3.993 MB / 0.8183 GB, free: 76.33 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.21e-07/1.168, allocations: 0 / 0.8183 GB, free: 76.33 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008013/1.176, allocations: 1.356 MB / 0.8197 GB, free: 74.97 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004821/1.181, allocations: 5.076 MB / 0.8246 GB, free: 69.2 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007521/1.189, allocations: 5.467 MB / 0.83 GB, free: 63.78 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 3.301e-05/1.189, allocations: 8 kB / 0.83 GB, free: 63.77 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00143/1.19, allocations: 1.201 MB / 0.8311 GB, free: 62.58 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005812/1.196, allocations: 0.912 MB / 0.832 GB, free: 61.68 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.082/1.278, allocations: 66.92 MB / 0.8974 GB, free: 1.266 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00843/1.287, allocations: 5.25 MB / 0.9025 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00627/1.293, allocations: 2.57 MB / 0.905 GB, free: 9.402 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005372/1.298, allocations: 3.42 MB / 0.9084 GB, free: 5.98 MB / 0.5919 GB Notification: Performance of SimCode: time 2.906e-06/1.298, allocations: 0 / 0.9084 GB, free: 5.98 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3622/1.661, allocations: 94.7 MB / 1.001 GB, free: 177.9 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.01/32.67, allocations: 8.812 kB / 1.001 GB, free: 177.8 MB / 0.6232 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches