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.000964/0.0009642, allocations: 175.3 kB / 16.72 MB, free: 5.078 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.305/1.305, allocations: 205.4 MB / 222.9 MB, free: 8.922 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.0008365/0.0008365, allocations: 82.42 kB / 271.2 MB, free: 8.242 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.3137/0.3137, allocations: 43.56 MB / 363.1 MB, free: 51.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 12 kB / 432 MB, free: 5.582 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1115, allocations: 58.85 MB / 490.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.2142/0.3258, allocations: 35.27 MB / 0.5138 GB, free: 25.3 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01623/0.342, allocations: 7.319 MB / 0.5209 GB, free: 20.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007947/0.3501, allocations: 154.9 kB / 0.5211 GB, free: 20.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004898/0.355, allocations: 1.524 MB / 0.5225 GB, free: 19.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01192/0.3669, allocations: 4.487 MB / 0.5269 GB, free: 17.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001774/0.3687, allocations: 272.1 kB / 0.5272 GB, free: 17.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003282/0.372, allocations: 2.888 MB / 0.53 GB, free: 16.85 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003563/0.3756, allocations: 3.287 MB / 0.5332 GB, free: 15.46 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3768, allocations: 0.7464 MB / 0.5339 GB, free: 15.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.3781, allocations: 1.151 MB / 0.5351 GB, free: 14.85 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002312/0.3783, allocations: 95.78 kB / 0.5352 GB, free: 14.85 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.3794, allocations: 0.6201 MB / 0.5358 GB, free: 14.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000767/0.3802, allocations: 1.077 MB / 0.5368 GB, free: 14.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008156/0.381, allocations: 1.26 MB / 0.538 GB, free: 13.47 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003999/0.385, allocations: 3.72 MB / 0.5417 GB, free: 12.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.902e-06/0.385, allocations: 0 / 0.5417 GB, free: 12.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.385, allocations: 0 / 0.5417 GB, free: 12.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001522/0.3852, allocations: 0 / 0.5417 GB, free: 12.71 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.004559/0.3898, allocations: 2.581 MB / 0.5442 GB, free: 11.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3898, allocations: 8.406 kB / 0.5442 GB, free: 11.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00528/0.3951, allocations: 1.668 MB / 0.5458 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002702/0.3978, allocations: 1.406 MB / 0.5472 GB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.398, allocations: 163.4 kB / 0.5474 GB, free: 9.699 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004077/0.3984, allocations: 208.3 kB / 0.5476 GB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.409, allocations: 6.957 MB / 0.5544 GB, free: 5.672 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.331e-05/0.4091, allocations: 14.31 kB / 0.5544 GB, free: 5.664 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/0.4094, allocations: 96.52 kB / 0.5545 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002243/0.4116, allocations: 1.523 MB / 0.556 GB, free: 5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0098/0.4214, allocations: 5.924 MB / 0.5617 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02901/0.4505, allocations: 22.24 MB / 0.5835 GB, free: 10.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/0.4549, allocations: 2.183 MB / 0.5856 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/0.4561, allocations: 0.805 MB / 0.5864 GB, free: 7.188 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007209/0.4634, allocations: 3.97 MB / 0.5903 GB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/0.4635, allocations: 39.22 kB / 0.5903 GB, free: 3.031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 6.242e-06/0.4635, allocations: 3.938 kB / 0.5903 GB, free: 3.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.00587/0.4694, allocations: 2.248 MB / 0.5925 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.4694, allocations: 60.05 kB / 0.5925 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004017/0.4735, allocations: 2.045 MB / 0.5945 GB, free: 14.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.28e-05/0.4736, allocations: 37.7 kB / 0.5946 GB, free: 14.56 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/0.4751, allocations: 2.011 MB / 0.5965 GB, free: 12.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/0.4755, allocations: 379.2 kB / 0.5969 GB, free: 12.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.4756, allocations: 64 kB / 0.597 GB, free: 12.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000269/0.4759, allocations: 0.498 MB / 0.5975 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.4774, allocations: 0.9863 MB / 0.5984 GB, free: 10.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003028/0.4804, allocations: 2.976 MB / 0.6013 GB, free: 6.621 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005191/0.4856, allocations: 4.346 MB / 0.6056 GB, free: 1.281 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.641e-05/0.4857, allocations: 20 kB / 0.6056 GB, free: 1.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.006469/0.4922, allocations: 3.858 MB / 0.6094 GB, free: 13.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.378e-05/0.4923, allocations: 39.94 kB / 0.6094 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-05/0.4924, allocations: 72 kB / 0.6095 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001058/0.4925, allocations: 96 kB / 0.6096 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0021/0.4946, allocations: 0.7252 MB / 0.6103 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001186/0.4947, allocations: 140 kB / 0.6104 GB, free: 12.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/0.497, allocations: 463 kB / 0.6108 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/0.4973, allocations: 200 kB / 0.611 GB, free: 11.68 MB / 442.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.002635/0.4999, allocations: 1.462 MB / 0.6125 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.5002, allocations: 169.8 kB / 0.6126 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002029/0.5023, allocations: 1.245 MB / 0.6138 GB, free: 8.781 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.5023, allocations: 12 kB / 0.6138 GB, free: 8.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5023, allocations: 0 / 0.6138 GB, free: 8.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.5023, allocations: 3.984 kB / 0.6138 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007974/0.5103, allocations: 5.026 MB / 0.6188 GB, free: 3.539 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.5104, allocations: 12.22 kB / 0.6188 GB, free: 3.527 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/0.5109, allocations: 143.7 kB / 0.6189 GB, free: 3.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.65e-05/0.5109, allocations: 12 kB / 0.6189 GB, free: 3.375 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.923e-05/0.511, allocations: 31.98 kB / 0.6189 GB, free: 3.344 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.47e-05/0.511, allocations: 23.92 kB / 0.619 GB, free: 3.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.511, allocations: 15.94 kB / 0.619 GB, free: 3.305 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.5129, allocations: 1.57 MB / 0.6205 GB, free: 1.582 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.5134, allocations: 278.5 kB / 0.6208 GB, free: 1.289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.5137, allocations: 24 kB / 0.6208 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006413/0.5143, allocations: 39.88 kB / 0.6208 GB, free: 1.227 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.5144, allocations: 79.69 kB / 0.6209 GB, free: 1.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.566e-05/0.5145, allocations: 43.98 kB / 0.621 GB, free: 1.105 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001884/0.5164, allocations: 1.333 MB / 0.6223 GB, free: 15.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5164, allocations: 0 / 0.6223 GB, free: 15.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002603/0.519, allocations: 0.7737 MB / 0.623 GB, free: 14.97 MB / 458.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.0003015/0.5193, allocations: 151 kB / 0.6232 GB, free: 14.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003373/0.5227, allocations: 2.278 MB / 0.6254 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.503e-06/0.5227, allocations: 4 kB / 0.6254 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006935/0.5234, allocations: 0.5573 MB / 0.6259 GB, free: 12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/0.5267, allocations: 265 kB / 0.6262 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.5379, allocations: 7.322 MB / 0.6333 GB, free: 4.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003054/0.541, allocations: 2.462 MB / 0.6357 GB, free: 1.762 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006956/0.5417, allocations: 163.4 kB / 0.6359 GB, free: 1.605 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/0.5417, allocations: 0 / 0.6359 GB, free: 1.605 MB / 458.7 MB Notification: Performance of Templates: time 0.05228/0.594, allocations: 32.76 MB / 0.6679 GB, free: 0.8789 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