Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001517/0.001523, allocations: 113.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 183.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2239/0.2239, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 63.89 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.421, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01839/0.4394, allocations: 16.47 MB / 0.535 GB, free: 7.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.4552, allocations: 5.064 MB / 0.5399 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006452/0.4618, allocations: 101 kB / 0.54 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01298/0.4748, allocations: 5.209 MB / 0.5451 GB, free: 68 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.487, allocations: 2.653 MB / 0.5477 GB, free: 14.13 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004493/0.4915, allocations: 1.184 MB / 0.5489 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01253/0.5041, allocations: 6.728 MB / 0.5554 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0111/0.5153, allocations: 6.416 MB / 0.5617 GB, free: 64 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006271/0.5216, allocations: 2.656 MB / 0.5643 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0079/0.5295, allocations: 3.754 MB / 0.568 GB, free: 9.629 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003047/0.5326, allocations: 0.5859 MB / 0.5685 GB, free: 9.043 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005333/0.538, allocations: 1.307 MB / 0.5698 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006013/0.544, allocations: 3.351 MB / 0.5731 GB, free: 4.379 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0101/0.5541, allocations: 3.795 MB / 0.5768 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02089/0.5751, allocations: 11.53 MB / 0.588 GB, free: 4.996 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.435e-06/0.5751, allocations: 3.938 kB / 0.5881 GB, free: 4.992 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5751, allocations: 0 / 0.5881 GB, free: 4.992 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006012/0.5758, allocations: 4 kB / 0.5881 GB, free: 4.988 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.02516/0.6009, allocations: 7.88 MB / 0.5957 GB, free: 13.01 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.601, allocations: 11.97 kB / 0.5958 GB, free: 13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.6138, allocations: 2.666 MB / 0.5984 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.6245, allocations: 3.74 MB / 0.602 GB, free: 6.508 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005698/0.6251, allocations: 443.5 kB / 0.6024 GB, free: 6.074 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003487/0.6286, allocations: 0.5698 MB / 0.603 GB, free: 5.504 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05134/0.68, allocations: 20.3 MB / 0.6228 GB, free: 48 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003724/0.6804, allocations: 67.5 kB / 0.6229 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001864/0.6823, allocations: 275.8 kB / 0.6232 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005808/0.6881, allocations: 3.341 MB / 0.6264 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04281/0.731, allocations: 16.34 MB / 0.6424 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09613/0.8272, allocations: 65.07 MB / 0.7059 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01965/0.8469, allocations: 6.373 MB / 0.7121 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004274/0.8512, allocations: 2.12 MB / 0.7142 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5712/1.422, allocations: 9.151 MB / 0.7232 GB, free: 165.1 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01369/1.436, allocations: 4.153 MB / 0.7272 GB, free: 164.5 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 5.57e-06/1.436, allocations: 0 / 0.7272 GB, free: 164.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05292/1.489, allocations: 21.53 MB / 0.7482 GB, free: 155.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/1.489, allocations: 158.4 kB / 0.7484 GB, free: 155.3 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006468/1.496, allocations: 5.87 MB / 0.7541 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0004143/1.496, allocations: 69.7 kB / 0.7542 GB, free: 149.4 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002814/1.499, allocations: 5.062 MB / 0.7591 GB, free: 144.3 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009929/1.5, allocations: 1.126 MB / 0.7602 GB, free: 143.2 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/1.502, allocations: 1.841 MB / 0.762 GB, free: 141.3 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.263e-05/1.502, allocations: 305 kB / 0.7623 GB, free: 141 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003468/1.505, allocations: 2.657 MB / 0.7649 GB, free: 138.4 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005232/1.511, allocations: 8.28 MB / 0.773 GB, free: 127.4 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009888/1.521, allocations: 11.9 MB / 0.7846 GB, free: 112.7 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001179/1.521, allocations: 56 kB / 0.7847 GB, free: 112.6 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01587/1.537, allocations: 10.68 MB / 0.7951 GB, free: 101.9 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/1.537, allocations: 120.4 kB / 0.7952 GB, free: 101.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000295/1.537, allocations: 200 kB / 0.7954 GB, free: 101.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002522/1.537, allocations: 264 kB / 0.7957 GB, free: 101.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006437/1.544, allocations: 2.226 MB / 0.7978 GB, free: 99.14 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002775/1.544, allocations: 398.5 kB / 0.7982 GB, free: 98.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005923/1.55, allocations: 465.3 kB / 0.7987 GB, free: 98.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009471/1.551, allocations: 0.5505 MB / 0.7992 GB, free: 97.75 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.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 (1196): * Single equations (assignments): 1192 * 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.004641/1.556, allocations: 3.237 MB / 0.8024 GB, free: 94.5 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008878/1.557, allocations: 0.5168 MB / 0.8029 GB, free: 93.98 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005323/1.562, allocations: 3.035 MB / 0.8058 GB, free: 90.92 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.743e-05/1.562, allocations: 32 kB / 0.8059 GB, free: 90.89 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/1.562, allocations: 0 / 0.8059 GB, free: 90.89 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.751e-05/1.562, allocations: 23.88 kB / 0.8059 GB, free: 90.87 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02043/1.582, allocations: 12.4 MB / 0.818 GB, free: 77.98 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.336e-05/1.582, allocations: 32 kB / 0.818 GB, free: 77.95 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/1.585, allocations: 0.5857 MB / 0.8186 GB, free: 77.37 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.053e-05/1.585, allocations: 44 kB / 0.8186 GB, free: 77.32 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/1.585, allocations: 91.98 kB / 0.8187 GB, free: 77.23 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.151e-05/1.585, allocations: 66.53 kB / 0.8188 GB, free: 77.17 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.875e-05/1.585, allocations: 47.81 kB / 0.8188 GB, free: 77.12 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005862/1.591, allocations: 5.434 MB / 0.8241 GB, free: 71.14 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/1.592, allocations: 0.5956 MB / 0.8247 GB, free: 70.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008451/1.593, allocations: 92.98 kB / 0.8248 GB, free: 70.43 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002143/1.595, allocations: 139.2 kB / 0.8249 GB, free: 70.3 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/1.596, allocations: 291.9 kB / 0.8252 GB, free: 70.02 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/1.596, allocations: 116.5 kB / 0.8253 GB, free: 69.9 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00513/1.601, allocations: 3.642 MB / 0.8289 GB, free: 66.26 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.9e-07/1.601, allocations: 0 / 0.8289 GB, free: 66.26 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007174/1.608, allocations: 1.474 MB / 0.8303 GB, free: 64.79 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.0005667/1.609, allocations: 266.9 kB / 0.8306 GB, free: 64.53 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008983/1.618, allocations: 6.178 MB / 0.8366 GB, free: 58.39 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.927e-05/1.618, allocations: 9.25 kB / 0.8366 GB, free: 58.38 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002732/1.62, allocations: 1.648 MB / 0.8382 GB, free: 56.74 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004172/1.625, allocations: 0.7978 MB / 0.839 GB, free: 55.96 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.023/1.648, allocations: 14.59 MB / 0.8533 GB, free: 40.91 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005153/1.653, allocations: 4.89 MB / 0.858 GB, free: 36 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005384/1.658, allocations: 2.619 MB / 0.8606 GB, free: 33.37 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009454/1.659, allocations: 383.4 kB / 0.861 GB, free: 33 MB / 0.5607 GB Notification: Performance of SimCode: time 1.072e-06/1.659, allocations: 0 / 0.861 GB, free: 33 MB / 0.5607 GB Notification: Performance of Templates: time 0.07887/1.738, allocations: 43.04 MB / 0.903 GB, free: 6.281 MB / 0.5763 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches