Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009931/0.0009931, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 227.2 MB / 245 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008252/0.0008252, allocations: 97.02 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3053/0.3053, allocations: 45.24 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002929, allocations: 8 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2835, allocations: 63.25 MB / 0.5192 GB, free: 37.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.4074, allocations: 110.8 MB / 0.6274 GB, free: 8.594 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4076, allocations: 83.95 kB / 0.6275 GB, free: 8.512 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5385/0.9461, allocations: 144.9 MB / 0.769 GB, free: 73.39 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.9462, allocations: 0 / 0.769 GB, free: 73.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.00032/0.9465, allocations: 143.9 kB / 0.7691 GB, free: 73.25 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.01826/0.9648, allocations: 6.759 MB / 0.7757 GB, free: 66.39 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.9648, allocations: 12.03 kB / 0.7757 GB, free: 66.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/0.9792, allocations: 3.543 MB / 0.7792 GB, free: 62.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/0.9945, allocations: 6.354 MB / 0.7854 GB, free: 56.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004923/0.995, allocations: 0.5705 MB / 0.7859 GB, free: 55.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00323/0.9982, allocations: 0.7535 MB / 0.7867 GB, free: 55.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0434/1.042, allocations: 20.97 MB / 0.8072 GB, free: 32.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000503/1.042, allocations: 91.16 kB / 0.8073 GB, free: 32.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004387/1.047, allocations: 367.8 kB / 0.8076 GB, free: 32.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003015/1.05, allocations: 1.823 MB / 0.8094 GB, free: 30.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03447/1.084, allocations: 16.86 MB / 0.8258 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6259/1.71, allocations: 77.14 MB / 0.9012 GB, free: 64.52 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/1.725, allocations: 6.272 MB / 0.9073 GB, free: 63.84 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/1.738, allocations: 9.247 MB / 0.9163 GB, free: 61.62 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01192/1.75, allocations: 4.158 MB / 0.9204 GB, free: 61.5 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=264): time 1.059e-05/1.75, allocations: 0 / 0.9204 GB, free: 61.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=298): time 0.05227/1.802, allocations: 21.27 MB / 0.9412 GB, free: 56.55 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/1.803, allocations: 169.1 kB / 0.9413 GB, free: 56.4 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009177/1.812, allocations: 5.259 MB / 0.9465 GB, free: 55.8 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0005159/1.812, allocations: 74.19 kB / 0.9465 GB, free: 55.77 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003903/1.816, allocations: 5.055 MB / 0.9515 GB, free: 52.93 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001301/1.817, allocations: 1.148 MB / 0.9526 GB, free: 52.29 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008863/1.818, allocations: 188 kB / 0.9528 GB, free: 52.29 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0007498/1.819, allocations: 0.6875 MB / 0.9534 GB, free: 51.96 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004864/1.824, allocations: 2.668 MB / 0.956 GB, free: 51.94 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007594/1.832, allocations: 8.208 MB / 0.9641 GB, free: 44.47 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007408/1.839, allocations: 4.562 MB / 0.9685 GB, free: 43.03 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002158/1.839, allocations: 62.55 kB / 0.9686 GB, free: 43.03 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1207) (initialization): time 0.02207/1.861, allocations: 10.65 MB / 0.979 GB, free: 40 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004545/1.862, allocations: 121.2 kB / 0.9791 GB, free: 39.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005209/1.862, allocations: 197.1 kB / 0.9793 GB, free: 39.96 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000443/1.863, allocations: 295.9 kB / 0.9796 GB, free: 39.96 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007855/1.871, allocations: 2.251 MB / 0.9818 GB, free: 39.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000381/1.871, allocations: 395.3 kB / 0.9821 GB, free: 39.61 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007781/1.879, allocations: 0.5903 MB / 0.9827 GB, free: 39.44 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/1.881, allocations: 0.5399 MB / 0.9832 GB, free: 39.37 MB / 0.5262 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 (1182): * Single equations (assignments): 1178 * 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.007211/1.888, allocations: 3.238 MB / 0.9864 GB, free: 37.88 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.889, allocations: 0.523 MB / 0.9869 GB, free: 37.59 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005862/1.895, allocations: 2.996 MB / 0.9898 GB, free: 35.45 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/1.895, allocations: 32 kB / 0.9899 GB, free: 35.42 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/1.895, allocations: 3.953 kB / 0.9899 GB, free: 35.42 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/1.895, allocations: 13.12 kB / 0.9899 GB, free: 35.42 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02533/1.92, allocations: 12.55 MB / 1.002 GB, free: 24.52 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.003e-05/1.92, allocations: 32 kB / 1.002 GB, free: 24.49 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/1.922, allocations: 0.5466 MB / 1.003 GB, free: 24.02 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.899e-05/1.923, allocations: 55.47 kB / 1.003 GB, free: 23.97 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000278/1.923, allocations: 84 kB / 1.003 GB, free: 23.89 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.566e-05/1.923, allocations: 69.36 kB / 1.003 GB, free: 23.83 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.232e-05/1.923, allocations: 55.31 kB / 1.003 GB, free: 23.78 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007702/1.931, allocations: 11.25 MB / 1.014 GB, free: 11.14 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.932, allocations: 0.6057 MB / 1.015 GB, free: 10.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/1.933, allocations: 94.38 kB / 1.015 GB, free: 10.46 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.936, allocations: 204.4 kB / 1.015 GB, free: 10.3 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/1.937, allocations: 284 kB / 1.015 GB, free: 10.09 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/1.937, allocations: 122.2 kB / 1.015 GB, free: 9.977 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.007134/1.944, allocations: 3.68 MB / 1.019 GB, free: 6.965 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.1e-07/1.944, allocations: 4 kB / 1.019 GB, free: 6.961 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009727/1.954, allocations: 1.487 MB / 1.02 GB, free: 5.484 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 146 * 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 (276): * Single equations (assignments): 271 * 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.0008537/1.955, allocations: 291.9 kB / 1.021 GB, free: 5.219 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01118/1.966, allocations: 6.112 MB / 1.027 GB, free: 0 / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 5.369e-05/1.966, allocations: 7.953 kB / 1.027 GB, free: 0 / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.004405/1.97, allocations: 1.71 MB / 1.028 GB, free: 14.8 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004236/1.975, allocations: 0.7178 MB / 1.029 GB, free: 14.19 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03628/2.011, allocations: 17.46 MB / 1.046 GB, free: 13.65 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/2.022, allocations: 5.031 MB / 1.051 GB, free: 9.961 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.009544/2.031, allocations: 2.625 MB / 1.053 GB, free: 8.316 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/2.033, allocations: 378.8 kB / 1.054 GB, free: 7.953 MB / 0.5574 GB Notification: Performance of SimCode: time 6.31e-07/2.033, allocations: 0 / 1.054 GB, free: 7.953 MB / 0.5574 GB Notification: Performance of Templates: time 0.09942/2.133, allocations: 44.96 MB / 1.098 GB, free: 12.34 MB / 0.6043 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches