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.001586/0.001586, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002146/0.002146, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2422/0.2422, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 79.88 kB / 481.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4275, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.0195/0.4471, allocations: 16.15 MB / 0.5468 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.4614, allocations: 5.025 MB / 0.5517 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004787/0.4662, allocations: 99.75 kB / 0.5518 GB, free: 12.39 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0111/0.4774, allocations: 5.163 MB / 0.5568 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009516/0.487, allocations: 2.47 MB / 0.5592 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.4907, allocations: 1.189 MB / 0.5604 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.5035, allocations: 6.707 MB / 0.5669 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01246/0.516, allocations: 6.357 MB / 0.5731 GB, free: 6.387 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006172/0.5222, allocations: 2.601 MB / 0.5757 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007568/0.5298, allocations: 3.692 MB / 0.5793 GB, free: 76 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002894/0.5328, allocations: 0.5743 MB / 0.5799 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004827/0.5376, allocations: 1.272 MB / 0.5811 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005538/0.5432, allocations: 3.23 MB / 0.5843 GB, free: 10.99 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009374/0.5526, allocations: 3.67 MB / 0.5878 GB, free: 7.297 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02359/0.5763, allocations: 11.12 MB / 0.5987 GB, free: 12.13 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/0.5763, allocations: 0 / 0.5987 GB, free: 12.13 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.5763, allocations: 0 / 0.5987 GB, free: 12.13 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.00058/0.5769, allocations: 0 / 0.5987 GB, free: 12.13 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.03818/0.6151, allocations: 7.664 MB / 0.6062 GB, free: 4.383 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.338e-05/0.6153, allocations: 8.031 kB / 0.6062 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02216/0.6375, allocations: 2.585 MB / 0.6087 GB, free: 1.777 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.6521, allocations: 3.592 MB / 0.6122 GB, free: 14.12 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008615/0.653, allocations: 439.3 kB / 0.6126 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004016/0.657, allocations: 0.5543 MB / 0.6132 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0694/0.7265, allocations: 19.78 MB / 0.6325 GB, free: 8.223 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003803/0.7269, allocations: 67.41 kB / 0.6326 GB, free: 8.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002315/0.7292, allocations: 275.7 kB / 0.6328 GB, free: 7.887 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005412/0.7347, allocations: 3.153 MB / 0.6359 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04108/0.7758, allocations: 15.92 MB / 0.6515 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08863/0.8644, allocations: 63.79 MB / 0.7138 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5826/1.447, allocations: 6.396 MB / 0.72 GB, free: 162.5 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003208/1.45, allocations: 2.118 MB / 0.7221 GB, free: 161.9 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/1.463, allocations: 9.213 MB / 0.7311 GB, free: 157.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01298/1.476, allocations: 4.202 MB / 0.7352 GB, free: 156.8 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 4.518e-06/1.476, allocations: 0 / 0.7352 GB, free: 156.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05195/1.528, allocations: 21.59 MB / 0.7563 GB, free: 140.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/1.528, allocations: 165.9 kB / 0.7564 GB, free: 139.9 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006112/1.534, allocations: 5.772 MB / 0.762 GB, free: 134.1 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003111/1.535, allocations: 73.7 kB / 0.7621 GB, free: 134.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.537, allocations: 4.923 MB / 0.7669 GB, free: 129.1 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009085/1.538, allocations: 1.131 MB / 0.768 GB, free: 128 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001679/1.54, allocations: 1.817 MB / 0.7698 GB, free: 126.2 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.311e-05/1.54, allocations: 305.1 kB / 0.7701 GB, free: 125.9 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/1.544, allocations: 2.677 MB / 0.7727 GB, free: 123.2 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005752/1.549, allocations: 8.234 MB / 0.7808 GB, free: 112.3 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/1.559, allocations: 11.86 MB / 0.7923 GB, free: 97.65 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.559, allocations: 57.25 kB / 0.7924 GB, free: 97.59 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01571/1.575, allocations: 10.65 MB / 0.8028 GB, free: 86.93 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/1.575, allocations: 113.7 kB / 0.8029 GB, free: 86.81 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000248/1.576, allocations: 196 kB / 0.8031 GB, free: 86.62 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/1.576, allocations: 268 kB / 0.8033 GB, free: 86.36 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006126/1.582, allocations: 2.226 MB / 0.8055 GB, free: 84.13 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002502/1.582, allocations: 386.5 kB / 0.8059 GB, free: 83.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005553/1.588, allocations: 471.4 kB / 0.8063 GB, free: 83.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008444/1.589, allocations: 0.543 MB / 0.8069 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.004658/1.593, allocations: 3.154 MB / 0.8099 GB, free: 79.58 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008155/1.594, allocations: 0.5168 MB / 0.8105 GB, free: 79.06 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005251/1.599, allocations: 3.05 MB / 0.8134 GB, free: 75.99 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.272e-05/1.599, allocations: 39.81 kB / 0.8135 GB, free: 75.95 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/1.599, allocations: 0 / 0.8135 GB, free: 75.95 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/1.6, allocations: 19.94 kB / 0.8135 GB, free: 75.93 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01955/1.619, allocations: 12.25 MB / 0.8255 GB, free: 63.21 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/1.619, allocations: 32 kB / 0.8255 GB, free: 63.18 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/1.621, allocations: 0.5927 MB / 0.8261 GB, free: 62.59 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.924e-05/1.621, allocations: 48.19 kB / 0.8261 GB, free: 62.54 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/1.621, allocations: 84 kB / 0.8262 GB, free: 62.46 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.192e-05/1.621, allocations: 67.72 kB / 0.8263 GB, free: 62.39 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.866e-05/1.621, allocations: 47.81 kB / 0.8263 GB, free: 62.34 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005698/1.627, allocations: 5.51 MB / 0.8317 GB, free: 56.28 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/1.628, allocations: 0.5802 MB / 0.8322 GB, free: 55.68 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/1.629, allocations: 87.98 kB / 0.8323 GB, free: 55.59 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/1.63, allocations: 165.8 kB / 0.8325 GB, free: 55.43 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/1.631, allocations: 275.8 kB / 0.8327 GB, free: 55.16 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.631, allocations: 124 kB / 0.8329 GB, free: 55.04 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004963/1.636, allocations: 3.585 MB / 0.8364 GB, free: 51.49 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.61e-07/1.636, allocations: 0 / 0.8364 GB, free: 51.49 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006154/1.642, allocations: 1.419 MB / 0.8378 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.0004581/1.643, allocations: 268.4 kB / 0.838 GB, free: 49.81 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008497/1.651, allocations: 6.201 MB / 0.8441 GB, free: 43.65 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/1.651, allocations: 4 kB / 0.8441 GB, free: 43.65 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002559/1.654, allocations: 1.626 MB / 0.8457 GB, free: 42.03 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004471/1.658, allocations: 0.764 MB / 0.8464 GB, free: 41.28 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/1.679, allocations: 14.29 MB / 0.8604 GB, free: 26.54 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0062/1.686, allocations: 4.76 MB / 0.865 GB, free: 21.75 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005616/1.691, allocations: 2.579 MB / 0.8675 GB, free: 19.16 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.692, allocations: 383.4 kB / 0.8679 GB, free: 18.79 MB / 0.5607 GB Notification: Performance of SimCode: time 5.81e-07/1.692, allocations: 0 / 0.8679 GB, free: 18.79 MB / 0.5607 GB Notification: Performance of Templates: time 0.08164/1.774, allocations: 42.06 MB / 0.909 GB, free: 9.031 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