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: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001088/0.001088, allocations: 188 kB / 19.34 MB, free: 3.641 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.391/1.391, allocations: 222.9 MB / 243 MB, free: 15.14 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.2259/0.2259, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 58.12 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01191/0.1403, allocations: 9.738 MB / 480.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006112/0.1464, allocations: 2.916 MB / 483.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.1479, allocations: 55.94 kB / 483.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003469/0.1514, allocations: 1.998 MB / 485.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00268/0.1542, allocations: 1.124 MB / 486.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.1549, allocations: 299.4 kB / 486.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.1578, allocations: 2.325 MB / 489.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002572/0.1604, allocations: 2.324 MB / 491.5 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001482/0.1619, allocations: 0.9073 MB / 492.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.1636, allocations: 1.176 MB / 493.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000483/0.1641, allocations: 200 kB / 493.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.1655, allocations: 0.6982 MB / 494.5 MB, free: 5.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.1666, allocations: 1.142 MB / 495.6 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.168, allocations: 1.347 MB / 496.9 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005023/0.1731, allocations: 4.445 MB / 0.4896 GB, free: 14.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.1731, allocations: 4 kB / 0.4896 GB, free: 14.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1731, allocations: 3.938 kB / 0.4896 GB, free: 14.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001153/0.1732, allocations: 0 / 0.4896 GB, free: 14.82 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.006463/0.1797, allocations: 2.943 MB / 0.4925 GB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/0.1798, allocations: 12.03 kB / 0.4925 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004837/0.1846, allocations: 1.58 MB / 0.4941 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/0.1878, allocations: 1.367 MB / 0.4954 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.188, allocations: 144.1 kB / 0.4955 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003858/0.1884, allocations: 195.8 kB / 0.4957 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009753/0.1981, allocations: 6.425 MB / 0.502 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.1982, allocations: 19.86 kB / 0.502 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.1985, allocations: 83.91 kB / 0.5021 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002039/0.2005, allocations: 1.407 MB / 0.5035 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2515/0.4521, allocations: 5.486 MB / 0.5088 GB, free: 45.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02529/0.4774, allocations: 20.46 MB / 0.5288 GB, free: 32.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.4809, allocations: 2.005 MB / 0.5308 GB, free: 31.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007927/0.4817, allocations: 0.6925 MB / 0.5314 GB, free: 30.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005636/0.4874, allocations: 3.629 MB / 0.535 GB, free: 28.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.4874, allocations: 35.78 kB / 0.535 GB, free: 28.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.795e-06/0.4874, allocations: 4 kB / 0.535 GB, free: 28.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.004397/0.4918, allocations: 1.985 MB / 0.537 GB, free: 26.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.4919, allocations: 59.78 kB / 0.537 GB, free: 26.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.4939, allocations: 1.958 MB / 0.5389 GB, free: 24.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.4939, allocations: 37.14 kB / 0.539 GB, free: 24.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006774/0.4946, allocations: 1.882 MB / 0.5408 GB, free: 22.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.4948, allocations: 319.8 kB / 0.5411 GB, free: 21.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005599/0.4953, allocations: 0.623 MB / 0.5417 GB, free: 21.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.094e-05/0.4954, allocations: 356.3 kB / 0.5421 GB, free: 20.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009365/0.4963, allocations: 0.8959 MB / 0.5429 GB, free: 20.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/0.4979, allocations: 2.77 MB / 0.5456 GB, free: 16.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/0.5007, allocations: 3.998 MB / 0.5495 GB, free: 11.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/0.5007, allocations: 20 kB / 0.5496 GB, free: 11.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.00379/0.5045, allocations: 3.555 MB / 0.553 GB, free: 7.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/0.5045, allocations: 36 kB / 0.5531 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/0.5046, allocations: 68.81 kB / 0.5531 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.168e-05/0.5047, allocations: 88 kB / 0.5532 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.5062, allocations: 0.6628 MB / 0.5539 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.377e-05/0.5063, allocations: 131.4 kB / 0.554 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.5078, allocations: 423.6 kB / 0.5544 GB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.508, allocations: 188 kB / 0.5546 GB, free: 6.281 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.001346/0.5094, allocations: 1.366 MB / 0.5559 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.5095, allocations: 157.9 kB / 0.5561 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002462/0.5098, allocations: 197.2 kB / 0.5562 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.5098, allocations: 18.98 kB / 0.5563 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.5098, allocations: 0 / 0.5563 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.5098, allocations: 3.984 kB / 0.5563 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004848/0.5147, allocations: 4.092 MB / 0.5603 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.5147, allocations: 11.98 kB / 0.5603 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.515, allocations: 100.8 kB / 0.5604 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.5151, allocations: 8.812 kB / 0.5604 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.5151, allocations: 23.98 kB / 0.5604 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.5151, allocations: 15.94 kB / 0.5604 GB, free: 152 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5151, allocations: 11.94 kB / 0.5604 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001296/0.5164, allocations: 1.266 MB / 0.5617 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003214/0.5168, allocations: 246.8 kB / 0.5619 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.5169, allocations: 23.98 kB / 0.5619 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/0.5174, allocations: 29.2 kB / 0.562 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.407e-05/0.5175, allocations: 55.77 kB / 0.562 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.254e-05/0.5175, allocations: 33.86 kB / 0.562 GB, free: 14.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00151/0.5191, allocations: 1.283 MB / 0.5633 GB, free: 13.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5191, allocations: 0 / 0.5633 GB, free: 13.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002312/0.5214, allocations: 0.7127 MB / 0.564 GB, free: 12.39 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.0002901/0.5217, allocations: 144.9 kB / 0.5641 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002928/0.5246, allocations: 2.06 MB / 0.5661 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5246, allocations: 0 / 0.5661 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005233/0.5252, allocations: 472.9 kB / 0.5666 GB, free: 9.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5262, allocations: 238.8 kB / 0.5668 GB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007428/0.5337, allocations: 5.153 MB / 0.5718 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.5359, allocations: 2.319 MB / 0.5741 GB, free: 1.906 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001881/0.5378, allocations: 0.9657 MB / 0.5751 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.5381, allocations: 123.4 kB / 0.5752 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5381, allocations: 0 / 0.5752 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of Templates: time 0.03001/0.5681, allocations: 14.42 MB / 0.5893 GB, free: 2.449 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/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