Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00166/0.00166, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001619/0.001619, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.375, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01533/0.3903, allocations: 15 MB / 0.5456 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.4026, allocations: 5.04 MB / 0.5506 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004346/0.407, allocations: 119.6 kB / 0.5507 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01087/0.4179, allocations: 5.974 MB / 0.5565 GB, free: 7.531 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007711/0.4257, allocations: 2.735 MB / 0.5592 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003604/0.4293, allocations: 1.575 MB / 0.5607 GB, free: 3.207 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.4402, allocations: 7.79 MB / 0.5683 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008443/0.4487, allocations: 7.377 MB / 0.5755 GB, free: 3.926 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006531/0.4552, allocations: 2.976 MB / 0.5784 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008436/0.4637, allocations: 3.774 MB / 0.5821 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003195/0.4669, allocations: 0.5703 MB / 0.5827 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005963/0.4729, allocations: 1.385 MB / 0.584 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00714/0.4801, allocations: 3.456 MB / 0.5874 GB, free: 7.734 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007427/0.4876, allocations: 3.837 MB / 0.5911 GB, free: 3.875 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01842/0.5061, allocations: 11.64 MB / 0.6025 GB, free: 8.184 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.5061, allocations: 0 / 0.6025 GB, free: 8.184 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5061, allocations: 3.938 kB / 0.6025 GB, free: 8.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003656/0.5065, allocations: 0 / 0.6025 GB, free: 8.18 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.02053/0.527, allocations: 8.676 MB / 0.611 GB, free: 15.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.5271, allocations: 8.031 kB / 0.611 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.5374, allocations: 2.527 MB / 0.6135 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009165/0.5466, allocations: 4.528 MB / 0.6179 GB, free: 8.262 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003614/0.547, allocations: 426.6 kB / 0.6183 GB, free: 7.844 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001447/0.5485, allocations: 0.5387 MB / 0.6188 GB, free: 7.305 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02986/0.5784, allocations: 16.69 MB / 0.6351 GB, free: 5.492 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001736/0.5786, allocations: 71.34 kB / 0.6352 GB, free: 5.422 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007133/0.5793, allocations: 267.8 kB / 0.6354 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004212/0.5835, allocations: 2.924 MB / 0.6383 GB, free: 2.234 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0276/0.6111, allocations: 12.79 MB / 0.6508 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09237/0.7035, allocations: 64.08 MB / 0.7134 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5617/1.265, allocations: 5.374 MB / 0.7186 GB, free: 159.9 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002936/1.268, allocations: 2.12 MB / 0.7207 GB, free: 159.4 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01485/1.283, allocations: 9.953 MB / 0.7304 GB, free: 154.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/1.283, allocations: 58.39 kB / 0.7305 GB, free: 154.5 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=182): time 5.3e-06/1.283, allocations: 0 / 0.7305 GB, free: 154.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=206): time 0.03604/1.319, allocations: 14.35 MB / 0.7445 GB, free: 149 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/1.319, allocations: 145.3 kB / 0.7446 GB, free: 148.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007485/1.327, allocations: 6.306 MB / 0.7508 GB, free: 145.1 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003514/1.327, allocations: 57.7 kB / 0.7508 GB, free: 145 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002304/1.33, allocations: 5.277 MB / 0.756 GB, free: 140.2 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/1.33, allocations: 0.8555 MB / 0.7568 GB, free: 139.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001624/1.332, allocations: 1.687 MB / 0.7585 GB, free: 137.6 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.653e-05/1.332, allocations: 301.1 kB / 0.7588 GB, free: 137.3 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/1.335, allocations: 2.327 MB / 0.761 GB, free: 135 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004438/1.339, allocations: 7.674 MB / 0.7685 GB, free: 124.8 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008439/1.348, allocations: 10.88 MB / 0.7791 GB, free: 111.2 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/1.348, allocations: 56.28 kB / 0.7792 GB, free: 111.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.0177/1.365, allocations: 9.674 MB / 0.7886 GB, free: 101.5 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/1.366, allocations: 84.94 kB / 0.7887 GB, free: 101.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/1.366, allocations: 197.5 kB / 0.7889 GB, free: 101.2 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/1.366, allocations: 248 kB / 0.7891 GB, free: 101 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005616/1.372, allocations: 1.934 MB / 0.791 GB, free: 99.06 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002072/1.372, allocations: 370.6 kB / 0.7914 GB, free: 98.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006265/1.378, allocations: 415.2 kB / 0.7918 GB, free: 98.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008806/1.379, allocations: 0.5117 MB / 0.7923 GB, free: 97.78 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1043): * Single equations (assignments): 1032 * Array equations: 11 * 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.004316/1.383, allocations: 3.288 MB / 0.7955 GB, free: 94.48 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008025/1.384, allocations: 0.5549 MB / 0.796 GB, free: 93.92 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009896/1.385, allocations: 0.6318 MB / 0.7967 GB, free: 93.28 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/1.385, allocations: 20 kB / 0.7967 GB, free: 93.26 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.909e-05/1.385, allocations: 4 kB / 0.7967 GB, free: 93.26 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/1.385, allocations: 7.969 kB / 0.7967 GB, free: 93.25 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/1.403, allocations: 15 MB / 0.8113 GB, free: 77.58 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.832e-05/1.403, allocations: 49.19 kB / 0.8114 GB, free: 77.53 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.405, allocations: 447.1 kB / 0.8118 GB, free: 77.09 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-05/1.405, allocations: 60 kB / 0.8119 GB, free: 77.04 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/1.405, allocations: 103.5 kB / 0.812 GB, free: 76.94 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-05/1.405, allocations: 91.64 kB / 0.812 GB, free: 76.85 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.291e-05/1.405, allocations: 71.69 kB / 0.8121 GB, free: 76.78 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/1.41, allocations: 4.336 MB / 0.8163 GB, free: 71.74 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/1.411, allocations: 0.6613 MB / 0.817 GB, free: 71.05 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004973/1.411, allocations: 107.9 kB / 0.8171 GB, free: 70.95 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/1.413, allocations: 115.9 kB / 0.8172 GB, free: 70.84 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/1.413, allocations: 310.5 kB / 0.8175 GB, free: 70.54 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.413, allocations: 124 kB / 0.8176 GB, free: 70.41 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005054/1.419, allocations: 3.935 MB / 0.8215 GB, free: 66.49 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.31e-07/1.419, allocations: 0 / 0.8215 GB, free: 66.49 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007014/1.426, allocations: 1.318 MB / 0.8228 GB, free: 65.17 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * 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 (238): * Single equations (assignments): 235 * 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.0004936/1.426, allocations: 272.2 kB / 0.823 GB, free: 64.9 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.007421/1.434, allocations: 5.485 MB / 0.8284 GB, free: 59.45 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.781e-05/1.434, allocations: 4 kB / 0.8284 GB, free: 59.45 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.001362/1.435, allocations: 1.198 MB / 0.8295 GB, free: 58.26 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005268/1.44, allocations: 0.8802 MB / 0.8304 GB, free: 57.39 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/1.461, allocations: 15.28 MB / 0.8453 GB, free: 41.41 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005783/1.467, allocations: 5.072 MB / 0.8503 GB, free: 36.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005086/1.472, allocations: 2.542 MB / 0.8528 GB, free: 33.75 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/1.472, allocations: 359.4 kB / 0.8531 GB, free: 33.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.022e-06/1.472, allocations: 0 / 0.8531 GB, free: 33.4 MB / 0.5607 GB Notification: Performance of Templates: time 0.07282/1.545, allocations: 38.91 MB / 0.8911 GB, free: 10.78 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches