Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.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.CutTorque3,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.CutTorque3") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque3,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.CutTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 96.89 kB / 16.99 MB, free: 6.402 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.001344/0.001345, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.413/1.413, allocations: 223.2 MB / 241.8 MB, free: 376 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.198/0.198, allocations: 44.22 MB / 337.1 MB, free: 2.887 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1332, allocations: 61.92 MB / 471.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.03174/0.165, allocations: 32.3 MB / 0.4919 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.1884, allocations: 7.51 MB / 0.4993 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00747/0.1959, allocations: 151.7 kB / 0.4994 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005644/0.2015, allocations: 1.66 MB / 0.501 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2916/0.4932, allocations: 4.703 MB / 0.5056 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002355/0.4956, allocations: 222.8 kB / 0.5059 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004146/0.4997, allocations: 1.272 MB / 0.5071 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006323/0.5061, allocations: 2.95 MB / 0.51 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.5074, allocations: 0.5537 MB / 0.5105 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.5084, allocations: 0.6944 MB / 0.5112 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002706/0.5087, allocations: 86.56 kB / 0.5113 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.5102, allocations: 0.5231 MB / 0.5118 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.5113, allocations: 0.9187 MB / 0.5127 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005611/0.5119, allocations: 0.5213 MB / 0.5132 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004941/0.5169, allocations: 3.422 MB / 0.5165 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.5169, allocations: 1.031 kB / 0.5165 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.5169, allocations: 4 kB / 0.5165 GB, free: 10.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001482/0.517, allocations: 0 / 0.5165 GB, free: 10.91 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.007562/0.5246, allocations: 2.499 MB / 0.519 GB, free: 9.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.5247, allocations: 8.75 kB / 0.519 GB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006644/0.5313, allocations: 1.917 MB / 0.5209 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004282/0.5356, allocations: 1.318 MB / 0.5221 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.5358, allocations: 150.5 kB / 0.5223 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.537, allocations: 193.8 kB / 0.5225 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/0.5558, allocations: 6.457 MB / 0.5288 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001264/0.556, allocations: 11.94 kB / 0.5288 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.5571, allocations: 91.17 kB / 0.5289 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002681/0.5598, allocations: 1.404 MB / 0.5302 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.5742, allocations: 5.514 MB / 0.5356 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0413/0.6156, allocations: 20.64 MB / 0.5558 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005237/0.6209, allocations: 2.007 MB / 0.5577 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008428/0.6294, allocations: 3.668 MB / 0.5613 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.6295, allocations: 42.5 kB / 0.5614 GB, free: 1.535 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 7.304e-06/0.6295, allocations: 0 / 0.5614 GB, free: 1.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006552/0.636, allocations: 2.226 MB / 0.5635 GB, free: 15.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.6362, allocations: 55.84 kB / 0.5636 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/0.6411, allocations: 1.957 MB / 0.5655 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.6412, allocations: 39.83 kB / 0.5655 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/0.6431, allocations: 1.879 MB / 0.5674 GB, free: 12.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005009/0.6436, allocations: 312.6 kB / 0.5677 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002633/0.6439, allocations: 57.59 kB / 0.5677 GB, free: 12.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0005009/0.6444, allocations: 496.8 kB / 0.5682 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/0.6464, allocations: 0.8796 MB / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00349/0.6499, allocations: 2.757 MB / 0.5718 GB, free: 7.801 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.6528, allocations: 1.563 MB / 0.5733 GB, free: 6.418 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/0.6529, allocations: 16 kB / 0.5733 GB, free: 6.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.007472/0.6604, allocations: 3.528 MB / 0.5767 GB, free: 3.262 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.298e-05/0.6606, allocations: 32 kB / 0.5768 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.6607, allocations: 68 kB / 0.5768 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/0.6609, allocations: 96 kB / 0.5769 GB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/0.6631, allocations: 0.6551 MB / 0.5776 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000161/0.6633, allocations: 132.6 kB / 0.5777 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003102/0.6664, allocations: 429.7 kB / 0.5781 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005491/0.667, allocations: 186.5 kB / 0.5783 GB, free: 1.777 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003551/0.6705, allocations: 1.378 MB / 0.5796 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004741/0.671, allocations: 161.9 kB / 0.5798 GB, free: 296 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005805/0.6716, allocations: 193.2 kB / 0.58 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.313e-05/0.6717, allocations: 15.52 kB / 0.58 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.6717, allocations: 4 kB / 0.58 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.6717, allocations: 3.984 kB / 0.58 GB, free: 80 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.6824, allocations: 4.092 MB / 0.584 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/0.6825, allocations: 8 kB / 0.584 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.683, allocations: 95.86 kB / 0.5841 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-05/0.683, allocations: 15.98 kB / 0.5841 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.6831, allocations: 20 kB / 0.5841 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.668e-05/0.6831, allocations: 15.09 kB / 0.5841 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/0.6832, allocations: 10.62 kB / 0.5841 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.6854, allocations: 1.739 MB / 0.5858 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007654/0.6861, allocations: 262.6 kB / 0.5861 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004492/0.6866, allocations: 20 kB / 0.5861 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008222/0.6874, allocations: 27.89 kB / 0.5861 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.6876, allocations: 56.62 kB / 0.5862 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.6876, allocations: 30.5 kB / 0.5862 GB, free: 9.293 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003069/0.6907, allocations: 1.278 MB / 0.5875 GB, free: 8.027 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6907, allocations: 0 / 0.5875 GB, free: 8.027 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004356/0.6951, allocations: 0.6995 MB / 0.5882 GB, free: 7.328 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004847/0.6956, allocations: 145.9 kB / 0.5883 GB, free: 7.188 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003925/0.6995, allocations: 2.014 MB / 0.5903 GB, free: 5.336 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.6995, allocations: 4 kB / 0.5903 GB, free: 5.332 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007104/0.7003, allocations: 462.6 kB / 0.5907 GB, free: 4.883 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.702, allocations: 241.6 kB / 0.5909 GB, free: 4.652 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/0.7157, allocations: 6.273 MB / 0.5971 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004497/0.7203, allocations: 2.375 MB / 0.5994 GB, free: 11.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002919/0.7232, allocations: 0.964 MB / 0.6003 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004609/0.7237, allocations: 115.4 kB / 0.6004 GB, free: 10.77 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.7237, allocations: 0 / 0.6004 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Templates: time 0.03756/0.7613, allocations: 13.6 MB / 0.6137 GB, free: 13.27 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque3/CutTorque3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches