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/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.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/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 197.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 227.2 MB / 245 MB, free: 7.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009139/0.0009141, allocations: 108.6 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2898/0.2898, allocations: 45.24 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.000335, allocations: 8 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3224, allocations: 63.24 MB / 0.5192 GB, free: 43.35 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.4896, allocations: 106.9 MB / 0.6236 GB, free: 14.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003299/0.4899, allocations: 83.95 kB / 0.6237 GB, free: 14.62 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5754/1.065, allocations: 157.4 MB / 0.7773 GB, free: 87.59 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.966e-06/1.065, allocations: 4 kB / 0.7774 GB, free: 87.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003535/1.066, allocations: 148.6 kB / 0.7775 GB, free: 87.58 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.02264/1.088, allocations: 7.891 MB / 0.7852 GB, free: 82.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/1.089, allocations: 6.812 kB / 0.7852 GB, free: 82.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01577/1.104, allocations: 3.518 MB / 0.7886 GB, free: 80.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/1.121, allocations: 7.929 MB / 0.7964 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004205/1.122, allocations: 0.5585 MB / 0.7969 GB, free: 76.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002881/1.125, allocations: 0.7442 MB / 0.7977 GB, free: 75.84 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03039/1.155, allocations: 17.75 MB / 0.815 GB, free: 57.28 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002053/1.155, allocations: 99.11 kB / 0.8151 GB, free: 57.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009623/1.156, allocations: 359.8 kB / 0.8154 GB, free: 56.83 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00179/1.158, allocations: 1.621 MB / 0.817 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02398/1.182, allocations: 13.85 MB / 0.8305 GB, free: 41.34 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.345/1.527, allocations: 74.59 MB / 0.9034 GB, free: 97.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/1.541, allocations: 5.28 MB / 0.9085 GB, free: 96.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01446/1.555, allocations: 9.97 MB / 0.9183 GB, free: 93.93 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/1.556, allocations: 58.44 kB / 0.9183 GB, free: 93.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=182): time 3.958e-06/1.556, allocations: 0 / 0.9183 GB, free: 93.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=206): time 0.03571/1.591, allocations: 14.29 MB / 0.9323 GB, free: 89.51 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/1.591, allocations: 161.1 kB / 0.9324 GB, free: 89.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01312/1.605, allocations: 5.69 MB / 0.938 GB, free: 88.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005026/1.605, allocations: 56.53 kB / 0.938 GB, free: 88.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005268/1.61, allocations: 5.301 MB / 0.9432 GB, free: 85.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.611, allocations: 0.8141 MB / 0.944 GB, free: 85.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007263/1.612, allocations: 161.9 kB / 0.9442 GB, free: 85.45 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004592/1.613, allocations: 0.6466 MB / 0.9448 GB, free: 85.13 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003873/1.617, allocations: 2.267 MB / 0.947 GB, free: 85.11 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006706/1.623, allocations: 7.582 MB / 0.9544 GB, free: 78.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00772/1.631, allocations: 4.003 MB / 0.9583 GB, free: 78.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003671/1.631, allocations: 54.47 kB / 0.9584 GB, free: 78.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.02084/1.652, allocations: 9.504 MB / 0.9677 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001641/1.653, allocations: 90.72 kB / 0.9677 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002765/1.653, allocations: 193.1 kB / 0.9679 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/1.653, allocations: 283.3 kB / 0.9682 GB, free: 76.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006227/1.659, allocations: 1.984 MB / 0.9701 GB, free: 75.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002405/1.66, allocations: 377.6 kB / 0.9705 GB, free: 75.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008232/1.668, allocations: 0.5713 MB / 0.9711 GB, free: 75.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/1.669, allocations: 0.5024 MB / 0.9715 GB, free: 75.62 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 68 (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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,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 (1031): * Single equations (assignments): 1028 * 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 prepare postOptimizeDAE: time 0.007177/1.676, allocations: 3.4 MB / 0.9749 GB, free: 74.11 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.678, allocations: 0.544 MB / 0.9754 GB, free: 73.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/1.679, allocations: 0.6442 MB / 0.976 GB, free: 73.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-05/1.679, allocations: 20.23 kB / 0.976 GB, free: 73.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.728e-05/1.679, allocations: 5.906 kB / 0.9761 GB, free: 73.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.679e-05/1.679, allocations: 14.77 kB / 0.9761 GB, free: 73.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02316/1.702, allocations: 15.1 MB / 0.9908 GB, free: 67.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/1.703, allocations: 42.12 kB / 0.9909 GB, free: 67.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/1.704, allocations: 437.4 kB / 0.9913 GB, free: 67.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.365e-05/1.704, allocations: 66.25 kB / 0.9913 GB, free: 67.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/1.704, allocations: 97.66 kB / 0.9914 GB, free: 67.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-05/1.704, allocations: 86.38 kB / 0.9915 GB, free: 67.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.56e-05/1.704, allocations: 68.28 kB / 0.9916 GB, free: 67.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005621/1.71, allocations: 11.91 MB / 1.003 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/1.711, allocations: 0.6442 MB / 1.004 GB, free: 54.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000512/1.712, allocations: 104.9 kB / 1.004 GB, free: 54.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/1.714, allocations: 177.3 kB / 1.004 GB, free: 54.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/1.714, allocations: 292.4 kB / 1.004 GB, free: 54.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.714, allocations: 121 kB / 1.005 GB, free: 54.22 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007488/1.722, allocations: 4.037 MB / 1.008 GB, free: 52.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.91e-07/1.722, allocations: 0 / 1.008 GB, free: 52.95 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009238/1.731, allocations: 1.362 MB / 1.01 GB, free: 52.79 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 203 * 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 (230): * Single equations (assignments): 227 * 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.0007022/1.732, allocations: 279.3 kB / 1.01 GB, free: 52.58 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008265/1.74, allocations: 5.216 MB / 1.015 GB, free: 50.87 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.961e-05/1.74, allocations: 7.75 kB / 1.015 GB, free: 50.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/1.741, allocations: 1.16 MB / 1.016 GB, free: 50.47 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/1.745, allocations: 0.8536 MB / 1.017 GB, free: 50.17 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02474/1.77, allocations: 18.28 MB / 1.035 GB, free: 33.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007602/1.778, allocations: 5.404 MB / 1.04 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006392/1.784, allocations: 2.578 MB / 1.043 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008048/1.785, allocations: 359 kB / 1.043 GB, free: 27.5 MB / 0.5261 GB Notification: Performance of SimCode: time 9.91e-07/1.785, allocations: 0 / 1.043 GB, free: 27.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.07553/1.861, allocations: 42.01 MB / 1.084 GB, free: 8.617 MB / 0.5417 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches