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.00119/0.00119, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 46.1 MB / 344.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 81.36 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1315, allocations: 62.45 MB / 480.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3189/0.4504, allocations: 75.1 MB / 0.5422 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03634/0.4868, allocations: 14.45 MB / 0.5563 GB, free: 6.551 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01735/0.5042, allocations: 321.4 kB / 0.5567 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009527/0.5138, allocations: 4.98 MB / 0.5615 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.5214, allocations: 2.301 MB / 0.5638 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.5249, allocations: 1.111 MB / 0.5648 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01056/0.5354, allocations: 6.73 MB / 0.5714 GB, free: 9.809 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009485/0.545, allocations: 6.721 MB / 0.578 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00531/0.5503, allocations: 2.637 MB / 0.5806 GB, free: 396 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006303/0.5567, allocations: 4.047 MB / 0.5845 GB, free: 12.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002467/0.5592, allocations: 0.5781 MB / 0.5851 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004179/0.5634, allocations: 1.284 MB / 0.5863 GB, free: 10.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004961/0.5684, allocations: 3.269 MB / 0.5895 GB, free: 7.188 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0074/0.5758, allocations: 3.705 MB / 0.5931 GB, free: 3.461 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01113/0.587, allocations: 8.79 MB / 0.6017 GB, free: 10.65 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.5871, allocations: 0 / 0.6017 GB, free: 10.65 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5871, allocations: 4 kB / 0.6017 GB, free: 10.65 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004448/0.5875, allocations: 0 / 0.6017 GB, free: 10.65 MB / 446.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.01918/0.6067, allocations: 7.66 MB / 0.6092 GB, free: 2.902 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.6068, allocations: 12.03 kB / 0.6092 GB, free: 2.891 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.6178, allocations: 2.585 MB / 0.6117 GB, free: 300 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008032/0.6259, allocations: 3.529 MB / 0.6152 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004634/0.6264, allocations: 435.5 kB / 0.6156 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002123/0.6285, allocations: 0.562 MB / 0.6162 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04473/0.6733, allocations: 19.78 MB / 0.6355 GB, free: 6.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004348/0.6738, allocations: 67.41 kB / 0.6355 GB, free: 6.734 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002353/0.6761, allocations: 271.8 kB / 0.6358 GB, free: 6.469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005207/0.6814, allocations: 3.161 MB / 0.6389 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03987/0.7213, allocations: 15.92 MB / 0.6544 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0879/0.8092, allocations: 64.07 MB / 0.717 GB, free: 1.625 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4448/1.254, allocations: 6.391 MB / 0.7232 GB, free: 195.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004067/1.258, allocations: 2.082 MB / 0.7253 GB, free: 195.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01949/1.278, allocations: 9.215 MB / 0.7343 GB, free: 190.8 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01471/1.293, allocations: 4.2 MB / 0.7384 GB, free: 190.2 MB / 0.545 GB Notification: Performance of pre-optimization done (n=260): time 1.121e-05/1.293, allocations: 2.938 kB / 0.7384 GB, free: 190.2 MB / 0.545 GB Notification: Performance of matching and sorting (n=294): time 0.05557/1.348, allocations: 21.6 MB / 0.7595 GB, free: 179.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/1.348, allocations: 158.5 kB / 0.7596 GB, free: 179.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007167/1.355, allocations: 5.768 MB / 0.7652 GB, free: 173.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005383/1.356, allocations: 73.64 kB / 0.7653 GB, free: 173.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003361/1.359, allocations: 4.929 MB / 0.7701 GB, free: 168.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001215/1.361, allocations: 1.132 MB / 0.7712 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002182/1.363, allocations: 1.82 MB / 0.773 GB, free: 165.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.126e-05/1.363, allocations: 301.1 kB / 0.7733 GB, free: 165.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/1.367, allocations: 2.681 MB / 0.7759 GB, free: 162.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006223/1.373, allocations: 8.232 MB / 0.784 GB, free: 151.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.384, allocations: 11.85 MB / 0.7955 GB, free: 137.2 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/1.384, allocations: 56 kB / 0.7956 GB, free: 137.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01821/1.403, allocations: 10.65 MB / 0.806 GB, free: 126.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/1.403, allocations: 117.7 kB / 0.8061 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/1.403, allocations: 196 kB / 0.8063 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/1.403, allocations: 263.9 kB / 0.8065 GB, free: 125.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006673/1.41, allocations: 2.219 MB / 0.8087 GB, free: 123.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002715/1.41, allocations: 398.5 kB / 0.8091 GB, free: 123.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006391/1.417, allocations: 475.3 kB / 0.8095 GB, free: 122.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001367/1.418, allocations: 0.543 MB / 0.8101 GB, free: 122.3 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.005085/1.423, allocations: 3.146 MB / 0.8131 GB, free: 119.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008867/1.424, allocations: 0.5129 MB / 0.8136 GB, free: 118.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00486/1.429, allocations: 3.069 MB / 0.8166 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.116e-05/1.429, allocations: 35.94 kB / 0.8167 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.429, allocations: 0 / 0.8167 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.717e-05/1.429, allocations: 23.69 kB / 0.8167 GB, free: 115.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01957/1.449, allocations: 12.27 MB / 0.8287 GB, free: 102.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-05/1.449, allocations: 32 kB / 0.8287 GB, free: 102.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002103/1.451, allocations: 0.5933 MB / 0.8293 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.53e-05/1.451, allocations: 44 kB / 0.8293 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/1.451, allocations: 91.58 kB / 0.8294 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-05/1.451, allocations: 63.78 kB / 0.8295 GB, free: 101.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-05/1.451, allocations: 51.75 kB / 0.8295 GB, free: 101.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006203/1.457, allocations: 5.498 MB / 0.8349 GB, free: 95.78 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/1.459, allocations: 0.5801 MB / 0.8355 GB, free: 95.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008229/1.46, allocations: 91.97 kB / 0.8356 GB, free: 95.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002178/1.462, allocations: 159.9 kB / 0.8357 GB, free: 94.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/1.462, allocations: 275.9 kB / 0.836 GB, free: 94.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/1.462, allocations: 128 kB / 0.8361 GB, free: 94.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005427/1.468, allocations: 3.582 MB / 0.8396 GB, free: 90.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.81e-07/1.468, allocations: 0 / 0.8396 GB, free: 90.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007488/1.475, allocations: 1.421 MB / 0.841 GB, free: 89.57 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.0006877/1.476, allocations: 257.2 kB / 0.8412 GB, free: 89.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01066/1.487, allocations: 6.716 MB / 0.8478 GB, free: 82.65 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.844e-05/1.487, allocations: 4 kB / 0.8478 GB, free: 82.65 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002632/1.49, allocations: 1.563 MB / 0.8493 GB, free: 81.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005235/1.495, allocations: 0.7701 MB / 0.8501 GB, free: 80.35 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02663/1.521, allocations: 18.4 MB / 0.868 GB, free: 61.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/1.528, allocations: 4.756 MB / 0.8727 GB, free: 56.71 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/1.53, allocations: 447.4 kB / 0.8731 GB, free: 56.27 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.53, allocations: 0 / 0.8731 GB, free: 56.27 MB / 0.545 GB Notification: Performance of Templates: time 0.3743/1.904, allocations: 83.33 MB / 0.9545 GB, free: 155.9 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches