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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 127.9 kB / 18.46 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 201.8 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 251.6 MB, free: 60 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2468/0.2468, allocations: 46.16 MB / 351.1 MB, free: 14.29 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5097,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=5097,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 81.39 kB / 490.2 MB, free: 28.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1189, allocations: 62.45 MB / 0.5397 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01808/0.1371, allocations: 16.16 MB / 0.5555 GB, free: 3.992 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.1486, allocations: 5.013 MB / 0.5604 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.1509, allocations: 103.8 kB / 0.5605 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009406/0.1603, allocations: 5.163 MB / 0.5655 GB, free: 9.676 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006536/0.1669, allocations: 2.474 MB / 0.5679 GB, free: 7.191 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002476/0.1694, allocations: 1.186 MB / 0.5691 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00913/0.1786, allocations: 6.706 MB / 0.5756 GB, free: 15.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008942/0.1875, allocations: 6.351 MB / 0.5818 GB, free: 8.852 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004533/0.1921, allocations: 2.602 MB / 0.5844 GB, free: 6.242 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005988/0.1981, allocations: 3.692 MB / 0.588 GB, free: 2.539 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001874/0.2, allocations: 0.5781 MB / 0.5885 GB, free: 1.961 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003293/0.2033, allocations: 1.264 MB / 0.5898 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00469/0.208, allocations: 3.215 MB / 0.5929 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007848/0.2159, allocations: 3.67 MB / 0.5965 GB, free: 9.781 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3659/0.5819, allocations: 11.16 MB / 0.6074 GB, free: 24.92 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.196e-05/0.582, allocations: 0.5625 kB / 0.6074 GB, free: 24.92 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.582, allocations: 0 / 0.6074 GB, free: 24.92 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005233/0.5825, allocations: 0.5 kB / 0.6074 GB, free: 24.92 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.02185/0.6044, allocations: 7.862 MB / 0.6151 GB, free: 21.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.6044, allocations: 9.656 kB / 0.6151 GB, free: 21.88 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01224/0.6167, allocations: 2.632 MB / 0.6177 GB, free: 21.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.6282, allocations: 3.603 MB / 0.6212 GB, free: 20.61 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006227/0.6289, allocations: 434.9 kB / 0.6216 GB, free: 20.6 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003852/0.6327, allocations: 0.548 MB / 0.6221 GB, free: 20.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04516/0.6779, allocations: 19.79 MB / 0.6415 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/0.6782, allocations: 76.06 kB / 0.6415 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001284/0.6795, allocations: 267 kB / 0.6418 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00382/0.6833, allocations: 3.151 MB / 0.6449 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03308/0.7164, allocations: 15.92 MB / 0.6604 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09565/0.8121, allocations: 63.92 MB / 0.7228 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01917/0.8313, allocations: 6.402 MB / 0.7291 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003796/0.8352, allocations: 2.119 MB / 0.7312 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01674/0.8519, allocations: 9.235 MB / 0.7402 GB, free: 13.36 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01514/0.8671, allocations: 4.197 MB / 0.7443 GB, free: 9.125 MB / 0.545 GB Notification: Performance of pre-optimization done (n=260): time 4.959e-06/0.8671, allocations: 0 / 0.7443 GB, free: 9.125 MB / 0.545 GB Notification: Performance of matching and sorting (n=294): time 0.06666/0.9338, allocations: 21.96 MB / 0.7657 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.934, allocations: 166.3 kB / 0.7659 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009719/0.9437, allocations: 5.787 MB / 0.7715 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0005543/0.9443, allocations: 65.7 kB / 0.7716 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.006174/0.9505, allocations: 5.13 MB / 0.7766 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002084/0.9526, allocations: 1.179 MB / 0.7778 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002815/0.9554, allocations: 1.838 MB / 0.7795 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.9556, allocations: 301.1 kB / 0.7798 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005237/0.9608, allocations: 2.674 MB / 0.7824 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/0.9711, allocations: 8.235 MB / 0.7905 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01825/0.9894, allocations: 11.85 MB / 0.8021 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001582/0.9896, allocations: 56 kB / 0.8021 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.02344/1.013, allocations: 10.69 MB / 0.8125 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001695/1.013, allocations: 119.7 kB / 0.8127 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002684/1.013, allocations: 196 kB / 0.8128 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003078/1.014, allocations: 263.9 kB / 0.8131 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007374/1.021, allocations: 2.229 MB / 0.8153 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003428/1.022, allocations: 386.5 kB / 0.8156 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006277/1.028, allocations: 471.5 kB / 0.8161 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.029, allocations: 0.5429 MB / 0.8166 GB, free: 10.51 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.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 (1187): * Single equations (assignments): 1183 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006249/1.035, allocations: 3.148 MB / 0.8197 GB, free: 7.348 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009329/1.036, allocations: 0.5433 MB / 0.8202 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005755/1.042, allocations: 3.062 MB / 0.8232 GB, free: 3.719 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-05/1.042, allocations: 30.58 kB / 0.8232 GB, free: 3.691 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/1.042, allocations: 7.75 kB / 0.8233 GB, free: 3.688 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.481e-05/1.042, allocations: 11.95 kB / 0.8233 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02099/1.063, allocations: 12.26 MB / 0.8352 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-05/1.063, allocations: 32 kB / 0.8353 GB, free: 6.902 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002278/1.066, allocations: 0.5895 MB / 0.8358 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.625e-05/1.066, allocations: 44 kB / 0.8359 GB, free: 6.27 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/1.066, allocations: 98.61 kB / 0.836 GB, free: 6.176 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.417e-05/1.066, allocations: 67.72 kB / 0.836 GB, free: 6.109 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.501e-05/1.066, allocations: 47.81 kB / 0.8361 GB, free: 6.062 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008372/1.074, allocations: 5.534 MB / 0.8415 GB, free: 15.98 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/1.076, allocations: 0.6105 MB / 0.8421 GB, free: 15.35 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009904/1.077, allocations: 95.97 kB / 0.8422 GB, free: 15.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003158/1.08, allocations: 162 kB / 0.8423 GB, free: 15.11 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005826/1.081, allocations: 283.9 kB / 0.8426 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002956/1.081, allocations: 116 kB / 0.8427 GB, free: 14.71 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.009014/1.09, allocations: 3.585 MB / 0.8462 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of sort global known variables: time 6.11e-07/1.09, allocations: 0 / 0.8462 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01226/1.102, allocations: 1.422 MB / 0.8476 GB, free: 9.738 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009301/1.103, allocations: 263.9 kB / 0.8479 GB, free: 9.477 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01676/1.12, allocations: 6.186 MB / 0.8539 GB, free: 3.332 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.598e-05/1.12, allocations: 8 kB / 0.8539 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00519/1.125, allocations: 1.636 MB / 0.8555 GB, free: 1.699 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006153/1.132, allocations: 0.7538 MB / 0.8562 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3215/1.453, allocations: 14.52 MB / 0.8704 GB, free: 237.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00548/1.459, allocations: 4.764 MB / 0.8751 GB, free: 236.7 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005452/1.464, allocations: 2.576 MB / 0.8776 GB, free: 236.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/1.465, allocations: 390 kB / 0.878 GB, free: 236.4 MB / 0.6544 GB Notification: Performance of SimCode: time 1.112e-06/1.465, allocations: 0 / 0.878 GB, free: 236.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.07764/1.543, allocations: 42.05 MB / 0.919 GB, free: 204.5 MB / 0.6544 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.171648742631078]