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.001362/0.001362, allocations: 112.7 kB / 18.45 MB, free: 4.598 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.001483/0.001483, allocations: 181.2 kB / 19.38 MB, free: 3.684 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.301/1.301, allocations: 222.9 MB / 243.1 MB, free: 15.14 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.1979/0.1979, allocations: 44.18 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 59.91 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3194, allocations: 60.83 MB / 0.5196 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01604/0.3355, allocations: 16.46 MB / 0.5357 GB, free: 7.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.347, allocations: 5.059 MB / 0.5406 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003191/0.3503, allocations: 103.2 kB / 0.5407 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009789/0.3601, allocations: 5.202 MB / 0.5458 GB, free: 308 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007637/0.3678, allocations: 2.578 MB / 0.5483 GB, free: 14.42 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003041/0.3709, allocations: 1.187 MB / 0.5495 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00943/0.3803, allocations: 6.724 MB / 0.556 GB, free: 6.809 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007942/0.3883, allocations: 6.418 MB / 0.5623 GB, free: 316 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004569/0.3929, allocations: 2.66 MB / 0.5649 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005652/0.3986, allocations: 3.754 MB / 0.5685 GB, free: 9.875 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001934/0.4005, allocations: 0.5898 MB / 0.5691 GB, free: 9.285 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.4043, allocations: 1.299 MB / 0.5704 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004088/0.4084, allocations: 3.343 MB / 0.5737 GB, free: 4.633 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006392/0.4148, allocations: 3.803 MB / 0.5774 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01456/0.4294, allocations: 11.53 MB / 0.5886 GB, free: 5.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4295, allocations: 0 / 0.5886 GB, free: 5.234 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4295, allocations: 0 / 0.5886 GB, free: 5.234 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004452/0.4299, allocations: 0 / 0.5886 GB, free: 5.234 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.01866/0.4486, allocations: 7.872 MB / 0.5963 GB, free: 13.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.4487, allocations: 12.03 kB / 0.5963 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.4595, allocations: 2.666 MB / 0.5989 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007748/0.4673, allocations: 3.748 MB / 0.6026 GB, free: 6.766 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004619/0.4678, allocations: 443.4 kB / 0.603 GB, free: 6.332 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002214/0.47, allocations: 0.5698 MB / 0.6036 GB, free: 5.762 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04338/0.5134, allocations: 20.31 MB / 0.6234 GB, free: 308 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003084/0.5138, allocations: 75.33 kB / 0.6235 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002176/0.516, allocations: 271.9 kB / 0.6237 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005406/0.5214, allocations: 3.337 MB / 0.627 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03913/0.5605, allocations: 16.34 MB / 0.643 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08425/0.6448, allocations: 65.07 MB / 0.7065 GB, free: 9.461 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01766/0.6625, allocations: 6.373 MB / 0.7127 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003737/0.6663, allocations: 2.109 MB / 0.7148 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4596/1.126, allocations: 9.161 MB / 0.7237 GB, free: 165.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01368/1.14, allocations: 4.157 MB / 0.7278 GB, free: 165 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 8.977e-06/1.14, allocations: 0 / 0.7278 GB, free: 165 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05339/1.193, allocations: 21.53 MB / 0.7488 GB, free: 155.9 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.896e-05/1.193, allocations: 154.5 kB / 0.749 GB, free: 155.7 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006852/1.2, allocations: 5.87 MB / 0.7547 GB, free: 149.8 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000457/1.201, allocations: 69.7 kB / 0.7548 GB, free: 149.8 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00283/1.203, allocations: 5.064 MB / 0.7597 GB, free: 144.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001021/1.205, allocations: 1.128 MB / 0.7608 GB, free: 143.6 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001863/1.206, allocations: 1.837 MB / 0.7626 GB, free: 141.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.755e-05/1.206, allocations: 305.1 kB / 0.7629 GB, free: 141.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003466/1.21, allocations: 2.661 MB / 0.7655 GB, free: 138.8 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005477/1.215, allocations: 8.279 MB / 0.7736 GB, free: 127.8 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/1.226, allocations: 11.9 MB / 0.7852 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/1.226, allocations: 56 kB / 0.7853 GB, free: 113 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01594/1.242, allocations: 10.69 MB / 0.7957 GB, free: 102.3 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.242, allocations: 121.9 kB / 0.7958 GB, free: 102.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/1.242, allocations: 200 kB / 0.796 GB, free: 102 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/1.242, allocations: 264 kB / 0.7963 GB, free: 101.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006148/1.248, allocations: 2.222 MB / 0.7984 GB, free: 99.52 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002239/1.249, allocations: 390.5 kB / 0.7988 GB, free: 99.13 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006274/1.255, allocations: 467.4 kB / 0.7992 GB, free: 98.68 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001366/1.256, allocations: 0.5469 MB / 0.7998 GB, free: 98.13 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.005258/1.262, allocations: 3.23 MB / 0.8029 GB, free: 94.89 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008914/1.262, allocations: 0.5228 MB / 0.8034 GB, free: 94.36 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004744/1.267, allocations: 3.039 MB / 0.8064 GB, free: 91.3 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-05/1.267, allocations: 37.8 kB / 0.8064 GB, free: 91.27 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/1.267, allocations: 0 / 0.8064 GB, free: 91.27 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.407e-05/1.267, allocations: 19.89 kB / 0.8065 GB, free: 91.25 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0168/1.284, allocations: 12.4 MB / 0.8186 GB, free: 78.37 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-05/1.284, allocations: 32 kB / 0.8186 GB, free: 78.34 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001946/1.286, allocations: 0.5854 MB / 0.8192 GB, free: 77.75 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.749e-05/1.286, allocations: 47 kB / 0.8192 GB, free: 77.71 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/1.286, allocations: 91.98 kB / 0.8193 GB, free: 77.62 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.834e-05/1.286, allocations: 59.8 kB / 0.8194 GB, free: 77.56 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.806e-05/1.286, allocations: 51.75 kB / 0.8194 GB, free: 77.51 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005413/1.292, allocations: 5.438 MB / 0.8247 GB, free: 71.53 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.293, allocations: 0.5956 MB / 0.8253 GB, free: 70.91 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006986/1.294, allocations: 91.97 kB / 0.8254 GB, free: 70.82 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.296, allocations: 135.8 kB / 0.8255 GB, free: 70.69 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003213/1.296, allocations: 287.9 kB / 0.8258 GB, free: 70.41 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.296, allocations: 124 kB / 0.8259 GB, free: 70.29 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004655/1.301, allocations: 3.638 MB / 0.8295 GB, free: 66.64 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.9e-07/1.301, allocations: 0 / 0.8295 GB, free: 66.64 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006477/1.307, allocations: 1.474 MB / 0.8309 GB, free: 65.18 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.000501/1.308, allocations: 267 kB / 0.8312 GB, free: 64.92 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008187/1.316, allocations: 6.181 MB / 0.8372 GB, free: 58.78 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.269e-05/1.316, allocations: 8 kB / 0.8372 GB, free: 58.77 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00228/1.318, allocations: 1.528 MB / 0.8387 GB, free: 57.25 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/1.323, allocations: 0.798 MB / 0.8395 GB, free: 56.46 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/1.343, allocations: 15.32 MB / 0.8544 GB, free: 40.69 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005076/1.349, allocations: 4.883 MB / 0.8592 GB, free: 35.78 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/1.35, allocations: 455.4 kB / 0.8596 GB, free: 35.34 MB / 0.5607 GB Notification: Performance of SimCode: time 7.21e-07/1.35, allocations: 0 / 0.8596 GB, free: 35.34 MB / 0.5607 GB Notification: Performance of Templates: time 0.3331/1.683, allocations: 86.47 MB / 0.9441 GB, free: 203.5 MB / 0.6232 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/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_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches