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.001486/0.001486, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001646, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 76.06 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3097, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.0158/0.3255, allocations: 16.14 MB / 0.5474 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.3371, allocations: 5.028 MB / 0.5523 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003491/0.3406, allocations: 95.75 kB / 0.5524 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009207/0.3498, allocations: 5.163 MB / 0.5575 GB, free: 7.227 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007053/0.357, allocations: 2.474 MB / 0.5599 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002952/0.3599, allocations: 1.193 MB / 0.5611 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009921/0.3699, allocations: 6.702 MB / 0.5676 GB, free: 12.83 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008941/0.3789, allocations: 6.357 MB / 0.5738 GB, free: 6.395 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004549/0.3834, allocations: 2.594 MB / 0.5763 GB, free: 3.793 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005525/0.389, allocations: 3.7 MB / 0.58 GB, free: 84 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001945/0.391, allocations: 0.5743 MB / 0.5805 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003477/0.3944, allocations: 1.268 MB / 0.5818 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00405/0.3985, allocations: 3.23 MB / 0.5849 GB, free: 11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006123/0.4047, allocations: 3.671 MB / 0.5885 GB, free: 7.309 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01331/0.418, allocations: 11.13 MB / 0.5994 GB, free: 12.14 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.418, allocations: 0 / 0.5994 GB, free: 12.14 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.418, allocations: 0 / 0.5994 GB, free: 12.14 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004271/0.4185, allocations: 0 / 0.5994 GB, free: 12.14 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.01855/0.437, allocations: 7.664 MB / 0.6068 GB, free: 4.391 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.594e-05/0.4371, allocations: 11.97 kB / 0.6069 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01091/0.4481, allocations: 2.589 MB / 0.6094 GB, free: 1.777 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008333/0.4564, allocations: 3.584 MB / 0.6129 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005116/0.457, allocations: 443.3 kB / 0.6133 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002313/0.4593, allocations: 0.5465 MB / 0.6138 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04106/0.5004, allocations: 19.79 MB / 0.6332 GB, free: 8.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003038/0.5007, allocations: 67.41 kB / 0.6332 GB, free: 8.164 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001777/0.5025, allocations: 267.8 kB / 0.6335 GB, free: 7.902 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00553/0.5081, allocations: 3.157 MB / 0.6366 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03618/0.5443, allocations: 15.92 MB / 0.6521 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08097/0.6253, allocations: 63.8 MB / 0.7144 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4253/1.051, allocations: 6.388 MB / 0.7207 GB, free: 162.5 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003109/1.054, allocations: 2.112 MB / 0.7227 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/1.067, allocations: 9.223 MB / 0.7317 GB, free: 157.4 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01258/1.08, allocations: 4.199 MB / 0.7358 GB, free: 156.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 7.014e-06/1.08, allocations: 0 / 0.7358 GB, free: 156.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05059/1.131, allocations: 21.59 MB / 0.7569 GB, free: 140.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/1.131, allocations: 162.5 kB / 0.7571 GB, free: 139.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006284/1.137, allocations: 5.772 MB / 0.7627 GB, free: 134.2 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000469/1.138, allocations: 77.64 kB / 0.7628 GB, free: 134.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002745/1.14, allocations: 4.923 MB / 0.7676 GB, free: 129.2 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009882/1.141, allocations: 1.123 MB / 0.7687 GB, free: 128 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/1.143, allocations: 1.821 MB / 0.7705 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.337e-05/1.143, allocations: 309.1 kB / 0.7708 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003359/1.147, allocations: 2.673 MB / 0.7734 GB, free: 123.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005056/1.152, allocations: 8.234 MB / 0.7814 GB, free: 112.3 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009933/1.162, allocations: 11.86 MB / 0.793 GB, free: 97.65 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000145/1.162, allocations: 56 kB / 0.793 GB, free: 97.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01635/1.178, allocations: 10.65 MB / 0.8034 GB, free: 86.93 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.178, allocations: 117.6 kB / 0.8036 GB, free: 86.81 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.178, allocations: 196 kB / 0.8037 GB, free: 86.62 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/1.179, allocations: 264.7 kB / 0.804 GB, free: 86.36 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006276/1.185, allocations: 2.226 MB / 0.8062 GB, free: 84.13 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001936/1.185, allocations: 390.5 kB / 0.8065 GB, free: 83.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0056/1.191, allocations: 467.4 kB / 0.807 GB, free: 83.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008476/1.192, allocations: 0.543 MB / 0.8075 GB, free: 82.75 MB / 0.5607 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.003706/1.195, allocations: 3.151 MB / 0.8106 GB, free: 79.59 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000598/1.196, allocations: 0.5168 MB / 0.8111 GB, free: 79.06 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004225/1.2, allocations: 3.06 MB / 0.8141 GB, free: 75.98 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.581e-05/1.2, allocations: 35.94 kB / 0.8141 GB, free: 75.95 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/1.2, allocations: 0 / 0.8141 GB, free: 75.95 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-05/1.2, allocations: 15.94 kB / 0.8141 GB, free: 75.93 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/1.216, allocations: 12.25 MB / 0.8261 GB, free: 63.21 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-05/1.216, allocations: 33.09 kB / 0.8261 GB, free: 63.18 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/1.218, allocations: 0.5928 MB / 0.8267 GB, free: 62.59 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.203e-05/1.218, allocations: 47.98 kB / 0.8268 GB, free: 62.54 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/1.218, allocations: 84 kB / 0.8268 GB, free: 62.46 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.217e-05/1.219, allocations: 67.78 kB / 0.8269 GB, free: 62.39 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.876e-05/1.219, allocations: 51.75 kB / 0.827 GB, free: 62.34 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005699/1.224, allocations: 5.517 MB / 0.8323 GB, free: 56.28 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.226, allocations: 0.5802 MB / 0.8329 GB, free: 55.67 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005056/1.226, allocations: 87.98 kB / 0.833 GB, free: 55.59 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/1.228, allocations: 155.9 kB / 0.8331 GB, free: 55.43 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/1.228, allocations: 279.9 kB / 0.8334 GB, free: 55.16 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.228, allocations: 124 kB / 0.8335 GB, free: 55.04 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004342/1.233, allocations: 3.585 MB / 0.837 GB, free: 51.48 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.7e-07/1.233, allocations: 0 / 0.837 GB, free: 51.48 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006246/1.239, allocations: 1.423 MB / 0.8384 GB, free: 50.07 MB / 0.5607 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.0004687/1.239, allocations: 256.7 kB / 0.8387 GB, free: 49.82 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008117/1.248, allocations: 6.201 MB / 0.8447 GB, free: 43.66 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.956e-05/1.248, allocations: 8.062 kB / 0.8447 GB, free: 43.65 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002307/1.25, allocations: 1.567 MB / 0.8463 GB, free: 42.09 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/1.254, allocations: 0.7719 MB / 0.847 GB, free: 41.34 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/1.276, allocations: 14.98 MB / 0.8616 GB, free: 25.91 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005009/1.281, allocations: 4.753 MB / 0.8663 GB, free: 21.12 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/1.283, allocations: 443.4 kB / 0.8667 GB, free: 20.69 MB / 0.5607 GB Notification: Performance of SimCode: time 1.232e-06/1.283, allocations: 7.938 kB / 0.8667 GB, free: 20.68 MB / 0.5607 GB Notification: Performance of Templates: time 0.6182/1.901, allocations: 85.28 MB / 0.95 GB, free: 218 MB / 0.6388 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