Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.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.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2") translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.5 MB / 244.1 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007377/0.0007377, allocations: 101.2 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2896/0.2896, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002422, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2632, allocations: 62.95 MB / 0.5165 GB, free: 37.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.3825, allocations: 110.8 MB / 0.6247 GB, free: 10.54 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3828, allocations: 83.95 kB / 0.6248 GB, free: 10.45 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6259/1.009, allocations: 141.2 MB / 0.7627 GB, free: 80.18 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.186e-06/1.009, allocations: 0 / 0.7627 GB, free: 80.18 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004247/1.009, allocations: 143.9 kB / 0.7628 GB, free: 80.04 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.02266/1.032, allocations: 6.669 MB / 0.7693 GB, free: 73.28 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/1.032, allocations: 8.031 kB / 0.7694 GB, free: 73.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01781/1.05, allocations: 3.302 MB / 0.7726 GB, free: 69.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/1.061, allocations: 5.547 MB / 0.778 GB, free: 64.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004525/1.061, allocations: 0.57 MB / 0.7785 GB, free: 63.78 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00312/1.064, allocations: 0.754 MB / 0.7793 GB, free: 63.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04085/1.105, allocations: 20.79 MB / 0.7996 GB, free: 40.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003063/1.106, allocations: 99.33 kB / 0.7997 GB, free: 40.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001888/1.107, allocations: 375.7 kB / 0.8 GB, free: 40.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002357/1.11, allocations: 1.823 MB / 0.8018 GB, free: 38.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03338/1.143, allocations: 16.62 MB / 0.8181 GB, free: 21.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3485/1.492, allocations: 77.07 MB / 0.8933 GB, free: 69.14 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01543/1.507, allocations: 6.26 MB / 0.8994 GB, free: 68.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003076/1.51, allocations: 2.018 MB / 0.9014 GB, free: 68.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0143/1.525, allocations: 9.154 MB / 0.9104 GB, free: 66.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01306/1.538, allocations: 4.148 MB / 0.9144 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=260): time 6.041e-06/1.538, allocations: 3.172 kB / 0.9144 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=294): time 0.05484/1.593, allocations: 21.47 MB / 0.9354 GB, free: 61.65 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/1.593, allocations: 156.3 kB / 0.9355 GB, free: 61.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00842/1.601, allocations: 5.908 MB / 0.9413 GB, free: 60.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005038/1.602, allocations: 71.08 kB / 0.9414 GB, free: 60.83 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003624/1.605, allocations: 5.063 MB / 0.9463 GB, free: 57.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001223/1.607, allocations: 1.132 MB / 0.9474 GB, free: 57.35 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005657/1.607, allocations: 185.2 kB / 0.9476 GB, free: 57.35 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004122/1.608, allocations: 0.6946 MB / 0.9483 GB, free: 57.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004309/1.612, allocations: 2.649 MB / 0.9509 GB, free: 57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006927/1.619, allocations: 8.228 MB / 0.9589 GB, free: 49.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01124/1.63, allocations: 11.79 MB / 0.9704 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001686/1.63, allocations: 57.66 kB / 0.9705 GB, free: 40.17 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1203) (initialization): time 0.01863/1.649, allocations: 10.61 MB / 0.9808 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.649, allocations: 123.1 kB / 0.9809 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002183/1.649, allocations: 194.8 kB / 0.9811 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/1.65, allocations: 262.4 kB / 0.9814 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006723/1.656, allocations: 2.244 MB / 0.9836 GB, free: 36.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002623/1.657, allocations: 389 kB / 0.9839 GB, free: 36.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006909/1.664, allocations: 0.5928 MB / 0.9845 GB, free: 35.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001288/1.665, allocations: 0.5386 MB / 0.985 GB, free: 35.86 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1178): * Single equations (assignments): 1174 * Array equations: 3 * Algorithm blocks: 1 * 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.006056/1.671, allocations: 3.235 MB / 0.9882 GB, free: 33.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008306/1.672, allocations: 0.5206 MB / 0.9887 GB, free: 32.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004751/1.677, allocations: 2.943 MB / 0.9916 GB, free: 30.15 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.07e-05/1.677, allocations: 32 kB / 0.9916 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.677, allocations: 0 / 0.9916 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/1.677, allocations: 13.12 kB / 0.9916 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01944/1.696, allocations: 12.4 MB / 1.004 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/1.696, allocations: 35.94 kB / 1.004 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/1.698, allocations: 0.5433 MB / 1.004 GB, free: 18.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.252e-05/1.698, allocations: 44 kB / 1.004 GB, free: 18.81 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001803/1.698, allocations: 95.12 kB / 1.004 GB, free: 18.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.171e-05/1.698, allocations: 63.55 kB / 1.004 GB, free: 18.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-05/1.698, allocations: 51.75 kB / 1.005 GB, free: 18.62 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006045/1.704, allocations: 5.39 MB / 1.01 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/1.706, allocations: 0.5955 MB / 1.01 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008222/1.707, allocations: 99.84 kB / 1.01 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/1.709, allocations: 202.7 kB / 1.011 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003513/1.709, allocations: 286.3 kB / 1.011 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/1.71, allocations: 114.6 kB / 1.011 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006187/1.716, allocations: 3.684 MB / 1.015 GB, free: 9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.51e-07/1.716, allocations: 0 / 1.015 GB, free: 9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007626/1.723, allocations: 1.488 MB / 1.016 GB, free: 7.527 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006274/1.724, allocations: 277.8 kB / 1.016 GB, free: 7.266 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009338/1.733, allocations: 6.042 MB / 1.022 GB, free: 1.949 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.171e-05/1.733, allocations: 4 kB / 1.022 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002382/1.736, allocations: 1.512 MB / 1.024 GB, free: 0.5977 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02817/1.764, allocations: 0.7709 MB / 1.025 GB, free: 0 / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03346/1.798, allocations: 18.42 MB / 1.042 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008964/1.807, allocations: 4.897 MB / 1.047 GB, free: 11.49 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.808, allocations: 442.6 kB / 1.048 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of SimCode: time 8.12e-07/1.808, allocations: 0 / 1.048 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of Templates: time 0.3916/2.2, allocations: 84.2 MB / 1.13 GB, free: 192.5 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches