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.001338/0.001338, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, 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.2244/0.2244, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4395, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01811/0.4577, allocations: 16.16 MB / 0.5468 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.4739, allocations: 5.015 MB / 0.5517 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00571/0.4797, allocations: 99.75 kB / 0.5518 GB, free: 12.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01112/0.4908, allocations: 5.155 MB / 0.5568 GB, free: 7.227 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009067/0.5, allocations: 2.481 MB / 0.5592 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003265/0.5033, allocations: 1.186 MB / 0.5604 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.5136, allocations: 6.717 MB / 0.5669 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009323/0.5229, allocations: 6.355 MB / 0.5732 GB, free: 6.387 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005799/0.5288, allocations: 2.601 MB / 0.5757 GB, free: 3.777 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007864/0.5367, allocations: 3.692 MB / 0.5793 GB, free: 76 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002983/0.5397, allocations: 0.5743 MB / 0.5799 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00529/0.545, allocations: 1.264 MB / 0.5811 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005843/0.5509, allocations: 3.215 MB / 0.5842 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008058/0.559, allocations: 3.674 MB / 0.5878 GB, free: 7.316 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01873/0.5777, allocations: 11.17 MB / 0.5987 GB, free: 12.1 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.5778, allocations: 0 / 0.5987 GB, free: 12.1 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5778, allocations: 0 / 0.5987 GB, free: 12.1 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000513/0.5783, allocations: 0 / 0.5987 GB, free: 12.1 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.01877/0.5971, allocations: 7.862 MB / 0.6064 GB, free: 4.141 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.5972, allocations: 11.97 kB / 0.6064 GB, free: 4.129 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009928/0.6071, allocations: 2.633 MB / 0.609 GB, free: 1.488 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007694/0.6148, allocations: 3.605 MB / 0.6125 GB, free: 13.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/0.6152, allocations: 439.3 kB / 0.6129 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001615/0.6168, allocations: 0.5504 MB / 0.6135 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0423/0.6592, allocations: 19.78 MB / 0.6328 GB, free: 7.922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002726/0.6595, allocations: 71.45 kB / 0.6329 GB, free: 7.852 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001008/0.6605, allocations: 263.8 kB / 0.6331 GB, free: 7.594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005235/0.6658, allocations: 3.153 MB / 0.6362 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0375/0.7033, allocations: 15.92 MB / 0.6517 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09057/0.7939, allocations: 63.93 MB / 0.7142 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6155/1.409, allocations: 6.397 MB / 0.7204 GB, free: 162.3 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004041/1.413, allocations: 2.118 MB / 0.7225 GB, free: 161.7 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01615/1.43, allocations: 9.238 MB / 0.7315 GB, free: 157.4 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01304/1.443, allocations: 4.203 MB / 0.7356 GB, free: 156.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 4.97e-06/1.443, allocations: 0 / 0.7356 GB, free: 156.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05523/1.498, allocations: 21.96 MB / 0.757 GB, free: 139.6 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/1.498, allocations: 158.5 kB / 0.7572 GB, free: 139.4 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006586/1.505, allocations: 5.784 MB / 0.7628 GB, free: 133.7 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0004818/1.505, allocations: 69.7 kB / 0.7629 GB, free: 133.7 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003126/1.508, allocations: 5.127 MB / 0.7679 GB, free: 128.8 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001036/1.509, allocations: 1.175 MB / 0.7691 GB, free: 127.7 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001847/1.511, allocations: 1.838 MB / 0.7709 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.419e-05/1.511, allocations: 301.1 kB / 0.7711 GB, free: 125.5 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003513/1.515, allocations: 2.677 MB / 0.7738 GB, free: 122.9 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005848/1.521, allocations: 8.242 MB / 0.7818 GB, free: 111.9 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.531, allocations: 11.86 MB / 0.7934 GB, free: 97.26 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001472/1.532, allocations: 56 kB / 0.7934 GB, free: 97.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.02018/1.552, allocations: 10.67 MB / 0.8039 GB, free: 86.52 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003102/1.552, allocations: 113.7 kB / 0.804 GB, free: 86.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004429/1.553, allocations: 200.8 kB / 0.8042 GB, free: 86.21 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004093/1.553, allocations: 267.9 kB / 0.8044 GB, free: 85.95 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007274/1.56, allocations: 2.226 MB / 0.8066 GB, free: 83.71 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003574/1.561, allocations: 386.5 kB / 0.807 GB, free: 83.34 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007214/1.568, allocations: 475.5 kB / 0.8074 GB, free: 82.87 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001582/1.57, allocations: 0.543 MB / 0.8079 GB, free: 82.33 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.006698/1.576, allocations: 3.155 MB / 0.811 GB, free: 79.16 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001678/1.578, allocations: 0.5355 MB / 0.8116 GB, free: 78.62 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007042/1.585, allocations: 3.06 MB / 0.8145 GB, free: 75.55 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.536e-05/1.585, allocations: 35.94 kB / 0.8146 GB, free: 75.51 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.641e-05/1.585, allocations: 0 / 0.8146 GB, free: 75.51 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.364e-05/1.585, allocations: 19.94 kB / 0.8146 GB, free: 75.49 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.606, allocations: 12.26 MB / 0.8266 GB, free: 62.77 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.786e-05/1.606, allocations: 32.03 kB / 0.8266 GB, free: 62.73 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.608, allocations: 0.5849 MB / 0.8272 GB, free: 62.15 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.219e-05/1.608, allocations: 44 kB / 0.8272 GB, free: 62.11 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/1.609, allocations: 91.98 kB / 0.8273 GB, free: 62.02 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.421e-05/1.609, allocations: 71.72 kB / 0.8274 GB, free: 61.95 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-05/1.609, allocations: 48.69 kB / 0.8274 GB, free: 61.9 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006378/1.615, allocations: 5.539 MB / 0.8328 GB, free: 55.81 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/1.617, allocations: 0.6066 MB / 0.8334 GB, free: 55.18 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005516/1.617, allocations: 95.97 kB / 0.8335 GB, free: 55.09 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/1.619, allocations: 159.4 kB / 0.8337 GB, free: 54.93 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003451/1.62, allocations: 271.9 kB / 0.8339 GB, free: 54.67 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001537/1.62, allocations: 128 kB / 0.834 GB, free: 54.54 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004779/1.625, allocations: 3.585 MB / 0.8375 GB, free: 50.99 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.11e-07/1.625, allocations: 4 kB / 0.8375 GB, free: 50.98 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008316/1.633, allocations: 1.414 MB / 0.8389 GB, free: 49.57 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.0005359/1.634, allocations: 273.7 kB / 0.8392 GB, free: 49.3 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008761/1.642, allocations: 6.198 MB / 0.8452 GB, free: 43.13 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/1.642, allocations: 4 kB / 0.8452 GB, free: 43.12 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002575/1.645, allocations: 1.633 MB / 0.8468 GB, free: 41.5 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005027/1.65, allocations: 0.7632 MB / 0.8476 GB, free: 40.75 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02188/1.672, allocations: 14.52 MB / 0.8618 GB, free: 25.76 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/1.677, allocations: 4.76 MB / 0.8664 GB, free: 20.97 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005386/1.682, allocations: 2.579 MB / 0.8689 GB, free: 18.38 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/1.683, allocations: 379.4 kB / 0.8693 GB, free: 18.01 MB / 0.5607 GB Notification: Performance of SimCode: time 1.593e-06/1.683, allocations: 0 / 0.8693 GB, free: 18.01 MB / 0.5607 GB Notification: Performance of Templates: time 0.08644/1.77, allocations: 42.05 MB / 0.9104 GB, free: 8.258 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