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) 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/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 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=5000,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=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.244/0.244, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002254/0.002254, allocations: 80.19 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1662, allocations: 62.44 MB / 480 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01972/0.1859, allocations: 16.14 MB / 496.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.1992, allocations: 5.032 MB / 0.4894 GB, free: 12 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004564/0.2038, allocations: 95.8 kB / 0.4895 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.2145, allocations: 5.155 MB / 0.4946 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009095/0.2236, allocations: 2.482 MB / 0.497 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003994/0.2277, allocations: 1.178 MB / 0.4981 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.2402, allocations: 6.724 MB / 0.5047 GB, free: 348 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3077/0.548, allocations: 6.353 MB / 0.5109 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006086/0.5541, allocations: 2.594 MB / 0.5134 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00771/0.5618, allocations: 3.691 MB / 0.517 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003528/0.5654, allocations: 0.5795 MB / 0.5176 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005814/0.5712, allocations: 1.268 MB / 0.5189 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005814/0.5771, allocations: 3.213 MB / 0.522 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00671/0.5838, allocations: 3.669 MB / 0.5256 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.5959, allocations: 10.74 MB / 0.5361 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.596, allocations: 7.156 kB / 0.5361 GB, free: 3.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.596, allocations: 0 / 0.5361 GB, free: 3.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004391/0.5964, allocations: 7.656 kB / 0.5361 GB, free: 3.957 MB / 382.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.0175/0.6139, allocations: 7.661 MB / 0.5436 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.614, allocations: 13.56 kB / 0.5436 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01039/0.6244, allocations: 2.585 MB / 0.5461 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008194/0.6326, allocations: 3.533 MB / 0.5495 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003801/0.633, allocations: 432.8 kB / 0.55 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002222/0.6352, allocations: 0.5505 MB / 0.5505 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04303/0.6783, allocations: 19.79 MB / 0.5698 GB, free: 5.363 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002131/0.6785, allocations: 77.66 kB / 0.5699 GB, free: 5.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009833/0.6795, allocations: 269.6 kB / 0.5701 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004771/0.6843, allocations: 3.147 MB / 0.5732 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04122/0.7255, allocations: 15.92 MB / 0.5888 GB, free: 2.367 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08763/0.8132, allocations: 64.08 MB / 0.6513 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01946/0.8327, allocations: 6.403 MB / 0.6576 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004309/0.8371, allocations: 2.08 MB / 0.6596 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01888/0.856, allocations: 9.206 MB / 0.6686 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01528/0.8713, allocations: 4.194 MB / 0.6727 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 8.907e-06/0.8714, allocations: 0 / 0.6727 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.0732/0.9446, allocations: 21.6 MB / 0.6938 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.9448, allocations: 165.7 kB / 0.694 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01566/0.9605, allocations: 5.772 MB / 0.6996 GB, free: 15.59 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006115/0.9611, allocations: 69.7 kB / 0.6997 GB, free: 15.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005396/0.9666, allocations: 4.926 MB / 0.7045 GB, free: 10.59 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.9683, allocations: 1.131 MB / 0.7056 GB, free: 9.473 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005641/0.9739, allocations: 1.823 MB / 0.7074 GB, free: 7.637 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.9741, allocations: 305.1 kB / 0.7077 GB, free: 7.336 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005911/0.98, allocations: 2.677 MB / 0.7103 GB, free: 4.652 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2895/1.269, allocations: 8.232 MB / 0.7183 GB, free: 182.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01473/1.284, allocations: 11.85 MB / 0.7299 GB, free: 173.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003814/1.285, allocations: 55.84 kB / 0.7299 GB, free: 173.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.0264/1.311, allocations: 10.66 MB / 0.7403 GB, free: 169.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003108/1.311, allocations: 119.7 kB / 0.7405 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005231/1.312, allocations: 196.5 kB / 0.7406 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00057/1.313, allocations: 267.1 kB / 0.7409 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008164/1.321, allocations: 2.223 MB / 0.7431 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003406/1.321, allocations: 386.4 kB / 0.7434 GB, free: 169.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007015/1.328, allocations: 474 kB / 0.7439 GB, free: 168.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001119/1.329, allocations: 0.5416 MB / 0.7444 GB, free: 168.9 MB / 0.545 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.005925/1.335, allocations: 3.154 MB / 0.7475 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008521/1.336, allocations: 0.5064 MB / 0.748 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005647/1.342, allocations: 3.061 MB / 0.751 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/1.342, allocations: 37 kB / 0.751 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.277e-05/1.342, allocations: 7.438 kB / 0.751 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-05/1.342, allocations: 17.97 kB / 0.751 GB, free: 166.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02161/1.363, allocations: 12.27 MB / 0.763 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.522e-05/1.364, allocations: 31.94 kB / 0.763 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002125/1.366, allocations: 0.5918 MB / 0.7636 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.971e-05/1.366, allocations: 44 kB / 0.7637 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002427/1.366, allocations: 95.69 kB / 0.7638 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.755e-05/1.366, allocations: 67.3 kB / 0.7638 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.969e-05/1.366, allocations: 47.81 kB / 0.7639 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006834/1.373, allocations: 5.509 MB / 0.7692 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/1.374, allocations: 0.5821 MB / 0.7698 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001129/1.376, allocations: 99.58 kB / 0.7699 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/1.378, allocations: 149.3 kB / 0.7701 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/1.379, allocations: 281 kB / 0.7703 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/1.379, allocations: 123.8 kB / 0.7704 GB, free: 153.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005709/1.384, allocations: 3.588 MB / 0.7739 GB, free: 150.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.384, allocations: 0 / 0.7739 GB, free: 150.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008628/1.393, allocations: 1.415 MB / 0.7753 GB, free: 149.1 MB / 0.545 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.0004929/1.394, allocations: 266.2 kB / 0.7756 GB, free: 148.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01124/1.405, allocations: 6.715 MB / 0.7821 GB, free: 142.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-05/1.405, allocations: 4 kB / 0.7821 GB, free: 142.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002629/1.408, allocations: 1.634 MB / 0.7837 GB, free: 141.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006869/1.414, allocations: 0.7652 MB / 0.7845 GB, free: 140.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/1.442, allocations: 14.46 MB / 0.7986 GB, free: 126.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007615/1.45, allocations: 4.757 MB / 0.8033 GB, free: 121.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006345/1.456, allocations: 2.579 MB / 0.8058 GB, free: 119.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009466/1.457, allocations: 379.4 kB / 0.8061 GB, free: 118.7 MB / 0.545 GB Notification: Performance of SimCode: time 9.32e-07/1.457, allocations: 4 kB / 0.8061 GB, free: 118.7 MB / 0.545 GB Notification: Performance of Templates: time 0.0786/1.536, allocations: 47.4 MB / 0.8524 GB, free: 71.54 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile (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) 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) Reference file matches