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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 182.3 kB / 8.52 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 221.4 MB / 230.3 MB, free: 7.715 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000948/0.0009481, allocations: 84.8 kB / 281.2 MB, free: 5.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1779/0.1779, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.46e-06/5.48e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 61.91 MB / 0.4941 GB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3981, allocations: 109.1 MB / 0.6007 GB, free: 3.695 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.3983, allocations: 79.95 kB / 0.6007 GB, free: 3.617 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5066/0.9049, allocations: 136.3 MB / 0.7339 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002387/0.9052, allocations: 137.8 kB / 0.734 GB, free: 105.7 MB / 0.4948 GB 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.01446/0.9196, allocations: 6.376 MB / 0.7402 GB, free: 103 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.9197, allocations: 22.34 kB / 0.7403 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/0.9341, allocations: 2.972 MB / 0.7432 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.9498, allocations: 7.152 MB / 0.7501 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003224/0.9501, allocations: 248.1 kB / 0.7504 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/0.9528, allocations: 458.4 kB / 0.7508 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01814/0.9709, allocations: 11.12 MB / 0.7617 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02833/0.9993, allocations: 16.15 MB / 0.7774 GB, free: 91.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003387/0.9997, allocations: 93.72 kB / 0.7775 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001352/1.001, allocations: 48.28 kB / 0.7776 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003113/1.004, allocations: 1.92 MB / 0.7795 GB, free: 90.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06545/1.07, allocations: 76.16 MB / 0.8538 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/1.073, allocations: 2.742 MB / 0.8565 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002038/1.075, allocations: 1.934 MB / 0.8584 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01081/1.086, allocations: 8.521 MB / 0.8667 GB, free: 4.258 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001988/1.088, allocations: 1.855 MB / 0.8685 GB, free: 2.371 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=257): time 4.257e-06/1.088, allocations: 4 kB / 0.8685 GB, free: 2.367 MB / 0.4948 GB Notification: Performance of matching and sorting (n=283): time 0.03397/1.122, allocations: 15.33 MB / 0.8835 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/1.122, allocations: 158.5 kB / 0.8837 GB, free: 2.777 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00604/1.128, allocations: 4.32 MB / 0.8879 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004337/1.128, allocations: 29.7 kB / 0.8879 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003949/1.132, allocations: 4.834 MB / 0.8926 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00117/1.134, allocations: 1.06 MB / 0.8937 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000316/1.134, allocations: 0 / 0.8937 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004806/1.134, allocations: 0.7026 MB / 0.8943 GB, free: 7.742 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/1.138, allocations: 2.361 MB / 0.8967 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1499/1.288, allocations: 7.996 MB / 0.9045 GB, free: 173 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0061/1.294, allocations: 4.333 MB / 0.9087 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/1.294, allocations: 62.19 kB / 0.9088 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.01788/1.312, allocations: 9.046 MB / 0.9176 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/1.312, allocations: 3.781 kB / 0.9176 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003582/1.313, allocations: 201.2 kB / 0.9178 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002735/1.313, allocations: 299.1 kB / 0.9181 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007762/1.321, allocations: 2.281 MB / 0.9203 GB, free: 172.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000215/1.321, allocations: 397.9 kB / 0.9207 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006669/1.328, allocations: 394.4 kB / 0.9211 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000993/1.329, allocations: 0.5475 MB / 0.9216 GB, free: 172.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,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.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1194): * Single equations (assignments): 1190 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001015/1.33, allocations: 0.616 MB / 0.9222 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004963/1.33, allocations: 475 kB / 0.9226 GB, free: 171.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/1.334, allocations: 2.569 MB / 0.9251 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.45e-05/1.334, allocations: 25.03 kB / 0.9252 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.334, allocations: 1.875 kB / 0.9252 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/1.334, allocations: 19.41 kB / 0.9252 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01471/1.349, allocations: 9.832 MB / 0.9348 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/1.349, allocations: 27.38 kB / 0.9348 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.351, allocations: 0.5258 MB / 0.9353 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.943e-05/1.351, allocations: 42.25 kB / 0.9354 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/1.351, allocations: 46.91 kB / 0.9354 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.331e-05/1.351, allocations: 66.89 kB / 0.9355 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.086e-05/1.351, allocations: 42.38 kB / 0.9355 GB, free: 169.9 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005816/1.357, allocations: 8.985 MB / 0.9443 GB, free: 163.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.358, allocations: 0.519 MB / 0.9448 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005896/1.359, allocations: 47.95 kB / 0.9449 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/1.361, allocations: 161.8 kB / 0.945 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/1.361, allocations: 227.2 kB / 0.9452 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/1.361, allocations: 118 kB / 0.9453 GB, free: 163.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003983/1.365, allocations: 2.83 MB / 0.9481 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007168/1.373, allocations: 1.246 MB / 0.9493 GB, free: 163.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 131 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 256 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005662/1.373, allocations: 224.2 kB / 0.9495 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007205/1.38, allocations: 5.422 MB / 0.9548 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.746e-05/1.38, allocations: 3.875 kB / 0.9548 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002348/1.383, allocations: 1.475 MB / 0.9563 GB, free: 161.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/1.386, allocations: 0.5448 MB / 0.9568 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01955/1.405, allocations: 11.82 MB / 0.9683 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00781/1.413, allocations: 5.432 MB / 0.9736 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of SimCode: time 9.22e-07/1.413, allocations: 0 / 0.9736 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.07876/1.492, allocations: 42.81 MB / 1.015 GB, free: 131.5 MB / 0.5261 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches