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.001709/0.001709, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.574/2.574, allocations: 205.4 MB / 223.6 MB, free: 9.043 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.001017/0.001017, allocations: 85.42 kB / 271.9 MB, free: 8.285 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.569/0.569, allocations: 43.56 MB / 363.8 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005492/0.0005496, allocations: 16 kB / 432.6 MB, free: 5.676 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1907, allocations: 58.85 MB / 491.4 MB, free: 10.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6158/0.8066, allocations: 109.2 MB / 0.5866 GB, free: 9.059 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000345/0.807, allocations: 83.95 kB / 0.5867 GB, free: 8.977 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9846/1.792, allocations: 144.4 MB / 0.7277 GB, free: 85.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.718e-06/1.792, allocations: 0 / 0.7277 GB, free: 85.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001051/1.793, allocations: 148.6 kB / 0.7278 GB, free: 85.43 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.04072/1.834, allocations: 6.983 MB / 0.7347 GB, free: 82.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.818e-05/1.834, allocations: 11.62 kB / 0.7347 GB, free: 82.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02864/1.862, allocations: 3.388 MB / 0.738 GB, free: 81.85 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02704/1.889, allocations: 6.425 MB / 0.7443 GB, free: 80.54 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001283/1.891, allocations: 0.5974 MB / 0.7448 GB, free: 80.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006741/1.898, allocations: 0.7961 MB / 0.7456 GB, free: 80.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08193/1.98, allocations: 21.67 MB / 0.7668 GB, free: 70.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007657/1.98, allocations: 92.81 kB / 0.7669 GB, free: 70.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005717/1.986, allocations: 387.5 kB / 0.7672 GB, free: 70.31 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005096/1.991, allocations: 1.95 MB / 0.7691 GB, free: 69.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0576/2.049, allocations: 17.49 MB / 0.7862 GB, free: 60.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5423/2.591, allocations: 79.57 MB / 0.8639 GB, free: 81.14 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02717/2.619, allocations: 6.632 MB / 0.8704 GB, free: 80.48 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006619/2.625, allocations: 2.26 MB / 0.8726 GB, free: 80.43 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02973/2.655, allocations: 9.817 MB / 0.8822 GB, free: 78.3 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02251/2.678, allocations: 4.382 MB / 0.8865 GB, free: 78.16 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=299): time 1.884e-05/2.678, allocations: 3.375 kB / 0.8865 GB, free: 78.16 MB / 0.4949 GB Notification: Performance of matching and sorting (n=333): time 0.1119/2.79, allocations: 23.15 MB / 0.9091 GB, free: 73.41 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/2.79, allocations: 160.4 kB / 0.9092 GB, free: 73.25 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02087/2.811, allocations: 6.102 MB / 0.9152 GB, free: 72.6 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009566/2.812, allocations: 82.3 kB / 0.9153 GB, free: 72.57 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.007556/2.819, allocations: 5.298 MB / 0.9205 GB, free: 69.58 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002601/2.822, allocations: 1.268 MB / 0.9217 GB, free: 68.86 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/2.824, allocations: 196 kB / 0.9219 GB, free: 68.86 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001337/2.825, allocations: 0.7252 MB / 0.9226 GB, free: 68.53 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008956/2.834, allocations: 2.871 MB / 0.9254 GB, free: 67.68 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01457/2.849, allocations: 8.658 MB / 0.9338 GB, free: 59.12 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02234/2.871, allocations: 12.5 MB / 0.9461 GB, free: 49.16 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000379/2.872, allocations: 56.53 kB / 0.9461 GB, free: 49.16 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1278) (initialization): time 0.03516/2.907, allocations: 11.3 MB / 0.9571 GB, free: 44.82 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002812/2.907, allocations: 118.5 kB / 0.9573 GB, free: 44.79 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004724/2.908, allocations: 207.3 kB / 0.9575 GB, free: 44.79 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003535/2.908, allocations: 268.4 kB / 0.9577 GB, free: 44.79 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01289/2.921, allocations: 2.395 MB / 0.96 GB, free: 44.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005686/2.921, allocations: 403.9 kB / 0.9604 GB, free: 44.41 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01288/2.934, allocations: 0.612 MB / 0.961 GB, free: 44.22 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003055/2.937, allocations: 0.5722 MB / 0.9616 GB, free: 44.14 MB / 0.4949 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 (1253): * Single equations (assignments): 1249 * 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.01226/2.95, allocations: 3.391 MB / 0.9649 GB, free: 42.57 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001797/2.952, allocations: 0.5534 MB / 0.9654 GB, free: 42.26 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009922/2.962, allocations: 3.43 MB / 0.9688 GB, free: 40.88 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.34e-05/2.962, allocations: 36.47 kB / 0.9688 GB, free: 40.88 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.231e-05/2.962, allocations: 0 / 0.9688 GB, free: 40.88 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.586e-05/2.962, allocations: 14.34 kB / 0.9688 GB, free: 40.88 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03908/3.001, allocations: 13.71 MB / 0.9822 GB, free: 33.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.711e-05/3.001, allocations: 38.62 kB / 0.9823 GB, free: 33.59 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003483/3.004, allocations: 0.6173 MB / 0.9829 GB, free: 33.06 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.746e-05/3.005, allocations: 44 kB / 0.9829 GB, free: 33.02 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004169/3.005, allocations: 106.4 kB / 0.983 GB, free: 32.92 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-05/3.005, allocations: 65.94 kB / 0.9831 GB, free: 32.86 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-05/3.005, allocations: 52.91 kB / 0.9831 GB, free: 32.81 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/3.017, allocations: 6.17 MB / 0.9892 GB, free: 26.61 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0039/3.021, allocations: 0.8592 MB / 0.99 GB, free: 25.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/3.023, allocations: 95.36 kB / 0.9901 GB, free: 25.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005011/3.028, allocations: 224.4 kB / 0.9903 GB, free: 25.54 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009072/3.029, allocations: 306.9 kB / 0.9906 GB, free: 25.32 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003386/3.029, allocations: 135.5 kB / 0.9907 GB, free: 25.19 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01091/3.04, allocations: 3.81 MB / 0.9944 GB, free: 22.07 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.61e-07/3.04, allocations: 0 / 0.9944 GB, free: 22.07 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01464/3.055, allocations: 1.589 MB / 0.996 GB, free: 20.5 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 148 * 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 (314): * Single equations (assignments): 309 * 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.001312/3.056, allocations: 294.8 kB / 0.9963 GB, free: 20.22 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01652/3.073, allocations: 6.567 MB / 1.003 GB, free: 14.45 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.839e-05/3.073, allocations: 8 kB / 1.003 GB, free: 14.45 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004709/3.077, allocations: 1.738 MB / 1.004 GB, free: 12.91 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04769/3.125, allocations: 0.7852 MB / 1.005 GB, free: 12.23 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05881/3.184, allocations: 19.89 MB / 1.025 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01583/3.2, allocations: 5.153 MB / 1.03 GB, free: 6.699 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00246/3.202, allocations: 481.1 kB / 1.03 GB, free: 6.246 MB / 0.5105 GB Notification: Performance of SimCode: time 1.212e-06/3.202, allocations: 0 / 1.03 GB, free: 6.246 MB / 0.5105 GB Notification: Performance of Templates: time 0.6732/3.876, allocations: 89.56 MB / 1.118 GB, free: 87.08 MB / 0.5261 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