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.001367/0.001375, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.001378/0.001379, allocations: 183.9 kB / 18.71 MB, free: 4.371 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.446/1.446, 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.2406/0.2406, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 63.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.349, allocations: 60.81 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01045/0.3595, allocations: 9.739 MB / 0.5284 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006679/0.3662, allocations: 2.924 MB / 0.5312 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.3676, allocations: 54.47 kB / 0.5313 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003924/0.3716, allocations: 1.99 MB / 0.5332 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002879/0.3745, allocations: 1.153 MB / 0.5344 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008209/0.3754, allocations: 302 kB / 0.5347 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003027/0.3784, allocations: 2.325 MB / 0.5369 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002973/0.3814, allocations: 2.332 MB / 0.5392 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.383, allocations: 0.8915 MB / 0.5401 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.3847, allocations: 1.179 MB / 0.5412 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004113/0.3851, allocations: 197.8 kB / 0.5414 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.3865, allocations: 0.7061 MB / 0.5421 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.3875, allocations: 1.157 MB / 0.5432 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.3887, allocations: 1.351 MB / 0.5446 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004049/0.3928, allocations: 4.451 MB / 0.5489 GB, free: 13.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3928, allocations: 0 / 0.5489 GB, free: 13.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3928, allocations: 0 / 0.5489 GB, free: 13.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.884e-05/0.3928, allocations: 0 / 0.5489 GB, free: 13.25 MB / 414.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.004315/0.3972, allocations: 2.947 MB / 0.5518 GB, free: 10.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3972, allocations: 8.031 kB / 0.5518 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005247/0.4025, allocations: 1.584 MB / 0.5533 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.4049, allocations: 1.359 MB / 0.5547 GB, free: 7.242 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.405, allocations: 152 kB / 0.5548 GB, free: 7.094 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/0.4053, allocations: 195.8 kB / 0.555 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009259/0.4146, allocations: 6.425 MB / 0.5613 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.534e-05/0.4147, allocations: 27.86 kB / 0.5613 GB, free: 184 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002419/0.415, allocations: 87.91 kB / 0.5614 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002156/0.4171, allocations: 1.407 MB / 0.5628 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009644/0.4268, allocations: 5.484 MB / 0.5681 GB, free: 9.184 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03091/0.4577, allocations: 20.45 MB / 0.5881 GB, free: 4.145 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004085/0.4619, allocations: 1.997 MB / 0.59 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009519/0.4628, allocations: 0.6953 MB / 0.5907 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006206/0.4691, allocations: 3.635 MB / 0.5943 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.4692, allocations: 39 kB / 0.5943 GB, free: 13.49 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 4.067e-06/0.4692, allocations: 0 / 0.5943 GB, free: 13.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005444/0.4746, allocations: 1.981 MB / 0.5962 GB, free: 11.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.4747, allocations: 67.78 kB / 0.5963 GB, free: 11.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/0.4775, allocations: 1.962 MB / 0.5982 GB, free: 9.461 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.811e-05/0.4776, allocations: 33.7 kB / 0.5982 GB, free: 9.422 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.4788, allocations: 1.883 MB / 0.6001 GB, free: 7.508 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/0.4791, allocations: 312.1 kB / 0.6004 GB, free: 7.199 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006933/0.4798, allocations: 0.619 MB / 0.601 GB, free: 6.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.48, allocations: 365.9 kB / 0.6013 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.4812, allocations: 0.8842 MB / 0.6022 GB, free: 5.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002455/0.4836, allocations: 2.782 MB / 0.6049 GB, free: 1.598 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004398/0.4881, allocations: 3.999 MB / 0.6088 GB, free: 12.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-05/0.4881, allocations: 20 kB / 0.6088 GB, free: 12.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005501/0.4936, allocations: 3.55 MB / 0.6123 GB, free: 9.082 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/0.4937, allocations: 32 kB / 0.6123 GB, free: 9.051 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.176e-05/0.4938, allocations: 68 kB / 0.6124 GB, free: 8.984 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.76e-05/0.4939, allocations: 91.94 kB / 0.6125 GB, free: 8.895 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.4957, allocations: 0.655 MB / 0.6131 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.82e-05/0.4958, allocations: 131.5 kB / 0.6133 GB, free: 8.109 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.4978, allocations: 431.7 kB / 0.6137 GB, free: 7.688 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/0.498, allocations: 188 kB / 0.6138 GB, free: 7.504 MB / 478.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.001977/0.5, allocations: 1.365 MB / 0.6152 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.5003, allocations: 161.8 kB / 0.6153 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.5006, allocations: 201.2 kB / 0.6155 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.5006, allocations: 8 kB / 0.6155 GB, free: 5.762 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.5007, allocations: 4 kB / 0.6155 GB, free: 5.758 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.5007, allocations: 4 kB / 0.6155 GB, free: 5.754 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006202/0.5069, allocations: 4.096 MB / 0.6195 GB, free: 1.512 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.5069, allocations: 8.781 kB / 0.6195 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.5073, allocations: 107.8 kB / 0.6197 GB, free: 1.398 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.47e-05/0.5074, allocations: 16 kB / 0.6197 GB, free: 1.383 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.675e-05/0.5074, allocations: 16 kB / 0.6197 GB, free: 1.367 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-05/0.5074, allocations: 15.92 kB / 0.6197 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.988e-05/0.5075, allocations: 11.94 kB / 0.6197 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.5091, allocations: 1.251 MB / 0.6209 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004747/0.5095, allocations: 254.6 kB / 0.6212 GB, free: 15.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001731/0.5097, allocations: 20 kB / 0.6212 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004838/0.5102, allocations: 31.88 kB / 0.6212 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/0.5103, allocations: 63.7 kB / 0.6213 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.5104, allocations: 31.98 kB / 0.6213 GB, free: 15.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001774/0.5122, allocations: 1.287 MB / 0.6226 GB, free: 14.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5122, allocations: 0 / 0.6226 GB, free: 14.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002753/0.5149, allocations: 0.7077 MB / 0.6233 GB, free: 13.58 MB / 494.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.0003425/0.5153, allocations: 147 kB / 0.6234 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003294/0.5186, allocations: 2.05 MB / 0.6254 GB, free: 11.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.5186, allocations: 4 kB / 0.6254 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005683/0.5192, allocations: 465 kB / 0.6259 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.5206, allocations: 261.3 kB / 0.6261 GB, free: 10.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009388/0.53, allocations: 5.149 MB / 0.6311 GB, free: 5.414 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/0.5325, allocations: 2.323 MB / 0.6334 GB, free: 3.062 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002352/0.5349, allocations: 0.9601 MB / 0.6343 GB, free: 2.098 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.5352, allocations: 127.4 kB / 0.6345 GB, free: 1.973 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5352, allocations: 0 / 0.6345 GB, free: 1.973 MB / 494.1 MB Notification: Performance of Templates: time 0.03041/0.5656, allocations: 15.31 MB / 0.6494 GB, free: 2.707 MB / 0.4981 GB 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","/var/lib/jenkins/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