Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [: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.0015/0.0015, allocations: 184.2 kB / 8.138 MB, free: 2.188 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.162/1.162, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009171/0.0009171, allocations: 100.9 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/8.896e-06, allocations: 4 kB / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.19, allocations: 50.4 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.2907, allocations: 95.71 MB / 482.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.291, allocations: 87.89 kB / 482.7 MB, free: 6.961 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.343/0.634, allocations: 83.05 MB / 0.5525 GB, free: 56.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001511/0.6342, allocations: 83.98 kB / 0.5526 GB, free: 56.3 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007617/0.6418, allocations: 3.755 MB / 0.5562 GB, free: 52.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.6419, allocations: 8.031 kB / 0.5563 GB, free: 52.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009585/0.6515, allocations: 1.964 MB / 0.5582 GB, free: 50.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.662, allocations: 4.847 MB / 0.5629 GB, free: 45.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.6622, allocations: 132 kB / 0.563 GB, free: 45.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006869/0.6629, allocations: 243.9 kB / 0.5633 GB, free: 45.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007456/0.6703, allocations: 6.04 MB / 0.5692 GB, free: 39.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01101/0.6814, allocations: 9.192 MB / 0.5781 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.6815, allocations: 59.41 kB / 0.5782 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005072/0.682, allocations: 32 kB / 0.5782 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001183/0.6832, allocations: 1.072 MB / 0.5793 GB, free: 27.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03842/0.7217, allocations: 45.58 MB / 0.6238 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.7237, allocations: 1.756 MB / 0.6255 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.7248, allocations: 0.8863 MB / 0.6264 GB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005519/0.7303, allocations: 4.071 MB / 0.6303 GB, free: 5.426 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.7303, allocations: 47.22 kB / 0.6304 GB, free: 5.371 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 3.346e-06/0.7303, allocations: 0 / 0.6304 GB, free: 5.371 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01298/0.7433, allocations: 7.035 MB / 0.6373 GB, free: 14.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.7434, allocations: 141.3 kB / 0.6374 GB, free: 14.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/0.7472, allocations: 3.025 MB / 0.6403 GB, free: 11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.7473, allocations: 25.7 kB / 0.6404 GB, free: 10.97 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.7488, allocations: 2.949 MB / 0.6432 GB, free: 7.977 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003763/0.7492, allocations: 0.5556 MB / 0.6438 GB, free: 7.414 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.7493, allocations: 0 / 0.6438 GB, free: 7.414 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003119/0.7497, allocations: 0.554 MB / 0.6443 GB, free: 6.852 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001853/0.7515, allocations: 1.433 MB / 0.6457 GB, free: 5.414 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1236/0.8752, allocations: 5.278 MB / 0.6509 GB, free: 132 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003232/0.8784, allocations: 2.778 MB / 0.6536 GB, free: 132 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.795e-05/0.8785, allocations: 40.03 kB / 0.6536 GB, free: 132 MB / 426.7 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.00721/0.8857, allocations: 5.741 MB / 0.6592 GB, free: 131.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.8858, allocations: 6.969 kB / 0.6592 GB, free: 131.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.732e-05/0.8858, allocations: 141.4 kB / 0.6594 GB, free: 131.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.886, allocations: 201.6 kB / 0.6596 GB, free: 131.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/0.8897, allocations: 1.428 MB / 0.661 GB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001151/0.8898, allocations: 270.6 kB / 0.6612 GB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/0.8933, allocations: 245.1 kB / 0.6615 GB, free: 131.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003391/0.8936, allocations: 378.8 kB / 0.6618 GB, free: 131.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (752): * Single equations (assignments): 749 * Array equations: 3 * Algorithm blocks: 0 * 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.0004464/0.8941, allocations: 442.8 kB / 0.6622 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003058/0.8944, allocations: 306.5 kB / 0.6625 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.8958, allocations: 1.053 MB / 0.6636 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/0.8959, allocations: 11.53 kB / 0.6636 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.8959, allocations: 6.859 kB / 0.6636 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.8959, allocations: 10.16 kB / 0.6636 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005725/0.9016, allocations: 4.469 MB / 0.668 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.9017, allocations: 16.19 kB / 0.668 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008796/0.9026, allocations: 263.7 kB / 0.6682 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.015e-05/0.9026, allocations: 29.75 kB / 0.6683 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-05/0.9027, allocations: 26.73 kB / 0.6683 GB, free: 130.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.669e-05/0.9027, allocations: 35.56 kB / 0.6683 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/0.9027, allocations: 24.75 kB / 0.6683 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00315/0.9059, allocations: 4.684 MB / 0.6729 GB, free: 127.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005819/0.9065, allocations: 379.6 kB / 0.6733 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003379/0.9068, allocations: 25.86 kB / 0.6733 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.908, allocations: 58.41 kB / 0.6734 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.9081, allocations: 117.4 kB / 0.6735 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.401e-05/0.9082, allocations: 62.28 kB / 0.6735 GB, free: 126.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002453/0.9107, allocations: 2.004 MB / 0.6755 GB, free: 126.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003935/0.9146, allocations: 0.7362 MB / 0.6762 GB, free: 126.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 3 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0003651/0.915, allocations: 186.2 kB / 0.6764 GB, free: 126.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003976/0.919, allocations: 3.306 MB / 0.6796 GB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.919, allocations: 3.625 kB / 0.6796 GB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006726/0.9197, allocations: 0.6659 MB / 0.6803 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.9212, allocations: 335.8 kB / 0.6806 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009913/0.9311, allocations: 6.869 MB / 0.6873 GB, free: 124.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003375/0.9345, allocations: 3.427 MB / 0.6906 GB, free: 123.5 MB / 426.7 MB Notification: Performance of SimCode: time 9.22e-07/0.9346, allocations: 0 / 0.6906 GB, free: 123.5 MB / 426.7 MB Notification: Performance of Templates: time 0.05149/0.9861, allocations: 25.41 MB / 0.7154 GB, free: 117.6 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches