Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009836/0.0009836, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007883/0.0007886, allocations: 96.02 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3436/0.3436, allocations: 43.56 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003459, allocations: 12 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09756, allocations: 58.86 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.2144/0.312, allocations: 35.26 MB / 0.5132 GB, free: 25.56 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.327, allocations: 7.318 MB / 0.5203 GB, free: 20.61 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006029/0.3331, allocations: 156.2 kB / 0.5205 GB, free: 20.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003716/0.3368, allocations: 1.524 MB / 0.522 GB, free: 20.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009804/0.3467, allocations: 4.464 MB / 0.5263 GB, free: 18.21 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.3481, allocations: 248.1 kB / 0.5266 GB, free: 18.1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003018/0.3512, allocations: 2.832 MB / 0.5293 GB, free: 17.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003274/0.3545, allocations: 3.034 MB / 0.5323 GB, free: 15.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.3556, allocations: 0.7479 MB / 0.533 GB, free: 15.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001325/0.3569, allocations: 1.142 MB / 0.5341 GB, free: 15.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.3572, allocations: 99.5 kB / 0.5342 GB, free: 15.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009074/0.3581, allocations: 0.529 MB / 0.5348 GB, free: 15.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007486/0.3589, allocations: 1.07 MB / 0.5358 GB, free: 14.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004087/0.3593, allocations: 0.5678 MB / 0.5363 GB, free: 14.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.3633, allocations: 3.718 MB / 0.54 GB, free: 13.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3634, allocations: 0 / 0.54 GB, free: 13.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3634, allocations: 0 / 0.54 GB, free: 13.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001779/0.3636, allocations: 0 / 0.54 GB, free: 13.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1095 * Number of variables: 1095 Notification: Performance of Generate backend data structure: time 0.005513/0.3691, allocations: 2.624 MB / 0.5425 GB, free: 12.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3691, allocations: 12.97 kB / 0.5426 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006011/0.3751, allocations: 1.661 MB / 0.5442 GB, free: 11.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003625/0.3788, allocations: 1.378 MB / 0.5455 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001811/0.379, allocations: 158.2 kB / 0.5457 GB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007344/0.3798, allocations: 204.5 kB / 0.5459 GB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/0.3912, allocations: 6.955 MB / 0.5527 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.519e-05/0.3913, allocations: 13.38 kB / 0.5527 GB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.3916, allocations: 102 kB / 0.5528 GB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00237/0.394, allocations: 1.534 MB / 0.5543 GB, free: 6.094 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.4045, allocations: 5.917 MB / 0.56 GB, free: 2.754 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0318/0.4364, allocations: 22.25 MB / 0.5818 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005122/0.4415, allocations: 2.183 MB / 0.5839 GB, free: 9.602 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.4431, allocations: 0.8088 MB / 0.5847 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007707/0.4508, allocations: 3.954 MB / 0.5886 GB, free: 4.695 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.4509, allocations: 39.22 kB / 0.5886 GB, free: 4.648 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 3.908e-06/0.4509, allocations: 3.938 kB / 0.5886 GB, free: 4.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.005911/0.4568, allocations: 2.256 MB / 0.5908 GB, free: 2.383 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.4569, allocations: 56.06 kB / 0.5909 GB, free: 2.316 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003213/0.4601, allocations: 2.048 MB / 0.5929 GB, free: 224 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.849e-05/0.4602, allocations: 41.7 kB / 0.5929 GB, free: 176 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001439/0.4617, allocations: 2.003 MB / 0.5948 GB, free: 14.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004125/0.4621, allocations: 383.1 kB / 0.5952 GB, free: 13.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.4623, allocations: 64 kB / 0.5953 GB, free: 13.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003666/0.4626, allocations: 0.4941 MB / 0.5958 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.4644, allocations: 0.9863 MB / 0.5967 GB, free: 12.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003163/0.4676, allocations: 2.984 MB / 0.5996 GB, free: 8.227 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002591/0.4702, allocations: 1.711 MB / 0.6013 GB, free: 6.516 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.023e-05/0.4702, allocations: 23.95 kB / 0.6013 GB, free: 6.492 MB / 426.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.006348/0.4766, allocations: 3.855 MB / 0.6051 GB, free: 2.633 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.171e-05/0.4767, allocations: 37.73 kB / 0.6051 GB, free: 2.598 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.4768, allocations: 76 kB / 0.6052 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/0.4769, allocations: 108 kB / 0.6053 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.4791, allocations: 0.7213 MB / 0.606 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001236/0.4793, allocations: 143.4 kB / 0.6061 GB, free: 1.555 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002192/0.4815, allocations: 451.2 kB / 0.6066 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000306/0.4818, allocations: 208 kB / 0.6068 GB, free: 0.9062 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 322 * Number of states: 0 () * Number of discrete variables: 24 (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 (401): * Single equations (assignments): 396 * 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.002541/0.4844, allocations: 1.459 MB / 0.6082 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.4847, allocations: 185.5 kB / 0.6084 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.4868, allocations: 1.237 MB / 0.6096 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/0.4869, allocations: 12 kB / 0.6096 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4869, allocations: 0 / 0.6096 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4869, allocations: 3.984 kB / 0.6096 GB, free: 13.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009342/0.4962, allocations: 5.022 MB / 0.6145 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.4963, allocations: 12 kB / 0.6145 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/0.4969, allocations: 143.7 kB / 0.6147 GB, free: 8.613 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.153e-05/0.4969, allocations: 19.95 kB / 0.6147 GB, free: 8.594 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/0.497, allocations: 35.92 kB / 0.6147 GB, free: 8.559 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.61e-05/0.497, allocations: 20.47 kB / 0.6147 GB, free: 8.539 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.497, allocations: 11.94 kB / 0.6147 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.4991, allocations: 1.562 MB / 0.6163 GB, free: 6.812 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005583/0.4997, allocations: 282.5 kB / 0.6165 GB, free: 6.516 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/0.5, allocations: 31.94 kB / 0.6166 GB, free: 6.484 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/0.5008, allocations: 39.88 kB / 0.6166 GB, free: 6.445 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.5009, allocations: 83.7 kB / 0.6167 GB, free: 6.363 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.071e-05/0.501, allocations: 36 kB / 0.6167 GB, free: 6.328 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002375/0.5034, allocations: 1.333 MB / 0.618 GB, free: 4.973 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5034, allocations: 0 / 0.618 GB, free: 4.973 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003408/0.5068, allocations: 0.7737 MB / 0.6188 GB, free: 4.195 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.0004038/0.5072, allocations: 155 kB / 0.6189 GB, free: 4.031 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.5113, allocations: 2.276 MB / 0.6211 GB, free: 1.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.5114, allocations: 4.062 kB / 0.6211 GB, free: 1.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007778/0.5121, allocations: 0.5613 MB / 0.6217 GB, free: 1.211 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.5139, allocations: 249.6 kB / 0.6219 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/0.5269, allocations: 7.331 MB / 0.6291 GB, free: 9.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003624/0.5306, allocations: 2.454 MB / 0.6315 GB, free: 6.996 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000624/0.5312, allocations: 159.4 kB / 0.6316 GB, free: 6.844 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5313, allocations: 0 / 0.6316 GB, free: 6.844 MB / 458.7 MB Notification: Performance of Templates: time 0.05548/0.5867, allocations: 32.89 MB / 0.6638 GB, free: 5.988 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches