Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001492/0.001492, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.899/1.899, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001115, allocations: 88.17 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5084/0.5084, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004909/0.0004907, allocations: 16 kB / 431.4 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1251, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/0.6129, allocations: 109 MB / 0.5852 GB, free: 9.473 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.6133, allocations: 83.95 kB / 0.5853 GB, free: 9.391 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9657/1.579, allocations: 146.6 MB / 0.7285 GB, free: 85.53 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.579, allocations: 0 / 0.7285 GB, free: 85.53 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003934/1.58, allocations: 147.6 kB / 0.7286 GB, free: 85.52 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: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.02698/1.607, allocations: 7.083 MB / 0.7355 GB, free: 82.47 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/1.607, allocations: 7.719 kB / 0.7355 GB, free: 82.47 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02865/1.635, allocations: 3.627 MB / 0.7391 GB, free: 81.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02557/1.661, allocations: 7.7 MB / 0.7466 GB, free: 80.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008214/1.662, allocations: 0.6081 MB / 0.7472 GB, free: 80.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004464/1.666, allocations: 0.7937 MB / 0.748 GB, free: 79.87 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07555/1.742, allocations: 21.83 MB / 0.7693 GB, free: 70.33 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000569/1.742, allocations: 100.8 kB / 0.7694 GB, free: 70.27 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004208/1.747, allocations: 389.9 kB / 0.7697 GB, free: 70.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005321/1.752, allocations: 1.942 MB / 0.7716 GB, free: 69.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06429/1.816, allocations: 17.71 MB / 0.7889 GB, free: 57.04 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5311/2.348, allocations: 79.65 MB / 0.8667 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03122/2.379, allocations: 6.654 MB / 0.8732 GB, free: 41.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0267/2.406, allocations: 9.931 MB / 0.8829 GB, free: 39.56 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02537/2.431, allocations: 4.388 MB / 0.8872 GB, free: 39.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=303): time 9.878e-06/2.431, allocations: 0 / 0.8872 GB, free: 39.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=337): time 0.1103/2.541, allocations: 22.62 MB / 0.9093 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.563e-05/2.542, allocations: 165.7 kB / 0.9095 GB, free: 34.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01576/2.557, allocations: 5.443 MB / 0.9148 GB, free: 33.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007512/2.558, allocations: 74.83 kB / 0.9148 GB, free: 33.57 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005693/2.564, allocations: 5.152 MB / 0.9199 GB, free: 30.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002092/2.566, allocations: 1.279 MB / 0.9211 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/2.567, allocations: 196.5 kB / 0.9213 GB, free: 29.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009002/2.568, allocations: 0.7269 MB / 0.922 GB, free: 29.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009587/2.578, allocations: 2.894 MB / 0.9248 GB, free: 29.44 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0135/2.591, allocations: 8.636 MB / 0.9333 GB, free: 21.18 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/2.605, allocations: 4.874 MB / 0.938 GB, free: 19.59 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002281/2.605, allocations: 60.03 kB / 0.9381 GB, free: 19.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1282) (initialization): time 0.03252/2.638, allocations: 11.16 MB / 0.949 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/2.638, allocations: 120.7 kB / 0.9491 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003582/2.638, allocations: 205.5 kB / 0.9493 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003118/2.638, allocations: 302.4 kB / 0.9496 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01477/2.653, allocations: 2.392 MB / 0.9519 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004143/2.654, allocations: 404.6 kB / 0.9523 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/2.665, allocations: 0.623 MB / 0.9529 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002099/2.667, allocations: 0.568 MB / 0.9535 GB, free: 15.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 928 * Number of states: 0 () * Number of discrete variables: 77 ($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.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.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.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 (1257): * Single equations (assignments): 1253 * 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.00967/2.677, allocations: 3.395 MB / 0.9568 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00146/2.679, allocations: 0.547 MB / 0.9573 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/2.69, allocations: 3.481 MB / 0.9607 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.234e-05/2.69, allocations: 33.22 kB / 0.9608 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/2.69, allocations: 7.781 kB / 0.9608 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.208e-05/2.69, allocations: 15.41 kB / 0.9608 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03969/2.73, allocations: 13.88 MB / 0.9743 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-05/2.73, allocations: 37.56 kB / 0.9744 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004528/2.735, allocations: 0.6212 MB / 0.975 GB, free: 6.559 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.429e-05/2.735, allocations: 52.28 kB / 0.975 GB, free: 6.559 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003618/2.735, allocations: 101.3 kB / 0.9751 GB, free: 6.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-05/2.735, allocations: 73.31 kB / 0.9752 GB, free: 6.504 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.36e-05/2.735, allocations: 54.59 kB / 0.9752 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/2.753, allocations: 12.44 MB / 0.9874 GB, free: 8.957 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003632/2.757, allocations: 0.8557 MB / 0.9882 GB, free: 8.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/2.758, allocations: 107.5 kB / 0.9883 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005178/2.764, allocations: 221.8 kB / 0.9885 GB, free: 7.887 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000932/2.765, allocations: 316.3 kB / 0.9888 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003503/2.765, allocations: 131.4 kB / 0.989 GB, free: 7.523 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01209/2.777, allocations: 3.806 MB / 0.9927 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.21e-07/2.777, allocations: 0 / 0.9927 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01238/2.789, allocations: 1.599 MB / 0.9942 GB, free: 2.828 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 152 * 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 (318): * Single equations (assignments): 313 * 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.001264/2.791, allocations: 294.5 kB / 0.9945 GB, free: 2.551 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02017/2.811, allocations: 6.63 MB / 1.001 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.183e-05/2.811, allocations: 4.375 kB / 1.001 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00594/2.817, allocations: 1.768 MB / 1.003 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006285/2.823, allocations: 0.7245 MB / 1.003 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05158/2.875, allocations: 19.49 MB / 1.022 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/2.889, allocations: 5.296 MB / 1.028 GB, free: 4.406 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002515/2.891, allocations: 483 kB / 1.028 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of SimCode: time 1.062e-06/2.891, allocations: 0 / 1.028 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of Templates: time 0.5887/3.48, allocations: 88.54 MB / 1.115 GB, free: 166 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches