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.00149/0.00149, allocations: 110.6 kB / 17.33 MB, free: 5.988 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.001603/0.001603, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.387/1.387, allocations: 222.9 MB / 241.9 MB, free: 15.38 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.2048/0.2048, allocations: 44.18 MB / 336.2 MB, free: 2.93 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 64.56 kB / 407.9 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.119, allocations: 60.84 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.03632/0.1554, allocations: 37.69 MB / 0.4945 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01545/0.1709, allocations: 7.529 MB / 0.5019 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006055/0.177, allocations: 151.7 kB / 0.502 GB, free: 1.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.228/0.405, allocations: 1.92 MB / 0.5039 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003482/0.4085, allocations: 1.061 MB / 0.5049 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007918/0.4094, allocations: 271.5 kB / 0.5052 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003631/0.413, allocations: 2.35 MB / 0.5075 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003023/0.416, allocations: 2.444 MB / 0.5099 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00163/0.4177, allocations: 0.9209 MB / 0.5108 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00193/0.4196, allocations: 1.285 MB / 0.512 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005262/0.4202, allocations: 198.5 kB / 0.5122 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001745/0.4219, allocations: 0.7045 MB / 0.5129 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.4234, allocations: 1.167 MB / 0.5141 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.4246, allocations: 1.355 MB / 0.5154 GB, free: 9.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004402/0.429, allocations: 4.316 MB / 0.5196 GB, free: 8.895 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.429, allocations: 0 / 0.5196 GB, free: 8.895 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.429, allocations: 0 / 0.5196 GB, free: 8.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000116/0.4292, allocations: 1.219 kB / 0.5196 GB, free: 8.895 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.005633/0.4348, allocations: 2.938 MB / 0.5225 GB, free: 7.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.4348, allocations: 8.719 kB / 0.5225 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004793/0.4396, allocations: 1.583 MB / 0.524 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/0.4418, allocations: 1.346 MB / 0.5253 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.827e-05/0.4419, allocations: 147.8 kB / 0.5255 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003056/0.4422, allocations: 191 kB / 0.5257 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008876/0.4511, allocations: 6.437 MB / 0.5319 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.4512, allocations: 18.28 kB / 0.532 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/0.4514, allocations: 90.14 kB / 0.5321 GB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001832/0.4533, allocations: 1.401 MB / 0.5334 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.4625, allocations: 5.49 MB / 0.5388 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03046/0.4929, allocations: 20.6 MB / 0.5589 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004353/0.4973, allocations: 2.005 MB / 0.5609 GB, free: 7.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.4984, allocations: 0.6875 MB / 0.5615 GB, free: 6.926 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006916/0.5054, allocations: 3.639 MB / 0.5651 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.5054, allocations: 42.94 kB / 0.5651 GB, free: 3.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=78): time 3.607e-06/0.5055, allocations: 3.562 kB / 0.5651 GB, free: 3.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.005734/0.5112, allocations: 1.984 MB / 0.5671 GB, free: 1.137 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.5113, allocations: 59.84 kB / 0.5671 GB, free: 1.062 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003368/0.5147, allocations: 1.963 MB / 0.569 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.101e-05/0.5147, allocations: 40.28 kB / 0.5691 GB, free: 15.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.5161, allocations: 1.879 MB / 0.5709 GB, free: 13.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.5164, allocations: 306.7 kB / 0.5712 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009519/0.5174, allocations: 0.6296 MB / 0.5718 GB, free: 12.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.5176, allocations: 357.9 kB / 0.5722 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.519, allocations: 0.892 MB / 0.573 GB, free: 10.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/0.5218, allocations: 2.774 MB / 0.5757 GB, free: 7.305 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004498/0.5263, allocations: 3.994 MB / 0.5796 GB, free: 2.648 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.394e-05/0.5263, allocations: 20 kB / 0.5797 GB, free: 2.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005873/0.5322, allocations: 3.559 MB / 0.5831 GB, free: 15.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.599e-05/0.5323, allocations: 32 kB / 0.5832 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-05/0.5324, allocations: 68 kB / 0.5832 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.433e-05/0.5325, allocations: 88 kB / 0.5833 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001904/0.5344, allocations: 0.6589 MB / 0.584 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001067/0.5345, allocations: 133.8 kB / 0.5841 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/0.5366, allocations: 419.5 kB / 0.5845 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002969/0.5369, allocations: 188 kB / 0.5847 GB, free: 13.99 MB / 446.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.00235/0.5393, allocations: 1.379 MB / 0.586 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/0.5396, allocations: 157.9 kB / 0.5862 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004417/0.54, allocations: 199.3 kB / 0.5863 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.54, allocations: 8 kB / 0.5864 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.5401, allocations: 0 / 0.5864 GB, free: 12.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5401, allocations: 3.984 kB / 0.5864 GB, free: 12.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007349/0.5474, allocations: 4.099 MB / 0.5904 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.5475, allocations: 8.031 kB / 0.5904 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004072/0.5479, allocations: 107.8 kB / 0.5905 GB, free: 7.996 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.729e-05/0.5479, allocations: 8 kB / 0.5905 GB, free: 7.988 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/0.548, allocations: 23.94 kB / 0.5905 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/0.548, allocations: 10.44 kB / 0.5905 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/0.548, allocations: 10.62 kB / 0.5905 GB, free: 7.949 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.5496, allocations: 1.268 MB / 0.5918 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004184/0.55, allocations: 250.7 kB / 0.592 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.5502, allocations: 20 kB / 0.592 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004623/0.5507, allocations: 23.98 kB / 0.592 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.045e-05/0.5508, allocations: 61.34 kB / 0.5921 GB, free: 6.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.574e-05/0.5508, allocations: 28 kB / 0.5921 GB, free: 6.195 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001857/0.5527, allocations: 1.29 MB / 0.5934 GB, free: 4.918 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5527, allocations: 0 / 0.5934 GB, free: 4.918 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002679/0.5554, allocations: 0.7102 MB / 0.5941 GB, free: 4.207 MB / 446.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.000314/0.5557, allocations: 146.7 kB / 0.5942 GB, free: 4.062 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003429/0.5591, allocations: 2.263 MB / 0.5964 GB, free: 2.004 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.5592, allocations: 8.062 kB / 0.5964 GB, free: 1.996 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005434/0.5597, allocations: 457.9 kB / 0.5969 GB, free: 1.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.5612, allocations: 251.6 kB / 0.5971 GB, free: 1.332 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.5714, allocations: 6.543 MB / 0.6035 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/0.5738, allocations: 2.318 MB / 0.6058 GB, free: 8.352 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002335/0.5761, allocations: 0.9639 MB / 0.6067 GB, free: 7.383 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002891/0.5764, allocations: 123.4 kB / 0.6068 GB, free: 7.262 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5764, allocations: 0 / 0.6068 GB, free: 7.262 MB / 462.1 MB Notification: Performance of Templates: time 0.03007/0.6065, allocations: 14.39 MB / 0.6209 GB, free: 8.98 MB / 478.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","/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