Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 201.2 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2187/0.2187, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 79.88 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3838, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.01128/0.3952, allocations: 9.525 MB / 0.5403 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007165/0.4024, allocations: 2.92 MB / 0.5431 GB, free: 3.895 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001749/0.4041, allocations: 49.25 kB / 0.5432 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004082/0.4082, allocations: 1.998 MB / 0.5451 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003756/0.4121, allocations: 1.133 MB / 0.5462 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.4131, allocations: 286.5 kB / 0.5465 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003843/0.417, allocations: 2.332 MB / 0.5488 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00318/0.4202, allocations: 2.309 MB / 0.551 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.4218, allocations: 0.8722 MB / 0.5519 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002548/0.4244, allocations: 1.16 MB / 0.553 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.4254, allocations: 192 kB / 0.5532 GB, free: 10.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002214/0.4277, allocations: 0.7021 MB / 0.5539 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001738/0.4294, allocations: 1.11 MB / 0.555 GB, free: 9.082 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.4322, allocations: 1.305 MB / 0.5563 GB, free: 7.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006025/0.4383, allocations: 4.315 MB / 0.5605 GB, free: 3.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.4383, allocations: 3.938 kB / 0.5605 GB, free: 3.438 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4383, allocations: 4 kB / 0.5605 GB, free: 3.434 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001905/0.4385, allocations: 4 kB / 0.5605 GB, free: 3.43 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.006651/0.4452, allocations: 2.857 MB / 0.5633 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4452, allocations: 12.03 kB / 0.5633 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005707/0.4509, allocations: 1.549 MB / 0.5648 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.4535, allocations: 1.344 MB / 0.5661 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.4536, allocations: 148 kB / 0.5662 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003583/0.454, allocations: 187.8 kB / 0.5664 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008958/0.463, allocations: 6.25 MB / 0.5725 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.34e-05/0.463, allocations: 11.88 kB / 0.5725 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/0.4633, allocations: 91.89 kB / 0.5726 GB, free: 6.609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001979/0.4653, allocations: 1.34 MB / 0.5739 GB, free: 5.266 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.4758, allocations: 5.327 MB / 0.5791 GB, free: 15.92 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03747/0.5133, allocations: 20.04 MB / 0.5987 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004524/0.5179, allocations: 2.01 MB / 0.6007 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.519, allocations: 0.6914 MB / 0.6013 GB, free: 8.484 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007102/0.5261, allocations: 3.612 MB / 0.6049 GB, free: 4.727 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.5262, allocations: 43 kB / 0.6049 GB, free: 4.676 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 3.957e-06/0.5262, allocations: 0 / 0.6049 GB, free: 4.676 MB / 462.1 MB Notification: Performance of matching and sorting (n=78): time 0.005533/0.5318, allocations: 1.97 MB / 0.6068 GB, free: 2.695 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/0.5319, allocations: 67.77 kB / 0.6069 GB, free: 2.617 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.536, allocations: 1.941 MB / 0.6088 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.5361, allocations: 33.7 kB / 0.6088 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.5377, allocations: 1.832 MB / 0.6106 GB, free: 14.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.5381, allocations: 316.1 kB / 0.6109 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.5393, allocations: 0.619 MB / 0.6115 GB, free: 13.83 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.5395, allocations: 357.9 kB / 0.6119 GB, free: 13.47 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.541, allocations: 0.8842 MB / 0.6127 GB, free: 12.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/0.5438, allocations: 2.755 MB / 0.6154 GB, free: 8.898 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004532/0.5484, allocations: 3.964 MB / 0.6193 GB, free: 4.012 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.506e-05/0.5484, allocations: 20 kB / 0.6193 GB, free: 3.992 MB / 478.1 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.006358/0.5548, allocations: 3.526 MB / 0.6228 GB, free: 468 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/0.5549, allocations: 36 kB / 0.6228 GB, free: 432 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.555, allocations: 68 kB / 0.6229 GB, free: 364 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.525e-05/0.5551, allocations: 88 kB / 0.6229 GB, free: 276 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.5571, allocations: 0.6588 MB / 0.6236 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001281/0.5572, allocations: 131.5 kB / 0.6237 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.5592, allocations: 416 kB / 0.6241 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/0.5595, allocations: 187.9 kB / 0.6243 GB, free: 14.89 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.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 (362): * Single equations (assignments): 357 * 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.002116/0.5617, allocations: 1.338 MB / 0.6256 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/0.562, allocations: 153.9 kB / 0.6257 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004358/0.5625, allocations: 196.9 kB / 0.6259 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.5625, allocations: 15.94 kB / 0.6259 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.5625, allocations: 7.938 kB / 0.6259 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.5626, allocations: 3.984 kB / 0.626 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007172/0.5697, allocations: 4.02 MB / 0.6299 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-05/0.5698, allocations: 8.844 kB / 0.6299 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/0.5702, allocations: 103.8 kB / 0.63 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.5702, allocations: 12 kB / 0.63 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.5703, allocations: 20 kB / 0.63 GB, free: 8.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.178e-05/0.5703, allocations: 15.98 kB / 0.63 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/0.5703, allocations: 7.938 kB / 0.63 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.572, allocations: 1.266 MB / 0.6313 GB, free: 7.457 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.5726, allocations: 242.8 kB / 0.6315 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003629/0.5729, allocations: 20 kB / 0.6315 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007596/0.5737, allocations: 31.88 kB / 0.6316 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.5739, allocations: 55.83 kB / 0.6316 GB, free: 7.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.218e-05/0.5739, allocations: 32 kB / 0.6316 GB, free: 7.062 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002842/0.5768, allocations: 1.267 MB / 0.6329 GB, free: 5.805 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5768, allocations: 4 kB / 0.6329 GB, free: 5.801 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003074/0.5799, allocations: 0.6766 MB / 0.6335 GB, free: 5.121 MB / 494.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.0004294/0.5803, allocations: 146.9 kB / 0.6337 GB, free: 4.969 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.5842, allocations: 2.048 MB / 0.6357 GB, free: 2.938 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/0.5842, allocations: 0 / 0.6357 GB, free: 2.938 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.585, allocations: 469 kB / 0.6361 GB, free: 2.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.5868, allocations: 247 kB / 0.6364 GB, free: 2.242 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009501/0.5963, allocations: 5.049 MB / 0.6413 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003032/0.5994, allocations: 2.279 MB / 0.6435 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002308/0.6017, allocations: 0.9597 MB / 0.6445 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/0.6021, allocations: 119.4 kB / 0.6446 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of SimCode: time 1.333e-06/0.6021, allocations: 0 / 0.6446 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of Templates: time 0.03392/0.6361, allocations: 14.99 MB / 0.6592 GB, free: 10.72 MB / 0.5137 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches