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.001223/0.001223, allocations: 112 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 215.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, 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.1937/0.1937, allocations: 46.11 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 75.88 kB / 482 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2818, allocations: 62.42 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01493/0.2968, allocations: 16.15 MB / 0.5474 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009889/0.3067, allocations: 5.021 MB / 0.5523 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002579/0.3093, allocations: 99.75 kB / 0.5524 GB, free: 12.42 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008393/0.3177, allocations: 5.163 MB / 0.5575 GB, free: 7.238 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006089/0.3239, allocations: 2.558 MB / 0.56 GB, free: 4.672 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.3265, allocations: 1.189 MB / 0.5611 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00826/0.3348, allocations: 6.71 MB / 0.5677 GB, free: 12.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007778/0.3426, allocations: 6.353 MB / 0.5739 GB, free: 6.324 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003952/0.3466, allocations: 2.601 MB / 0.5764 GB, free: 3.715 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005046/0.3516, allocations: 3.692 MB / 0.58 GB, free: 12 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001953/0.3536, allocations: 0.5782 MB / 0.5806 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003243/0.3569, allocations: 1.272 MB / 0.5818 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003663/0.3606, allocations: 3.226 MB / 0.585 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005325/0.3659, allocations: 3.67 MB / 0.5886 GB, free: 7.234 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.3778, allocations: 11.12 MB / 0.5994 GB, free: 12.07 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3779, allocations: 0 / 0.5994 GB, free: 12.07 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3779, allocations: 0 / 0.5994 GB, free: 12.07 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003542/0.3782, allocations: 0 / 0.5994 GB, free: 12.07 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.01408/0.3923, allocations: 7.668 MB / 0.6069 GB, free: 4.32 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3924, allocations: 12.03 kB / 0.6069 GB, free: 4.309 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008729/0.4011, allocations: 2.585 MB / 0.6095 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006517/0.4076, allocations: 3.595 MB / 0.613 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.408, allocations: 431.3 kB / 0.6134 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001385/0.4094, allocations: 0.5543 MB / 0.6139 GB, free: 13.08 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03371/0.4431, allocations: 19.78 MB / 0.6332 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001807/0.4433, allocations: 63.41 kB / 0.6333 GB, free: 8.098 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007114/0.444, allocations: 275.7 kB / 0.6336 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003987/0.448, allocations: 3.153 MB / 0.6366 GB, free: 4.672 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03205/0.4801, allocations: 15.92 MB / 0.6522 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06528/0.5454, allocations: 63.8 MB / 0.7145 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4344/0.9799, allocations: 6.392 MB / 0.7207 GB, free: 162.6 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002981/0.9829, allocations: 2.113 MB / 0.7228 GB, free: 162 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01228/0.9952, allocations: 9.218 MB / 0.7318 GB, free: 157.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01121/1.006, allocations: 4.2 MB / 0.7359 GB, free: 156.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 5.069e-06/1.006, allocations: 3.875 kB / 0.7359 GB, free: 156.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.0466/1.053, allocations: 21.59 MB / 0.757 GB, free: 140.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/1.053, allocations: 162.5 kB / 0.7572 GB, free: 139.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005636/1.059, allocations: 5.768 MB / 0.7628 GB, free: 134.1 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003847/1.059, allocations: 69.7 kB / 0.7629 GB, free: 134 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002379/1.062, allocations: 4.934 MB / 0.7677 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.000879/1.062, allocations: 1.127 MB / 0.7688 GB, free: 128 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001654/1.064, allocations: 1.815 MB / 0.7705 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.48e-05/1.064, allocations: 301.1 kB / 0.7708 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00324/1.067, allocations: 2.677 MB / 0.7734 GB, free: 123.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004598/1.072, allocations: 8.245 MB / 0.7815 GB, free: 112.2 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008719/1.081, allocations: 11.85 MB / 0.7931 GB, free: 97.61 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/1.081, allocations: 60 kB / 0.7931 GB, free: 97.55 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01382/1.095, allocations: 10.65 MB / 0.8035 GB, free: 86.89 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/1.095, allocations: 116.4 kB / 0.8036 GB, free: 86.77 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.095, allocations: 199.9 kB / 0.8038 GB, free: 86.57 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/1.095, allocations: 267.9 kB / 0.8041 GB, free: 86.31 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005561/1.101, allocations: 2.227 MB / 0.8063 GB, free: 84.08 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000174/1.101, allocations: 386.5 kB / 0.8066 GB, free: 83.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004915/1.106, allocations: 475.3 kB / 0.8071 GB, free: 83.24 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007544/1.107, allocations: 0.5438 MB / 0.8076 GB, free: 82.7 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.003677/1.11, allocations: 3.152 MB / 0.8107 GB, free: 79.53 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006431/1.111, allocations: 0.509 MB / 0.8112 GB, free: 79.02 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004319/1.115, allocations: 3.05 MB / 0.8142 GB, free: 75.95 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/1.115, allocations: 35.94 kB / 0.8142 GB, free: 75.91 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/1.115, allocations: 0 / 0.8142 GB, free: 75.91 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/1.115, allocations: 27.88 kB / 0.8142 GB, free: 75.88 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/1.131, allocations: 12.25 MB / 0.8262 GB, free: 63.16 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/1.131, allocations: 30.81 kB / 0.8262 GB, free: 63.14 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/1.133, allocations: 0.5897 MB / 0.8268 GB, free: 62.55 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.66e-05/1.133, allocations: 44 kB / 0.8268 GB, free: 62.5 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/1.133, allocations: 91.98 kB / 0.8269 GB, free: 62.41 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-05/1.133, allocations: 67.72 kB / 0.827 GB, free: 62.35 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.658e-05/1.133, allocations: 47.81 kB / 0.827 GB, free: 62.3 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/1.138, allocations: 5.508 MB / 0.8324 GB, free: 56.24 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007975/1.139, allocations: 0.5763 MB / 0.833 GB, free: 55.64 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004034/1.139, allocations: 103.9 kB / 0.8331 GB, free: 55.54 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/1.141, allocations: 155.5 kB / 0.8332 GB, free: 55.39 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/1.141, allocations: 279.9 kB / 0.8335 GB, free: 55.11 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/1.141, allocations: 124 kB / 0.8336 GB, free: 54.99 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003744/1.145, allocations: 3.582 MB / 0.8371 GB, free: 51.44 MB / 0.5607 GB Notification: Performance of sort global known variables: time 7.01e-07/1.145, allocations: 0 / 0.8371 GB, free: 51.44 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.005134/1.15, allocations: 1.423 MB / 0.8385 GB, free: 50.02 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.0003447/1.15, allocations: 264.8 kB / 0.8387 GB, free: 49.77 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.00688/1.157, allocations: 6.192 MB / 0.8448 GB, free: 43.61 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/1.157, allocations: 8 kB / 0.8448 GB, free: 43.61 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002016/1.159, allocations: 1.559 MB / 0.8463 GB, free: 42.05 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/1.162, allocations: 0.7725 MB / 0.8471 GB, free: 41.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/1.179, allocations: 14.98 MB / 0.8617 GB, free: 25.86 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003747/1.183, allocations: 4.753 MB / 0.8664 GB, free: 21.08 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.184, allocations: 451.4 kB / 0.8668 GB, free: 20.64 MB / 0.5607 GB Notification: Performance of SimCode: time 6.12e-07/1.184, allocations: 0 / 0.8668 GB, free: 20.64 MB / 0.5607 GB Notification: Performance of Templates: time 0.1063/1.29, allocations: 84.33 MB / 0.9491 GB, free: 416 kB / 0.6232 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