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.001362/0.001363, allocations: 108.8 kB / 17.78 MB, free: 5.266 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.00156/0.00156, allocations: 184.1 kB / 18.71 MB, free: 4.34 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.411/1.411, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2183/0.2183, allocations: 44.19 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3601, 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.009892/0.37, allocations: 9.743 MB / 0.5284 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007055/0.3771, allocations: 2.922 MB / 0.5313 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.3787, allocations: 55 kB / 0.5313 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.3824, allocations: 1.983 MB / 0.5332 GB, free: 9.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003072/0.3855, allocations: 1.137 MB / 0.5344 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007243/0.3862, allocations: 285.9 kB / 0.5346 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.3892, allocations: 2.324 MB / 0.5369 GB, free: 7.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002959/0.3922, allocations: 2.336 MB / 0.5392 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.3936, allocations: 0.9036 MB / 0.5401 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.3951, allocations: 1.182 MB / 0.5412 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003668/0.3955, allocations: 197.7 kB / 0.5414 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.3969, allocations: 0.6963 MB / 0.5421 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009503/0.3979, allocations: 1.145 MB / 0.5432 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.3991, allocations: 1.351 MB / 0.5445 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004352/0.4034, allocations: 4.463 MB / 0.5489 GB, free: 13.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.4035, allocations: 0 / 0.5489 GB, free: 13.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4035, allocations: 0 / 0.5489 GB, free: 13.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001533/0.4036, allocations: 0 / 0.5489 GB, free: 13.27 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.005547/0.4092, allocations: 3.02 MB / 0.5518 GB, free: 10.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.4093, allocations: 16.03 kB / 0.5518 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005022/0.4143, allocations: 1.598 MB / 0.5534 GB, free: 8.578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002314/0.4166, allocations: 1.364 MB / 0.5547 GB, free: 7.168 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.4167, allocations: 144.1 kB / 0.5549 GB, free: 7.027 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.4171, allocations: 199.8 kB / 0.5551 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009295/0.4264, allocations: 6.428 MB / 0.5613 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.374e-05/0.4264, allocations: 15.88 kB / 0.5614 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002173/0.4267, allocations: 91.91 kB / 0.5614 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/0.4287, allocations: 1.407 MB / 0.5628 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009244/0.438, allocations: 5.495 MB / 0.5682 GB, free: 9.105 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02695/0.4649, allocations: 20.5 MB / 0.5882 GB, free: 4.023 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00422/0.4692, allocations: 2.001 MB / 0.5902 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.4703, allocations: 0.6981 MB / 0.5908 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007283/0.4776, allocations: 3.641 MB / 0.5944 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.4776, allocations: 39 kB / 0.5944 GB, free: 13.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.586e-06/0.4777, allocations: 0 / 0.5944 GB, free: 13.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005658/0.4833, allocations: 1.986 MB / 0.5964 GB, free: 11.37 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.4834, allocations: 63.83 kB / 0.5964 GB, free: 11.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003864/0.4873, allocations: 1.967 MB / 0.5984 GB, free: 9.324 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.892e-05/0.4874, allocations: 37.69 kB / 0.5984 GB, free: 9.281 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001434/0.4888, allocations: 1.958 MB / 0.6003 GB, free: 7.301 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003711/0.4892, allocations: 337.5 kB / 0.6006 GB, free: 6.969 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/0.4902, allocations: 0.6196 MB / 0.6012 GB, free: 6.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.4904, allocations: 365.9 kB / 0.6016 GB, free: 5.977 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.4918, allocations: 0.8881 MB / 0.6024 GB, free: 5.086 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.4947, allocations: 2.778 MB / 0.6052 GB, free: 1.367 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/0.4988, allocations: 3.995 MB / 0.6091 GB, free: 12.44 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.533e-05/0.4988, allocations: 20 kB / 0.6091 GB, free: 12.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005/0.5038, allocations: 3.567 MB / 0.6126 GB, free: 8.844 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.5039, allocations: 32 kB / 0.6126 GB, free: 8.812 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.903e-05/0.504, allocations: 68 kB / 0.6127 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.277e-05/0.5041, allocations: 91.94 kB / 0.6127 GB, free: 8.656 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.5058, allocations: 0.655 MB / 0.6134 GB, free: 8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-05/0.5059, allocations: 131.5 kB / 0.6135 GB, free: 7.871 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5075, allocations: 433 kB / 0.6139 GB, free: 7.445 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/0.5077, allocations: 188 kB / 0.6141 GB, free: 7.262 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.001728/0.5095, allocations: 1.365 MB / 0.6154 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.5097, allocations: 174.8 kB / 0.6156 GB, free: 5.715 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003172/0.51, allocations: 201.2 kB / 0.6158 GB, free: 5.516 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.51, allocations: 11.98 kB / 0.6158 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.51, allocations: 0 / 0.6158 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.51, allocations: 0 / 0.6158 GB, free: 5.504 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005294/0.5153, allocations: 4.093 MB / 0.6198 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.5154, allocations: 12 kB / 0.6198 GB, free: 1.254 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.5158, allocations: 108.6 kB / 0.6199 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.5158, allocations: 12 kB / 0.6199 GB, free: 1.137 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.327e-05/0.5158, allocations: 16 kB / 0.6199 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.649e-05/0.5159, allocations: 19.92 kB / 0.62 GB, free: 1.102 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.5159, allocations: 11.94 kB / 0.62 GB, free: 1.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.5172, allocations: 1.268 MB / 0.6212 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002871/0.5175, allocations: 267.6 kB / 0.6215 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001576/0.5177, allocations: 16 kB / 0.6215 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.5182, allocations: 31.92 kB / 0.6215 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.94e-05/0.5183, allocations: 67.7 kB / 0.6216 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.5183, allocations: 28 kB / 0.6216 GB, free: 15.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001547/0.5199, allocations: 1.287 MB / 0.6229 GB, free: 14.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5199, allocations: 0 / 0.6229 GB, free: 14.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002316/0.5222, allocations: 0.7124 MB / 0.6236 GB, free: 13.3 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.0002895/0.5225, allocations: 146.9 kB / 0.6237 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002718/0.5252, allocations: 2.054 MB / 0.6257 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.5253, allocations: 4 kB / 0.6257 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.5258, allocations: 465 kB / 0.6262 GB, free: 10.65 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.5269, allocations: 242.8 kB / 0.6264 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007222/0.5341, allocations: 5.248 MB / 0.6315 GB, free: 5.039 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002149/0.5363, allocations: 2.316 MB / 0.6338 GB, free: 2.695 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001934/0.5382, allocations: 0.9601 MB / 0.6347 GB, free: 1.73 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/0.5385, allocations: 123.4 kB / 0.6348 GB, free: 1.609 MB / 494.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5385, allocations: 0 / 0.6348 GB, free: 1.609 MB / 494.1 MB Notification: Performance of Templates: time 0.02882/0.5673, allocations: 15.32 MB / 0.6498 GB, free: 2.336 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