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.001098/0.001102, allocations: 200 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007091/0.000709, allocations: 106.5 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1781/0.1781, allocations: 44.84 MB / 392 MB, free: 9.312 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002802/0.0002803, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08915/0.08944, allocations: 62.96 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque3): time 0.2291/0.3186, allocations: 34.11 MB / 0.5486 GB, free: 5.629 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.3376, allocations: 7.253 MB / 0.5557 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006907/0.3445, allocations: 156.3 kB / 0.5559 GB, free: 0.668 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004618/0.3492, allocations: 1.496 MB / 0.5573 GB, free: 152 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.3606, allocations: 4.404 MB / 0.5616 GB, free: 13.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.3621, allocations: 245 kB / 0.5619 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003477/0.3656, allocations: 2.696 MB / 0.5645 GB, free: 11.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.3697, allocations: 2.984 MB / 0.5674 GB, free: 8.168 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.3709, allocations: 0.6849 MB / 0.5681 GB, free: 7.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001444/0.3723, allocations: 1.02 MB / 0.5691 GB, free: 6.457 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.3727, allocations: 91.98 kB / 0.5692 GB, free: 6.367 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.3738, allocations: 0.5382 MB / 0.5697 GB, free: 5.828 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001/0.3748, allocations: 0.9856 MB / 0.5707 GB, free: 4.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000618/0.3754, allocations: 0.5195 MB / 0.5712 GB, free: 4.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003854/0.3793, allocations: 3.419 MB / 0.5745 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3793, allocations: 3.938 kB / 0.5745 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3794, allocations: 0 / 0.5745 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002174/0.3796, allocations: 0 / 0.5745 GB, free: 0.8828 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: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.004626/0.3842, allocations: 2.455 MB / 0.5769 GB, free: 14.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.3843, allocations: 8.031 kB / 0.5769 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004934/0.3892, allocations: 1.626 MB / 0.5785 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/0.3915, allocations: 1.327 MB / 0.5798 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.3917, allocations: 143.7 kB / 0.5799 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.392, allocations: 199.8 kB / 0.5801 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008613/0.4006, allocations: 6.405 MB / 0.5864 GB, free: 4.348 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/0.4007, allocations: 19.88 kB / 0.5864 GB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002223/0.4009, allocations: 87.91 kB / 0.5865 GB, free: 4.242 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001956/0.4029, allocations: 1.411 MB / 0.5879 GB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008951/0.4118, allocations: 5.458 MB / 0.5932 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02448/0.4363, allocations: 20.6 MB / 0.6133 GB, free: 8.176 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003853/0.4402, allocations: 2.007 MB / 0.6153 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009507/0.4412, allocations: 0.6914 MB / 0.6159 GB, free: 5.344 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005915/0.4472, allocations: 3.62 MB / 0.6195 GB, free: 1.582 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.4472, allocations: 46.92 kB / 0.6195 GB, free: 1.527 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 3.357e-06/0.4472, allocations: 3.938 kB / 0.6195 GB, free: 1.523 MB / 426.7 MB Notification: Performance of matching and sorting (n=78): time 0.004941/0.4522, allocations: 1.974 MB / 0.6214 GB, free: 15.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.4522, allocations: 59.62 kB / 0.6215 GB, free: 15.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002656/0.4549, allocations: 1.958 MB / 0.6234 GB, free: 13.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.455, allocations: 29.7 kB / 0.6234 GB, free: 13.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.4562, allocations: 1.883 MB / 0.6253 GB, free: 11.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.4565, allocations: 320.1 kB / 0.6256 GB, free: 11.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.4566, allocations: 60 kB / 0.6256 GB, free: 11.18 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002722/0.4569, allocations: 493.3 kB / 0.6261 GB, free: 10.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.4582, allocations: 0.8803 MB / 0.627 GB, free: 9.809 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002369/0.4605, allocations: 2.766 MB / 0.6297 GB, free: 6.102 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/0.4626, allocations: 1.554 MB / 0.6312 GB, free: 4.547 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.815e-05/0.4626, allocations: 23.98 kB / 0.6312 GB, free: 4.523 MB / 442.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.005114/0.4677, allocations: 3.527 MB / 0.6347 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.4678, allocations: 32 kB / 0.6347 GB, free: 0.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.879e-05/0.4679, allocations: 72.16 kB / 0.6348 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001023/0.468, allocations: 96 kB / 0.6349 GB, free: 0.793 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/0.4698, allocations: 0.6589 MB / 0.6355 GB, free: 136 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-05/0.4699, allocations: 135.5 kB / 0.6356 GB, free: 0 / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4717, allocations: 423.6 kB / 0.636 GB, free: 15.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002502/0.472, allocations: 188 kB / 0.6362 GB, free: 15.39 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.001876/0.4738, allocations: 1.37 MB / 0.6375 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/0.4741, allocations: 161.9 kB / 0.6377 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003008/0.4744, allocations: 193.2 kB / 0.6379 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.4744, allocations: 12 kB / 0.6379 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4744, allocations: 0 / 0.6379 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.4745, allocations: 7.938 kB / 0.6379 GB, free: 13.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006166/0.4806, allocations: 4.097 MB / 0.6419 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.4807, allocations: 8 kB / 0.6419 GB, free: 9.395 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.4811, allocations: 99.83 kB / 0.642 GB, free: 9.297 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.388e-05/0.4811, allocations: 11.98 kB / 0.642 GB, free: 9.285 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.4811, allocations: 23.94 kB / 0.642 GB, free: 9.262 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.299e-05/0.4812, allocations: 20.48 kB / 0.6421 GB, free: 9.242 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.4812, allocations: 4 kB / 0.6421 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.4825, allocations: 1.266 MB / 0.6433 GB, free: 7.863 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.4829, allocations: 254.7 kB / 0.6435 GB, free: 7.594 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/0.4831, allocations: 20 kB / 0.6436 GB, free: 7.574 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000494/0.4836, allocations: 27.88 kB / 0.6436 GB, free: 7.547 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.817e-05/0.4837, allocations: 59.8 kB / 0.6436 GB, free: 7.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.814e-05/0.4838, allocations: 28 kB / 0.6437 GB, free: 7.461 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001713/0.4855, allocations: 1.275 MB / 0.6449 GB, free: 6.195 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4855, allocations: 0 / 0.6449 GB, free: 6.195 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002285/0.4878, allocations: 0.7076 MB / 0.6456 GB, free: 5.488 MB / 458.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.0003111/0.4881, allocations: 147 kB / 0.6458 GB, free: 5.336 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.491, allocations: 2.024 MB / 0.6477 GB, free: 3.328 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.491, allocations: 4 kB / 0.6477 GB, free: 3.324 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005366/0.4916, allocations: 458.9 kB / 0.6482 GB, free: 2.879 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.4928, allocations: 233.2 kB / 0.6484 GB, free: 2.652 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009376/0.5022, allocations: 6.615 MB / 0.6549 GB, free: 11.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002578/0.5048, allocations: 2.32 MB / 0.6571 GB, free: 9.566 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004304/0.5053, allocations: 147.4 kB / 0.6573 GB, free: 9.422 MB / 474.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5053, allocations: 0 / 0.6573 GB, free: 9.422 MB / 474.7 MB Notification: Performance of Templates: time 0.04199/0.5473, allocations: 30.12 MB / 0.6867 GB, free: 11.34 MB / 0.4948 GB 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