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.00141/0.00141, allocations: 200.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 226.6 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007934/0.0007935, allocations: 106.3 kB / 295.5 MB, free: 6.852 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3098/0.3098, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.00028, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3303, allocations: 62.96 MB / 0.5159 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.05989/0.3903, allocations: 78.43 MB / 0.5925 GB, free: 9.883 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03872/0.429, allocations: 15.87 MB / 0.608 GB, free: 10.89 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.016/0.4451, allocations: 363.2 kB / 0.6083 GB, free: 10.54 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01297/0.4581, allocations: 4.148 MB / 0.6124 GB, free: 6.371 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03433/0.4925, allocations: 11.98 MB / 0.6241 GB, free: 10.35 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005855/0.4983, allocations: 1.123 MB / 0.6252 GB, free: 9.223 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.5087, allocations: 8.036 MB / 0.633 GB, free: 1.176 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01336/0.5221, allocations: 8.944 MB / 0.6417 GB, free: 8.129 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004115/0.5263, allocations: 2.047 MB / 0.6437 GB, free: 6.074 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004977/0.5313, allocations: 3.349 MB / 0.647 GB, free: 2.715 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.5325, allocations: 256 kB / 0.6473 GB, free: 2.465 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002616/0.5351, allocations: 0.9908 MB / 0.6482 GB, free: 1.473 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003355/0.5385, allocations: 2.883 MB / 0.651 GB, free: 14.58 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004415/0.543, allocations: 3.147 MB / 0.6541 GB, free: 11.41 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.5532, allocations: 8.795 MB / 0.6627 GB, free: 2.594 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.5532, allocations: 0 / 0.6627 GB, free: 2.594 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.5532, allocations: 0 / 0.6627 GB, free: 2.594 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004478/0.5537, allocations: 0 / 0.6627 GB, free: 2.594 MB / 474.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.01322/0.5669, allocations: 6.398 MB / 0.6689 GB, free: 12.11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.567, allocations: 8.031 kB / 0.669 GB, free: 12.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/0.5773, allocations: 2.717 MB / 0.6716 GB, free: 9.367 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007379/0.5847, allocations: 3.603 MB / 0.6751 GB, free: 5.703 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003664/0.5851, allocations: 455.5 kB / 0.6756 GB, free: 5.258 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.5866, allocations: 0.5621 MB / 0.6761 GB, free: 4.695 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4482/1.035, allocations: 20.32 MB / 0.696 GB, free: 123.9 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/1.035, allocations: 75.02 kB / 0.696 GB, free: 123.9 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006899/1.036, allocations: 271.4 kB / 0.6963 GB, free: 123.7 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005161/1.041, allocations: 3.336 MB / 0.6995 GB, free: 123.2 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04093/1.082, allocations: 16.36 MB / 0.7155 GB, free: 118 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07091/1.153, allocations: 65.4 MB / 0.7794 GB, free: 54.66 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/1.168, allocations: 6.398 MB / 0.7856 GB, free: 48.12 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002846/1.171, allocations: 2.089 MB / 0.7877 GB, free: 46.03 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01264/1.183, allocations: 9.169 MB / 0.7966 GB, free: 36.62 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01165/1.195, allocations: 4.187 MB / 0.8007 GB, free: 32.39 MB / 490.8 MB Notification: Performance of pre-optimization done (n=260): time 5.069e-06/1.195, allocations: 0 / 0.8007 GB, free: 32.39 MB / 490.8 MB Notification: Performance of matching and sorting (n=294): time 0.04767/1.243, allocations: 21.62 MB / 0.8218 GB, free: 10.71 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/1.243, allocations: 170.5 kB / 0.822 GB, free: 10.52 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/1.249, allocations: 5.819 MB / 0.8277 GB, free: 4.672 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004543/1.25, allocations: 73.7 kB / 0.8277 GB, free: 4.594 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002994/1.253, allocations: 5.063 MB / 0.8327 GB, free: 15.46 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001269/1.254, allocations: 1.138 MB / 0.8338 GB, free: 14.31 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000343/1.254, allocations: 184 kB / 0.834 GB, free: 14.13 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004817/1.255, allocations: 0.6988 MB / 0.8347 GB, free: 13.42 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00426/1.259, allocations: 2.634 MB / 0.8372 GB, free: 10.78 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007859/1.267, allocations: 8.26 MB / 0.8453 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0142/1.281, allocations: 11.88 MB / 0.8569 GB, free: 1.066 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001534/1.281, allocations: 56 kB / 0.857 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.02187/1.303, allocations: 10.63 MB / 0.8673 GB, free: 6.363 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/1.303, allocations: 115.4 kB / 0.8674 GB, free: 6.246 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002473/1.304, allocations: 200 kB / 0.8676 GB, free: 6.051 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/1.304, allocations: 268 kB / 0.8679 GB, free: 5.789 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007197/1.311, allocations: 2.235 MB / 0.8701 GB, free: 3.551 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003322/1.311, allocations: 386.5 kB / 0.8704 GB, free: 3.172 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.318, allocations: 467.5 kB / 0.8709 GB, free: 2.715 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001061/1.319, allocations: 0.5508 MB / 0.8714 GB, free: 2.164 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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 (1196): * Single equations (assignments): 1192 * 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.005289/1.324, allocations: 3.234 MB / 0.8746 GB, free: 14.91 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007581/1.325, allocations: 0.5244 MB / 0.8751 GB, free: 14.38 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004937/1.33, allocations: 3.045 MB / 0.8781 GB, free: 11.32 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.176e-05/1.33, allocations: 35.91 kB / 0.8781 GB, free: 11.29 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/1.33, allocations: 0 / 0.8781 GB, free: 11.29 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/1.33, allocations: 19.94 kB / 0.8781 GB, free: 11.27 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2561/1.586, allocations: 12.48 MB / 0.8903 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.823e-05/1.586, allocations: 31.34 kB / 0.8903 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002249/1.588, allocations: 0.5998 MB / 0.8909 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-05/1.588, allocations: 46.81 kB / 0.891 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/1.589, allocations: 91.91 kB / 0.8911 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.709e-05/1.589, allocations: 66.28 kB / 0.8911 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.321e-05/1.589, allocations: 47.22 kB / 0.8912 GB, free: 167.4 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006333/1.595, allocations: 5.452 MB / 0.8965 GB, free: 165.3 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001525/1.597, allocations: 0.5937 MB / 0.8971 GB, free: 165.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008584/1.598, allocations: 89.67 kB / 0.8972 GB, free: 165.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002071/1.6, allocations: 160 kB / 0.8973 GB, free: 165.1 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003853/1.6, allocations: 288.5 kB / 0.8976 GB, free: 165.1 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/1.6, allocations: 120.8 kB / 0.8977 GB, free: 165 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.006172/1.606, allocations: 3.605 MB / 0.9012 GB, free: 163.8 MB / 0.5418 GB Notification: Performance of sort global known variables: time 5.71e-07/1.606, allocations: 3 kB / 0.9012 GB, free: 163.8 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.007837/1.614, allocations: 1.471 MB / 0.9027 GB, free: 163.7 MB / 0.5418 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 (278): * Single equations (assignments): 273 * 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.0007714/1.615, allocations: 280 kB / 0.9029 GB, free: 163.5 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01006/1.625, allocations: 6.065 MB / 0.9089 GB, free: 161.5 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.892e-05/1.625, allocations: 5.25 kB / 0.9089 GB, free: 161.5 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.002864/1.628, allocations: 1.531 MB / 0.9104 GB, free: 161 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02623/1.654, allocations: 0.7691 MB / 0.9111 GB, free: 160.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/1.683, allocations: 18.27 MB / 0.9289 GB, free: 150.4 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008243/1.692, allocations: 4.877 MB / 0.9337 GB, free: 148.7 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/1.693, allocations: 454 kB / 0.9341 GB, free: 148.7 MB / 0.5418 GB Notification: Performance of SimCode: time 1.112e-06/1.693, allocations: 4 kB / 0.9341 GB, free: 148.7 MB / 0.5418 GB Notification: Performance of Templates: time 0.1124/1.806, allocations: 84.35 MB / 1.017 GB, free: 77.29 MB / 0.5418 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/jenkins/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