Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001729/0.001727, allocations: 172.4 kB / 8.146 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001273/0.001272, allocations: 97.8 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.26/0.26, allocations: 43.49 MB / 353.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.546e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3097, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.5043, allocations: 108.2 MB / 0.5711 GB, free: 6.816 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.5047, allocations: 79.45 kB / 0.5711 GB, free: 6.742 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.8009/1.306, allocations: 141.7 MB / 0.7095 GB, free: 95.66 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003876/1.306, allocations: 144.8 kB / 0.7096 GB, free: 95.65 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.02486/1.331, allocations: 6.678 MB / 0.7161 GB, free: 90.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/1.331, allocations: 8.031 kB / 0.7162 GB, free: 90.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02599/1.357, allocations: 3.051 MB / 0.7191 GB, free: 87.63 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02535/1.382, allocations: 7.781 MB / 0.7267 GB, free: 79.85 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/1.383, allocations: 264 kB / 0.727 GB, free: 79.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003422/1.386, allocations: 467.9 kB / 0.7274 GB, free: 79.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02938/1.416, allocations: 11.81 MB / 0.739 GB, free: 67.33 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04041/1.456, allocations: 16.97 MB / 0.7555 GB, free: 48.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003488/1.457, allocations: 103 kB / 0.7556 GB, free: 48.65 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002053/1.459, allocations: 51.98 kB / 0.7557 GB, free: 48.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005191/1.464, allocations: 2.046 MB / 0.7577 GB, free: 46.56 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3112/1.775, allocations: 78.29 MB / 0.8341 GB, free: 158.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006493/1.782, allocations: 3.024 MB / 0.8371 GB, free: 157.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004809/1.786, allocations: 2.15 MB / 0.8392 GB, free: 157.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02249/1.809, allocations: 9.047 MB / 0.848 GB, free: 154.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004251/1.813, allocations: 2.06 MB / 0.85 GB, free: 154.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=296): time 7.434e-06/1.813, allocations: 0 / 0.85 GB, free: 154.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=322): time 0.0763/1.89, allocations: 16.64 MB / 0.8663 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/1.89, allocations: 167.8 kB / 0.8664 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01415/1.904, allocations: 4.522 MB / 0.8708 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007546/1.905, allocations: 26.2 kB / 0.8709 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006802/1.912, allocations: 5.003 MB / 0.8758 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002327/1.914, allocations: 1.197 MB / 0.8769 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001229/1.915, allocations: 0 / 0.8769 GB, free: 145.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009659/1.916, allocations: 0.7314 MB / 0.8776 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008517/1.925, allocations: 2.578 MB / 0.8802 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0108/1.936, allocations: 8.481 MB / 0.8884 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/1.947, allocations: 4.651 MB / 0.893 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002189/1.947, allocations: 60.28 kB / 0.893 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1303) (initialization): time 0.02632/1.973, allocations: 9.589 MB / 0.9024 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/1.973, allocations: 4.812 kB / 0.9024 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003829/1.974, allocations: 214.7 kB / 0.9026 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004602/1.974, allocations: 315.1 kB / 0.9029 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01682/1.991, allocations: 2.442 MB / 0.9053 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003099/1.991, allocations: 417 kB / 0.9057 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009553/2.001, allocations: 353.9 kB / 0.906 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/2.002, allocations: 0.588 MB / 0.9066 GB, free: 132.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * Number of states: 0 () * Number of discrete variables: 77 ($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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1278): * Single equations (assignments): 1274 * 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.001649/2.004, allocations: 0.5669 MB / 0.9072 GB, free: 131.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/2.005, allocations: 499.4 kB / 0.9076 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00804/2.013, allocations: 3.019 MB / 0.9106 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001062/2.013, allocations: 26.44 kB / 0.9106 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/2.013, allocations: 3.938 kB / 0.9106 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/2.013, allocations: 14.48 kB / 0.9106 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02905/2.043, allocations: 11.06 MB / 0.9214 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.314e-05/2.043, allocations: 30.94 kB / 0.9215 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0048/2.047, allocations: 0.5962 MB / 0.922 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.574e-05/2.047, allocations: 55.91 kB / 0.9221 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002305/2.048, allocations: 51.66 kB / 0.9221 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-05/2.048, allocations: 63.55 kB / 0.9222 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.891e-05/2.048, allocations: 53.75 kB / 0.9223 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01077/2.059, allocations: 10.05 MB / 0.9321 GB, free: 114.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/2.061, allocations: 0.7701 MB / 0.9328 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009551/2.062, allocations: 47.17 kB / 0.9329 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004034/2.066, allocations: 166.5 kB / 0.933 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004485/2.067, allocations: 252.1 kB / 0.9333 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/2.067, allocations: 131.1 kB / 0.9334 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.005982/2.073, allocations: 2.968 MB / 0.9363 GB, free: 110.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01055/2.083, allocations: 1.335 MB / 0.9376 GB, free: 109.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 137 * 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 (303): * Single equations (assignments): 298 * 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.0007583/2.084, allocations: 234.6 kB / 0.9378 GB, free: 109.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01282/2.097, allocations: 5.942 MB / 0.9436 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.167e-05/2.097, allocations: 4.938 kB / 0.9436 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004023/2.101, allocations: 1.571 MB / 0.9452 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/2.105, allocations: 0.5271 MB / 0.9457 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03714/2.143, allocations: 13.56 MB / 0.9589 GB, free: 89.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01325/2.156, allocations: 5.746 MB / 0.9645 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.613e-06/2.156, allocations: 0 / 0.9645 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of Templates: time 0.5652/2.721, allocations: 83.99 MB / 1.047 GB, free: 134.4 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches