Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00097/0.0009701, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008088/0.0008089, allocations: 97.67 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3228/0.3228, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003018/0.0003019, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.319, allocations: 62.95 MB / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.02387/0.343, allocations: 34.13 MB / 0.5492 GB, free: 12.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.3575, allocations: 7.245 MB / 0.5563 GB, free: 8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007138/0.3647, allocations: 152.8 kB / 0.5564 GB, free: 7.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005089/0.3698, allocations: 1.503 MB / 0.5579 GB, free: 7.453 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.3828, allocations: 4.428 MB / 0.5622 GB, free: 5.637 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002019/0.3849, allocations: 273.5 kB / 0.5625 GB, free: 5.523 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00474/0.3896, allocations: 2.737 MB / 0.5651 GB, free: 4.621 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004715/0.3944, allocations: 3.234 MB / 0.5683 GB, free: 2.785 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.3959, allocations: 0.6852 MB / 0.569 GB, free: 2.441 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.3974, allocations: 1.028 MB / 0.57 GB, free: 1.879 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002657/0.3977, allocations: 88 kB / 0.5701 GB, free: 1.793 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.3988, allocations: 0.6317 MB / 0.5707 GB, free: 1.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006307/0.3994, allocations: 0.9856 MB / 0.5716 GB, free: 176 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009762/0.4004, allocations: 1.143 MB / 0.5728 GB, free: 15.02 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003086/0.4035, allocations: 3.421 MB / 0.5761 GB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4035, allocations: 3.938 kB / 0.5761 GB, free: 11.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4035, allocations: 0 / 0.5761 GB, free: 11.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.289e-05/0.4036, allocations: 0 / 0.5761 GB, free: 11.58 MB / 394.7 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.003856/0.4075, allocations: 2.428 MB / 0.5785 GB, free: 9.098 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4076, allocations: 8.875 kB / 0.5785 GB, free: 9.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004583/0.4121, allocations: 1.623 MB / 0.5801 GB, free: 7.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/0.4145, allocations: 1.344 MB / 0.5814 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.4147, allocations: 151.9 kB / 0.5815 GB, free: 5.926 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003673/0.4151, allocations: 191.9 kB / 0.5817 GB, free: 5.738 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.4257, allocations: 6.425 MB / 0.588 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-05/0.4258, allocations: 15.88 kB / 0.588 GB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.4262, allocations: 91.91 kB / 0.5881 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002274/0.4285, allocations: 1.403 MB / 0.5895 GB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/0.4403, allocations: 5.46 MB / 0.5948 GB, free: 8.051 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03165/0.472, allocations: 20.61 MB / 0.6149 GB, free: 2.859 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004067/0.4761, allocations: 2.002 MB / 0.6169 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009961/0.4771, allocations: 0.6953 MB / 0.6175 GB, free: 28 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006757/0.4839, allocations: 3.627 MB / 0.6211 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.484, allocations: 42.94 kB / 0.6211 GB, free: 12.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 3.537e-06/0.484, allocations: 0 / 0.6211 GB, free: 12.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=78): time 0.005035/0.489, allocations: 1.97 MB / 0.6231 GB, free: 10.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.4891, allocations: 59.83 kB / 0.6231 GB, free: 10.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003153/0.4922, allocations: 1.954 MB / 0.625 GB, free: 8.203 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.4923, allocations: 33.7 kB / 0.6251 GB, free: 8.164 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.4937, allocations: 1.883 MB / 0.6269 GB, free: 6.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.494, allocations: 316.1 kB / 0.6272 GB, free: 5.938 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.4942, allocations: 60 kB / 0.6272 GB, free: 5.879 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003056/0.4945, allocations: 493.3 kB / 0.6277 GB, free: 5.387 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.4959, allocations: 0.8842 MB / 0.6286 GB, free: 4.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002933/0.4988, allocations: 2.762 MB / 0.6313 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004585/0.5034, allocations: 3.986 MB / 0.6352 GB, free: 11.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.674e-05/0.5035, allocations: 20 kB / 0.6352 GB, free: 11.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005724/0.5093, allocations: 3.526 MB / 0.6386 GB, free: 8.316 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/0.5093, allocations: 36 kB / 0.6387 GB, free: 8.281 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.851e-05/0.5094, allocations: 64 kB / 0.6387 GB, free: 8.219 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.91e-05/0.5095, allocations: 88 kB / 0.6388 GB, free: 8.133 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.5115, allocations: 0.6628 MB / 0.6395 GB, free: 7.469 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001068/0.5116, allocations: 131.5 kB / 0.6396 GB, free: 7.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.5136, allocations: 419.9 kB / 0.64 GB, free: 6.926 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/0.5139, allocations: 195.9 kB / 0.6402 GB, free: 6.734 MB / 458.7 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.002231/0.5161, allocations: 1.381 MB / 0.6415 GB, free: 5.344 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/0.5164, allocations: 153.9 kB / 0.6417 GB, free: 5.191 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003792/0.5168, allocations: 193.2 kB / 0.6419 GB, free: 4.996 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.5168, allocations: 12 kB / 0.6419 GB, free: 4.984 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.5168, allocations: 0 / 0.6419 GB, free: 4.984 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.5168, allocations: 3.984 kB / 0.6419 GB, free: 4.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007557/0.5244, allocations: 4.093 MB / 0.6459 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.5244, allocations: 11.94 kB / 0.6459 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.5248, allocations: 99.94 kB / 0.646 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.5249, allocations: 19.94 kB / 0.646 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.828e-05/0.5249, allocations: 16 kB / 0.646 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.477e-05/0.5249, allocations: 12 kB / 0.646 GB, free: 0.582 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.426e-05/0.525, allocations: 7.938 kB / 0.646 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001552/0.5265, allocations: 1.266 MB / 0.6473 GB, free: 15.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/0.5271, allocations: 254.7 kB / 0.6475 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002979/0.5274, allocations: 23.98 kB / 0.6475 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.528, allocations: 31.89 kB / 0.6476 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.5282, allocations: 51.77 kB / 0.6476 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.5283, allocations: 39.92 kB / 0.6476 GB, free: 14.79 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002358/0.5306, allocations: 1.268 MB / 0.6489 GB, free: 13.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5306, allocations: 4 kB / 0.6489 GB, free: 13.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002877/0.5335, allocations: 0.7077 MB / 0.6496 GB, free: 12.82 MB / 474.7 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.0003619/0.5339, allocations: 143.5 kB / 0.6497 GB, free: 12.67 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003911/0.5378, allocations: 2.027 MB / 0.6517 GB, free: 10.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.5378, allocations: 0 / 0.6517 GB, free: 10.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000833/0.5387, allocations: 460 kB / 0.6521 GB, free: 10.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.5417, allocations: 229.6 kB / 0.6524 GB, free: 9.992 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.5546, allocations: 6.611 MB / 0.6588 GB, free: 3.266 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002671/0.5574, allocations: 2.328 MB / 0.6611 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005268/0.5579, allocations: 147.4 kB / 0.6612 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of SimCode: time 3.186e-06/0.5579, allocations: 0 / 0.6612 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of Templates: time 0.2925/0.8504, allocations: 30.01 MB / 0.6905 GB, free: 125.2 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches