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.001805/0.001805, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.617/1.617, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007704/0.0007706, allocations: 98.28 kB / 270.9 MB, free: 8.352 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.3846/0.3846, allocations: 43.56 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003805, allocations: 12 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3401/0.4753, allocations: 79.5 MB / 0.5564 GB, free: 9.988 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04768/0.523, allocations: 16.03 MB / 0.572 GB, free: 15.06 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02317/0.5462, allocations: 376.9 kB / 0.5724 GB, free: 15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01814/0.5644, allocations: 4.166 MB / 0.5765 GB, free: 13.51 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0419/0.6063, allocations: 12.13 MB / 0.5883 GB, free: 6.199 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006518/0.6129, allocations: 1.087 MB / 0.5894 GB, free: 5.113 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01247/0.6254, allocations: 8.21 MB / 0.5974 GB, free: 12.89 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01462/0.64, allocations: 8.553 MB / 0.6057 GB, free: 4.293 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005369/0.6454, allocations: 2.183 MB / 0.6079 GB, free: 2.102 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006183/0.6517, allocations: 3.61 MB / 0.6114 GB, free: 14.48 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.6535, allocations: 279.9 kB / 0.6117 GB, free: 14.21 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003828/0.6573, allocations: 0.8857 MB / 0.6125 GB, free: 13.32 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004615/0.662, allocations: 3.051 MB / 0.6155 GB, free: 10.26 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003178/0.6652, allocations: 1.427 MB / 0.6169 GB, free: 8.824 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.6765, allocations: 9.364 MB / 0.626 GB, free: 15.44 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.6765, allocations: 0 / 0.626 GB, free: 15.44 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6766, allocations: 0 / 0.626 GB, free: 15.44 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000461/0.677, allocations: 4 kB / 0.626 GB, free: 15.43 MB / 458.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.01432/0.6914, allocations: 6.799 MB / 0.6327 GB, free: 8.547 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.6914, allocations: 8.031 kB / 0.6327 GB, free: 8.539 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/0.7035, allocations: 2.783 MB / 0.6354 GB, free: 5.742 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008614/0.7121, allocations: 3.897 MB / 0.6392 GB, free: 1.785 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004434/0.7126, allocations: 459.6 kB / 0.6397 GB, free: 1.336 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001997/0.7146, allocations: 0.5895 MB / 0.6402 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04545/0.7601, allocations: 21.28 MB / 0.661 GB, free: 10.31 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/0.7604, allocations: 83.23 kB / 0.6611 GB, free: 10.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009982/0.7614, allocations: 287.7 kB / 0.6614 GB, free: 9.945 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005632/0.7671, allocations: 3.537 MB / 0.6648 GB, free: 6.402 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5183/1.285, allocations: 17.26 MB / 0.6817 GB, free: 131.1 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09706/1.382, allocations: 67.88 MB / 0.748 GB, free: 85.04 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01992/1.402, allocations: 6.775 MB / 0.7546 GB, free: 81.54 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004912/1.407, allocations: 2.335 MB / 0.7569 GB, free: 80.39 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01733/1.425, allocations: 9.813 MB / 0.7664 GB, free: 72.97 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01293/1.438, allocations: 4.418 MB / 0.7708 GB, free: 68.5 MB / 490.8 MB Notification: Performance of pre-optimization done (n=299): time 8.065e-06/1.438, allocations: 0 / 0.7708 GB, free: 68.5 MB / 490.8 MB Notification: Performance of matching and sorting (n=333): time 0.06211/1.5, allocations: 23.1 MB / 0.7933 GB, free: 45.27 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/1.5, allocations: 162.7 kB / 0.7935 GB, free: 45.07 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/1.511, allocations: 6.015 MB / 0.7993 GB, free: 39.04 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006614/1.511, allocations: 81.7 kB / 0.7994 GB, free: 38.96 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003546/1.515, allocations: 5.294 MB / 0.8046 GB, free: 33.67 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.516, allocations: 1.263 MB / 0.8058 GB, free: 32.41 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005135/1.517, allocations: 203.9 kB / 0.806 GB, free: 32.21 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004229/1.517, allocations: 0.7197 MB / 0.8067 GB, free: 31.49 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004387/1.522, allocations: 2.861 MB / 0.8095 GB, free: 28.62 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007016/1.529, allocations: 8.683 MB / 0.818 GB, free: 17.07 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007738/1.537, allocations: 4.86 MB / 0.8227 GB, free: 12.18 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001984/1.537, allocations: 64 kB / 0.8228 GB, free: 12.12 MB / 490.8 MB Notification: Performance of matching and sorting (n=1296) (initialization): time 0.0227/1.56, allocations: 11.31 MB / 0.8338 GB, free: 0.7617 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003341/1.56, allocations: 117.7 kB / 0.834 GB, free: 0.6406 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003642/1.56, allocations: 212 kB / 0.8342 GB, free: 444 kB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003423/1.561, allocations: 304 kB / 0.8344 GB, free: 140 kB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008821/1.57, allocations: 2.379 MB / 0.8368 GB, free: 13.75 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004907/1.57, allocations: 414.4 kB / 0.8372 GB, free: 13.35 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008131/1.578, allocations: 491.4 kB / 0.8376 GB, free: 12.87 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001988/1.58, allocations: 0.5774 MB / 0.8382 GB, free: 12.29 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * 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 (1271): * Single equations (assignments): 1267 * 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.008373/1.589, allocations: 3.398 MB / 0.8415 GB, free: 8.879 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/1.59, allocations: 0.5438 MB / 0.842 GB, free: 8.328 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008449/1.599, allocations: 3.533 MB / 0.8455 GB, free: 4.742 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-05/1.599, allocations: 39.95 kB / 0.8455 GB, free: 4.703 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.019e-05/1.599, allocations: 0 / 0.8455 GB, free: 4.703 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.912e-05/1.599, allocations: 15.94 kB / 0.8456 GB, free: 4.688 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0306/1.629, allocations: 13.81 MB / 0.859 GB, free: 6.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001146/1.63, allocations: 32 kB / 0.8591 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002843/1.632, allocations: 0.6786 MB / 0.8597 GB, free: 5.684 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.409e-05/1.633, allocations: 52 kB / 0.8598 GB, free: 5.633 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004326/1.633, allocations: 99.98 kB / 0.8599 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.791e-05/1.633, allocations: 67.78 kB / 0.8599 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.71e-05/1.633, allocations: 55.7 kB / 0.86 GB, free: 5.414 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2705/1.904, allocations: 6.212 MB / 0.8661 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003054/1.907, allocations: 0.8484 MB / 0.8669 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000875/1.908, allocations: 101.2 kB / 0.867 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/1.91, allocations: 180.7 kB / 0.8672 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005156/1.91, allocations: 316.6 kB / 0.8675 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/1.911, allocations: 132.5 kB / 0.8676 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008156/1.919, allocations: 3.727 MB / 0.8712 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.7e-07/1.919, allocations: 0 / 0.8712 GB, free: 149.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01154/1.93, allocations: 1.576 MB / 0.8728 GB, free: 149.1 MB / 0.5105 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 (320): * Single equations (assignments): 315 * 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.00111/1.932, allocations: 281.2 kB / 0.873 GB, free: 149 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01192/1.944, allocations: 6.607 MB / 0.8795 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.121e-05/1.944, allocations: 3.281 kB / 0.8795 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.947, allocations: 1.761 MB / 0.8812 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0071/1.954, allocations: 0.7633 MB / 0.882 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03245/1.986, allocations: 19.52 MB / 0.901 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00796/1.994, allocations: 5.125 MB / 0.906 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001847/1.996, allocations: 494 kB / 0.9065 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of SimCode: time 8.82e-07/1.996, allocations: 0 / 0.9065 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.1396/2.136, allocations: 89.95 MB / 0.9943 GB, free: 61.25 MB / 0.5105 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/jenkins/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