Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_CutTorque2",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.001143/0.001143, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001187/0.001187, allocations: 192 kB / 18.56 MB, free: 4.434 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.436/1.436, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2178/0.2178, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 71.8 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1446, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01057/0.1552, allocations: 9.72 MB / 479.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006379/0.1617, allocations: 2.924 MB / 482 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.1631, allocations: 47.94 kB / 482 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003601/0.1667, allocations: 2.002 MB / 484.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0029/0.1697, allocations: 1.125 MB / 485.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007208/0.1704, allocations: 295.4 kB / 485.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002864/0.1733, allocations: 2.336 MB / 487.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00304/0.1763, allocations: 2.336 MB / 490.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001803/0.1782, allocations: 0.8995 MB / 491 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.1798, allocations: 1.18 MB / 492.2 MB, free: 7.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003606/0.1802, allocations: 196 kB / 492.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001257/0.1814, allocations: 0.6943 MB / 493.1 MB, free: 6.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001154/0.1826, allocations: 1.149 MB / 494.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.184, allocations: 1.343 MB / 495.6 MB, free: 3.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004677/0.1887, allocations: 4.287 MB / 499.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1887, allocations: 0 / 499.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1888, allocations: 0 / 499.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001089/0.1889, allocations: 0 / 499.9 MB, free: 15.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.005135/0.194, allocations: 2.943 MB / 0.491 GB, free: 12.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1941, allocations: 8.031 kB / 0.491 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000557/0.1946, allocations: 499.8 kB / 0.4915 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005127/0.1998, allocations: 1.588 MB / 0.4931 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002513/0.2023, allocations: 1.336 MB / 0.4944 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.2024, allocations: 155.8 kB / 0.4945 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/0.2028, allocations: 191.9 kB / 0.4947 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009922/0.2127, allocations: 6.425 MB / 0.501 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.662e-05/0.2128, allocations: 15.88 kB / 0.501 GB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002323/0.213, allocations: 87.91 kB / 0.5011 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002211/0.2153, allocations: 1.411 MB / 0.5025 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2123/0.4276, allocations: 5.486 MB / 0.5078 GB, free: 45.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02837/0.456, allocations: 20.61 MB / 0.5279 GB, free: 31.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003663/0.4597, allocations: 2.005 MB / 0.5299 GB, free: 30.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000795/0.4606, allocations: 0.6978 MB / 0.5306 GB, free: 30.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005039/0.4656, allocations: 3.623 MB / 0.5341 GB, free: 28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.4656, allocations: 39.84 kB / 0.5342 GB, free: 27.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.645e-06/0.4657, allocations: 0 / 0.5342 GB, free: 27.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004623/0.4703, allocations: 1.988 MB / 0.5361 GB, free: 26.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.4703, allocations: 59.78 kB / 0.5362 GB, free: 26.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002223/0.4726, allocations: 1.96 MB / 0.5381 GB, free: 24.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.4726, allocations: 40.22 kB / 0.5381 GB, free: 24.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007722/0.4734, allocations: 1.883 MB / 0.5399 GB, free: 22.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.4736, allocations: 315.8 kB / 0.5402 GB, free: 21.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005964/0.4742, allocations: 0.619 MB / 0.5409 GB, free: 21.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.969e-05/0.4743, allocations: 361.9 kB / 0.5412 GB, free: 20.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009618/0.4753, allocations: 0.8881 MB / 0.5421 GB, free: 20.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/0.477, allocations: 2.78 MB / 0.5448 GB, free: 16.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/0.4802, allocations: 3.996 MB / 0.5487 GB, free: 11.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.397e-05/0.4802, allocations: 16 kB / 0.5487 GB, free: 11.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004162/0.4844, allocations: 3.555 MB / 0.5522 GB, free: 7.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.19e-05/0.4844, allocations: 32 kB / 0.5522 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.717e-05/0.4845, allocations: 68 kB / 0.5523 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.733e-05/0.4846, allocations: 88 kB / 0.5523 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.4861, allocations: 0.6578 MB / 0.553 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.677e-05/0.4862, allocations: 139.4 kB / 0.5531 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4879, allocations: 427.7 kB / 0.5535 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000258/0.4882, allocations: 184 kB / 0.5537 GB, free: 6.219 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (365): * Single equations (assignments): 360 * Array equations: 5 * 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.001741/0.49, allocations: 1.377 MB / 0.5551 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/0.4901, allocations: 157.9 kB / 0.5552 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.4904, allocations: 197.2 kB / 0.5554 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/0.4904, allocations: 11.94 kB / 0.5554 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.4905, allocations: 0 / 0.5554 GB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4905, allocations: 7.984 kB / 0.5554 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004781/0.4953, allocations: 4.095 MB / 0.5594 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.4953, allocations: 4 kB / 0.5594 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.4956, allocations: 108.7 kB / 0.5595 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/0.4957, allocations: 8 kB / 0.5595 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.4957, allocations: 20 kB / 0.5595 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.335e-06/0.4957, allocations: 11.94 kB / 0.5596 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.4957, allocations: 11.94 kB / 0.5596 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.4972, allocations: 1.264 MB / 0.5608 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.4976, allocations: 254.7 kB / 0.561 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.4977, allocations: 23.83 kB / 0.5611 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.4982, allocations: 19.98 kB / 0.5611 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.4983, allocations: 59.81 kB / 0.5611 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-05/0.4984, allocations: 30.88 kB / 0.5612 GB, free: 14.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001733/0.5001, allocations: 1.287 MB / 0.5624 GB, free: 13.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5001, allocations: 0 / 0.5624 GB, free: 13.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002633/0.5028, allocations: 0.7063 MB / 0.5631 GB, free: 12.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * 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.001856/0.5046, allocations: 1.869 MB / 0.5649 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00345/0.5081, allocations: 2.265 MB / 0.5672 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5081, allocations: 64 / 0.5672 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005461/0.5087, allocations: 461.9 kB / 0.5676 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.51, allocations: 248.3 kB / 0.5678 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03181/0.5418, allocations: 22.39 MB / 0.5897 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003307/0.5452, allocations: 2.316 MB / 0.592 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002443/0.5476, allocations: 0.9687 MB / 0.5929 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/0.5493, allocations: 1.066 MB / 0.5939 GB, free: 9.645 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5493, allocations: 4 kB / 0.594 GB, free: 9.641 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06559/0.6149, allocations: 32.48 MB / 0.6257 GB, free: 9.309 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/9.068, allocations: 17.89 kB / 0.6257 GB, free: 9.293 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_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_CutTorque2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches