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.001643/0.001643, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002078/0.002078, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2962/0.2962, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 75.88 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.4194, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01682/0.4363, allocations: 16.16 MB / 0.5468 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.4509, allocations: 5.018 MB / 0.5517 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004527/0.4555, allocations: 99.75 kB / 0.5518 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01006/0.4656, allocations: 5.167 MB / 0.5568 GB, free: 7.199 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00816/0.4738, allocations: 2.551 MB / 0.5593 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003156/0.477, allocations: 1.193 MB / 0.5605 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009854/0.4869, allocations: 6.704 MB / 0.567 GB, free: 12.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008714/0.4956, allocations: 6.353 MB / 0.5732 GB, free: 6.293 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006959/0.5026, allocations: 2.605 MB / 0.5758 GB, free: 3.68 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007397/0.51, allocations: 3.688 MB / 0.5794 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002959/0.513, allocations: 0.5781 MB / 0.5799 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004639/0.5177, allocations: 1.272 MB / 0.5812 GB, free: 14.13 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005066/0.5228, allocations: 3.23 MB / 0.5843 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008052/0.5309, allocations: 3.67 MB / 0.5879 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01714/0.548, allocations: 11.12 MB / 0.5988 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5481, allocations: 0 / 0.5988 GB, free: 12.04 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5481, allocations: 0 / 0.5988 GB, free: 12.04 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005861/0.5487, allocations: 0 / 0.5988 GB, free: 12.04 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.02338/0.5721, allocations: 7.671 MB / 0.6063 GB, free: 4.281 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.5721, allocations: 8.031 kB / 0.6063 GB, free: 4.273 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0115/0.5836, allocations: 2.585 MB / 0.6088 GB, free: 1.676 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009838/0.5935, allocations: 3.596 MB / 0.6123 GB, free: 14.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004595/0.594, allocations: 431.3 kB / 0.6127 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002044/0.5961, allocations: 0.5542 MB / 0.6133 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/0.6382, allocations: 19.78 MB / 0.6326 GB, free: 8.125 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002034/0.6384, allocations: 71.34 kB / 0.6327 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007879/0.6392, allocations: 271.8 kB / 0.6329 GB, free: 7.789 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004809/0.644, allocations: 3.149 MB / 0.636 GB, free: 4.637 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03883/0.6829, allocations: 15.92 MB / 0.6515 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08942/0.7724, allocations: 63.8 MB / 0.7138 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3826/1.155, allocations: 6.392 MB / 0.7201 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00465/1.16, allocations: 2.118 MB / 0.7221 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/1.175, allocations: 9.211 MB / 0.7311 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01318/1.188, allocations: 4.198 MB / 0.7352 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=260): time 5.32e-06/1.188, allocations: 0 / 0.7352 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=294): time 0.05237/1.24, allocations: 21.6 MB / 0.7563 GB, free: 141.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/1.241, allocations: 166.4 kB / 0.7565 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008447/1.249, allocations: 5.764 MB / 0.7621 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005642/1.25, allocations: 69.7 kB / 0.7622 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004463/1.254, allocations: 4.93 MB / 0.767 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001744/1.256, allocations: 1.128 MB / 0.7681 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00251/1.258, allocations: 1.825 MB / 0.7699 GB, free: 127.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.126e-05/1.259, allocations: 301.1 kB / 0.7702 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003593/1.262, allocations: 2.677 MB / 0.7728 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006232/1.268, allocations: 8.233 MB / 0.7808 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.279, allocations: 11.86 MB / 0.7924 GB, free: 99.12 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/1.279, allocations: 60 kB / 0.7925 GB, free: 99.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01642/1.296, allocations: 10.66 MB / 0.8029 GB, free: 88.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/1.296, allocations: 113.7 kB / 0.803 GB, free: 88.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001681/1.296, allocations: 196 kB / 0.8032 GB, free: 88.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/1.296, allocations: 271.9 kB / 0.8034 GB, free: 87.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/1.303, allocations: 2.227 MB / 0.8056 GB, free: 85.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002125/1.303, allocations: 382.5 kB / 0.806 GB, free: 85.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006092/1.309, allocations: 471.4 kB / 0.8064 GB, free: 84.76 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009273/1.31, allocations: 0.5429 MB / 0.8069 GB, free: 84.21 MB / 0.5606 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.004807/1.315, allocations: 3.148 MB / 0.81 GB, free: 81.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/1.316, allocations: 0.5167 MB / 0.8105 GB, free: 80.53 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005123/1.321, allocations: 3.058 MB / 0.8135 GB, free: 77.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.832e-05/1.321, allocations: 39.77 kB / 0.8135 GB, free: 77.42 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.321, allocations: 0 / 0.8135 GB, free: 77.42 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.546e-05/1.321, allocations: 15.95 kB / 0.8136 GB, free: 77.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/1.339, allocations: 12.24 MB / 0.8255 GB, free: 64.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.541e-05/1.339, allocations: 32 kB / 0.8256 GB, free: 64.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.341, allocations: 0.5933 MB / 0.8261 GB, free: 64.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-05/1.341, allocations: 44 kB / 0.8262 GB, free: 64.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001414/1.341, allocations: 91.98 kB / 0.8263 GB, free: 63.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-05/1.341, allocations: 71.66 kB / 0.8263 GB, free: 63.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.123e-05/1.341, allocations: 52.62 kB / 0.8264 GB, free: 63.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006633/1.348, allocations: 5.513 MB / 0.8318 GB, free: 57.74 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/1.35, allocations: 0.5763 MB / 0.8323 GB, free: 57.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007151/1.35, allocations: 91.97 kB / 0.8324 GB, free: 57.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/1.352, allocations: 159.9 kB / 0.8326 GB, free: 56.89 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/1.353, allocations: 275.9 kB / 0.8328 GB, free: 56.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/1.353, allocations: 124 kB / 0.8329 GB, free: 56.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005098/1.358, allocations: 3.585 MB / 0.8364 GB, free: 52.95 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.11e-07/1.358, allocations: 0 / 0.8364 GB, free: 52.95 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007059/1.365, allocations: 1.416 MB / 0.8378 GB, free: 51.54 MB / 0.5606 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.0005163/1.366, allocations: 268.5 kB / 0.8381 GB, free: 51.28 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00925/1.375, allocations: 6.194 MB / 0.8441 GB, free: 45.12 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.493e-05/1.375, allocations: 4 kB / 0.8441 GB, free: 45.12 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002896/1.378, allocations: 1.637 MB / 0.8457 GB, free: 43.49 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004168/1.382, allocations: 0.7688 MB / 0.8465 GB, free: 42.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02159/1.404, allocations: 14.29 MB / 0.8604 GB, free: 28 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006328/1.41, allocations: 4.76 MB / 0.8651 GB, free: 23.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005562/1.416, allocations: 2.579 MB / 0.8676 GB, free: 20.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009916/1.417, allocations: 383.4 kB / 0.868 GB, free: 20.25 MB / 0.5606 GB Notification: Performance of SimCode: time 1.012e-06/1.417, allocations: 0 / 0.868 GB, free: 20.25 MB / 0.5606 GB Notification: Performance of Templates: time 0.08173/1.498, allocations: 42.04 MB / 0.909 GB, free: 10.5 MB / 0.5919 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