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.00119/0.001189, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001292/0.001292, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.411/1.411, allocations: 222.9 MB / 243 MB, free: 15.16 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.2136/0.2136, allocations: 44.18 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 73.89 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1223, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01659/0.1389, allocations: 16.45 MB / 487.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1497, allocations: 5.079 MB / 492.2 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002766/0.1525, allocations: 99.75 kB / 492.3 MB, free: 7.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008937/0.1614, allocations: 5.198 MB / 497.5 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006964/0.1685, allocations: 2.579 MB / 0.4884 GB, free: 128 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.1715, allocations: 1.182 MB / 0.4895 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01086/0.1823, allocations: 6.719 MB / 0.4961 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008854/0.1912, allocations: 6.41 MB / 0.5024 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2593/0.4506, allocations: 2.655 MB / 0.505 GB, free: 17.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008321/0.4589, allocations: 3.755 MB / 0.5086 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003504/0.4625, allocations: 0.5881 MB / 0.5092 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005566/0.4681, allocations: 1.302 MB / 0.5105 GB, free: 17.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007318/0.4754, allocations: 3.327 MB / 0.5137 GB, free: 17.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0104/0.4858, allocations: 3.797 MB / 0.5174 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02331/0.5092, allocations: 11.53 MB / 0.5287 GB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5092, allocations: 0 / 0.5287 GB, free: 12.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5092, allocations: 0 / 0.5287 GB, free: 12.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006184/0.5099, allocations: 0 / 0.5287 GB, free: 12.79 MB / 382.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.0222/0.5321, allocations: 7.88 MB / 0.5364 GB, free: 7.648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.5321, allocations: 9.469 kB / 0.5364 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/0.5432, allocations: 2.662 MB / 0.539 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.554, allocations: 3.75 MB / 0.5427 GB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003762/0.5544, allocations: 440.1 kB / 0.5431 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002717/0.5572, allocations: 0.5601 MB / 0.5436 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0421/0.5993, allocations: 20.32 MB / 0.5635 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002671/0.5996, allocations: 75.16 kB / 0.5635 GB, free: 188 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001262/0.6009, allocations: 272.7 kB / 0.5638 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005177/0.606, allocations: 3.335 MB / 0.567 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0386/0.6447, allocations: 16.34 MB / 0.583 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09658/0.7413, allocations: 65.07 MB / 0.6466 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/0.7591, allocations: 6.368 MB / 0.6528 GB, free: 4.297 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003715/0.7628, allocations: 2.077 MB / 0.6548 GB, free: 2.207 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0175/0.7804, allocations: 9.166 MB / 0.6638 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01373/0.7941, allocations: 4.154 MB / 0.6678 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=260): time 9.407e-06/0.7942, allocations: 0 / 0.6678 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of matching and sorting (n=294): time 0.0603/0.8545, allocations: 21.53 MB / 0.6888 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.8546, allocations: 158.1 kB / 0.689 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00956/0.8642, allocations: 5.862 MB / 0.6947 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005202/0.8648, allocations: 69.7 kB / 0.6948 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005236/0.87, allocations: 5.064 MB / 0.6997 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001546/0.8716, allocations: 1.131 MB / 0.7008 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002751/0.8743, allocations: 1.841 MB / 0.7026 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.8745, allocations: 301.1 kB / 0.7029 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2569/1.131, allocations: 2.659 MB / 0.7055 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008574/1.14, allocations: 8.278 MB / 0.7136 GB, free: 176.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01454/1.155, allocations: 11.91 MB / 0.7252 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003321/1.155, allocations: 55.81 kB / 0.7253 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.02068/1.176, allocations: 10.68 MB / 0.7357 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001846/1.176, allocations: 123.6 kB / 0.7358 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002432/1.176, allocations: 198.4 kB / 0.736 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/1.176, allocations: 262.5 kB / 0.7363 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006881/1.183, allocations: 2.233 MB / 0.7384 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003206/1.184, allocations: 395.9 kB / 0.7388 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007417/1.191, allocations: 463.6 kB / 0.7393 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001519/1.193, allocations: 0.5494 MB / 0.7398 GB, free: 161.3 MB / 0.5294 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.00602/1.199, allocations: 3.235 MB / 0.743 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.2, allocations: 0.5204 MB / 0.7435 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/1.205, allocations: 3.032 MB / 0.7464 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.291e-05/1.205, allocations: 32 kB / 0.7465 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/1.205, allocations: 0 / 0.7465 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.891e-05/1.205, allocations: 16.38 kB / 0.7465 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/1.225, allocations: 12.41 MB / 0.7586 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-05/1.225, allocations: 36.03 kB / 0.7586 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001915/1.227, allocations: 0.5751 MB / 0.7592 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.029e-05/1.227, allocations: 46.95 kB / 0.7592 GB, free: 146.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/1.227, allocations: 91.69 kB / 0.7593 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-05/1.227, allocations: 67.12 kB / 0.7594 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.852e-05/1.227, allocations: 47.81 kB / 0.7594 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00567/1.233, allocations: 5.441 MB / 0.7647 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/1.235, allocations: 0.59 MB / 0.7653 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009257/1.236, allocations: 96.78 kB / 0.7654 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/1.238, allocations: 147.3 kB / 0.7656 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/1.238, allocations: 273 kB / 0.7658 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/1.238, allocations: 124.8 kB / 0.7659 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005709/1.244, allocations: 3.647 MB / 0.7695 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.51e-07/1.244, allocations: 0 / 0.7695 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01175/1.256, allocations: 1.471 MB / 0.7709 GB, free: 135.6 MB / 0.5294 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.0009469/1.257, allocations: 261.8 kB / 0.7712 GB, free: 135.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01078/1.268, allocations: 6.177 MB / 0.7772 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.015e-05/1.268, allocations: 12 kB / 0.7772 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002984/1.271, allocations: 1.64 MB / 0.7788 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005404/1.276, allocations: 0.7901 MB / 0.7796 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02467/1.301, allocations: 14.6 MB / 0.7939 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006826/1.308, allocations: 4.89 MB / 0.7986 GB, free: 107.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006154/1.314, allocations: 2.603 MB / 0.8012 GB, free: 105 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.315, allocations: 398.2 kB / 0.8016 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/1.315, allocations: 3.938 kB / 0.8016 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.08226/1.397, allocations: 40.11 MB / 0.8407 GB, free: 64.97 MB / 0.5294 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 -s cvode -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