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.00109/0.00109, allocations: 95.83 kB / 16.98 MB, free: 5.941 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.001035/0.001035, allocations: 182.4 kB / 17.87 MB, free: 5.609 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.377/1.377, allocations: 223.2 MB / 241.8 MB, free: 384 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.1896/0.1896, allocations: 44.22 MB / 337.1 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003364, allocations: 8.812 kB / 409.5 MB, free: 27.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 61.92 MB / 471.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03093/0.1556, allocations: 32.3 MB / 0.4919 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01883/0.1744, allocations: 7.514 MB / 0.4993 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008527/0.183, allocations: 151.7 kB / 0.4994 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005623/0.1887, allocations: 1.657 MB / 0.501 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2816/0.4703, allocations: 4.707 MB / 0.5056 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.4732, allocations: 220.8 kB / 0.5058 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003797/0.4771, allocations: 1.278 MB / 0.5071 GB, free: 11.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005501/0.4826, allocations: 2.942 MB / 0.51 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.484, allocations: 0.5588 MB / 0.5105 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.4854, allocations: 0.6968 MB / 0.5112 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003963/0.4858, allocations: 86.72 kB / 0.5113 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.4873, allocations: 0.5195 MB / 0.5118 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001261/0.4885, allocations: 0.9184 MB / 0.5127 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007249/0.4893, allocations: 0.5227 MB / 0.5132 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004684/0.494, allocations: 3.42 MB / 0.5165 GB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.494, allocations: 0 / 0.5165 GB, free: 10.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.494, allocations: 1.641 kB / 0.5165 GB, free: 10.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001526/0.4942, allocations: 1.281 kB / 0.5165 GB, free: 10.95 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.006427/0.5006, allocations: 2.499 MB / 0.519 GB, free: 9.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.5007, allocations: 9.594 kB / 0.519 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006852/0.5075, allocations: 1.914 MB / 0.5209 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004545/0.5121, allocations: 1.322 MB / 0.5221 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.5124, allocations: 150.5 kB / 0.5223 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00167/0.5141, allocations: 196.2 kB / 0.5225 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.527, allocations: 6.452 MB / 0.5288 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.867e-05/0.5271, allocations: 26.3 kB / 0.5288 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/0.5273, allocations: 87.42 kB / 0.5289 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002085/0.5294, allocations: 1.399 MB / 0.5302 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01142/0.5409, allocations: 5.519 MB / 0.5356 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02919/0.5701, allocations: 20.63 MB / 0.5558 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/0.5743, allocations: 2.006 MB / 0.5577 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007337/0.5817, allocations: 3.665 MB / 0.5613 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.5818, allocations: 38.56 kB / 0.5614 GB, free: 1.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 4.248e-06/0.5818, allocations: 0 / 0.5614 GB, free: 1.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.005593/0.5874, allocations: 2.236 MB / 0.5635 GB, free: 15.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.5875, allocations: 59.84 kB / 0.5636 GB, free: 15.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/0.5907, allocations: 1.949 MB / 0.5655 GB, free: 14.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.892e-05/0.5908, allocations: 39.02 kB / 0.5655 GB, free: 14.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/0.5922, allocations: 1.88 MB / 0.5674 GB, free: 12.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003107/0.5925, allocations: 317.5 kB / 0.5677 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/0.5926, allocations: 56.44 kB / 0.5677 GB, free: 12.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002938/0.5929, allocations: 494.5 kB / 0.5682 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.5942, allocations: 0.8802 MB / 0.5691 GB, free: 11.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0024/0.5966, allocations: 2.751 MB / 0.5718 GB, free: 7.855 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.5987, allocations: 1.569 MB / 0.5733 GB, free: 6.484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.619e-05/0.5988, allocations: 20 kB / 0.5733 GB, free: 6.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005913/0.6047, allocations: 3.521 MB / 0.5767 GB, free: 3.336 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.036e-05/0.6048, allocations: 42.41 kB / 0.5768 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.193e-05/0.6049, allocations: 64 kB / 0.5768 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001105/0.605, allocations: 100 kB / 0.5769 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.6069, allocations: 0.6612 MB / 0.5776 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001082/0.6071, allocations: 128.6 kB / 0.5777 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002364/0.6094, allocations: 422.3 kB / 0.5781 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/0.6098, allocations: 196 kB / 0.5783 GB, free: 1.836 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.003386/0.6132, allocations: 1.384 MB / 0.5796 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.6135, allocations: 153.9 kB / 0.5798 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00038/0.6139, allocations: 197.2 kB / 0.58 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.6139, allocations: 8 kB / 0.58 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6139, allocations: 0 / 0.58 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.6139, allocations: 0 / 0.58 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007347/0.6213, allocations: 4.091 MB / 0.584 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.6213, allocations: 8 kB / 0.584 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004051/0.6217, allocations: 105.3 kB / 0.5841 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/0.6218, allocations: 12 kB / 0.5841 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/0.6218, allocations: 20.72 kB / 0.5841 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.317e-05/0.6218, allocations: 22.33 kB / 0.5841 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/0.6219, allocations: 10.53 kB / 0.5842 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.6238, allocations: 1.736 MB / 0.5858 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006018/0.6244, allocations: 266.6 kB / 0.5861 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.6246, allocations: 16 kB / 0.5861 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.625, allocations: 31.88 kB / 0.5861 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.345e-05/0.6251, allocations: 53.72 kB / 0.5862 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-05/0.6252, allocations: 32 kB / 0.5862 GB, free: 9.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002042/0.6273, allocations: 1.271 MB / 0.5875 GB, free: 8.094 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6273, allocations: 0 / 0.5875 GB, free: 8.094 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003116/0.6304, allocations: 0.7098 MB / 0.5882 GB, free: 7.387 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.0003598/0.6308, allocations: 138.6 kB / 0.5883 GB, free: 7.254 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.6338, allocations: 2.021 MB / 0.5903 GB, free: 5.402 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6339, allocations: 4.062 kB / 0.5903 GB, free: 5.398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.6344, allocations: 461.4 kB / 0.5907 GB, free: 4.949 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009786/0.6354, allocations: 227.9 kB / 0.5909 GB, free: 4.727 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.6459, allocations: 6.276 MB / 0.5971 GB, free: 14.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/0.6482, allocations: 2.375 MB / 0.5994 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002279/0.6505, allocations: 0.9562 MB / 0.6003 GB, free: 10.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.6508, allocations: 123.4 kB / 0.6004 GB, free: 10.85 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6508, allocations: 4 kB / 0.6004 GB, free: 10.85 MB / 446.1 MB Notification: Performance of Templates: time 0.03031/0.6812, allocations: 13.58 MB / 0.6137 GB, free: 13.35 MB / 462.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches