Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009379/0.0009378, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007205/0.0007204, allocations: 86.42 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002753, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2112, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1064/0.3176, allocations: 95.08 MB / 470.8 MB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.3178, allocations: 91.94 kB / 470.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3411/0.659, allocations: 83.65 MB / 0.5415 GB, free: 74.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.659, allocations: 4 kB / 0.5416 GB, free: 74.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001309/0.6591, allocations: 72 kB / 0.5416 GB, free: 74.67 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.009073/0.6682, allocations: 4.039 MB / 0.5456 GB, free: 70.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.6683, allocations: 16.03 kB / 0.5456 GB, free: 70.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/0.6784, allocations: 2.374 MB / 0.5479 GB, free: 68.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007597/0.6861, allocations: 3.908 MB / 0.5517 GB, free: 64.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.6864, allocations: 316.5 kB / 0.552 GB, free: 63.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/0.6881, allocations: 416.2 kB / 0.5524 GB, free: 63.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01578/0.7039, allocations: 10.02 MB / 0.5622 GB, free: 52.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.7041, allocations: 59.69 kB / 0.5623 GB, free: 52.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005176/0.7046, allocations: 207.8 kB / 0.5625 GB, free: 52.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00112/0.7057, allocations: 1.002 MB / 0.5634 GB, free: 51.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/0.7189, allocations: 7.811 MB / 0.5711 GB, free: 43.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03797/0.7569, allocations: 45.66 MB / 0.6157 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006447/0.7634, allocations: 2.866 MB / 0.6184 GB, free: 9.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.7647, allocations: 0.8612 MB / 0.6193 GB, free: 8.199 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005812/0.7705, allocations: 3.798 MB / 0.623 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.7706, allocations: 51.16 kB / 0.623 GB, free: 4.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.466e-06/0.7706, allocations: 0 / 0.623 GB, free: 4.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.02217/0.7928, allocations: 9.104 MB / 0.6319 GB, free: 10.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.7929, allocations: 141.5 kB / 0.6321 GB, free: 10.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005756/0.7986, allocations: 3.973 MB / 0.636 GB, free: 6.738 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.7988, allocations: 45.7 kB / 0.636 GB, free: 6.688 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002075/0.8009, allocations: 3.105 MB / 0.639 GB, free: 3.539 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005825/0.8015, allocations: 0.6057 MB / 0.6396 GB, free: 2.926 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/0.8017, allocations: 120 kB / 0.6397 GB, free: 2.809 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003423/0.8021, allocations: 0.546 MB / 0.6403 GB, free: 2.254 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002633/0.8047, allocations: 1.588 MB / 0.6418 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1941/0.9988, allocations: 5.343 MB / 0.647 GB, free: 98.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007368/1.006, allocations: 7.525 MB / 0.6544 GB, free: 93.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001562/1.006, allocations: 35.41 kB / 0.6544 GB, free: 93.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.015/1.021, allocations: 6.658 MB / 0.6609 GB, free: 92.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/1.022, allocations: 60.81 kB / 0.661 GB, free: 92.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001991/1.022, allocations: 137.5 kB / 0.6611 GB, free: 92.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001495/1.022, allocations: 180.8 kB / 0.6613 GB, free: 92.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003891/1.026, allocations: 1.395 MB / 0.6626 GB, free: 92.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001638/1.026, allocations: 261.9 kB / 0.6629 GB, free: 92.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/1.03, allocations: 366.5 kB / 0.6632 GB, free: 92.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004502/1.03, allocations: 360.8 kB / 0.6636 GB, free: 92.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 733 * 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.002687/1.033, allocations: 1.985 MB / 0.6655 GB, free: 91.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000442/1.033, allocations: 341.3 kB / 0.6659 GB, free: 91.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/1.035, allocations: 1.244 MB / 0.6671 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/1.035, allocations: 19.94 kB / 0.6671 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/1.035, allocations: 3.031 kB / 0.6671 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/1.035, allocations: 7.641 kB / 0.6671 GB, free: 91.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007242/1.042, allocations: 5.811 MB / 0.6728 GB, free: 89.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.777e-05/1.043, allocations: 19.56 kB / 0.6728 GB, free: 89.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008451/1.043, allocations: 275.5 kB / 0.6731 GB, free: 89.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.005e-05/1.043, allocations: 31.22 kB / 0.6731 GB, free: 89.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.276e-05/1.043, allocations: 48.77 kB / 0.6731 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.869e-05/1.043, allocations: 41.31 kB / 0.6732 GB, free: 89.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/1.044, allocations: 25.5 kB / 0.6732 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/1.046, allocations: 3.256 MB / 0.6764 GB, free: 87.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007951/1.047, allocations: 0.5193 MB / 0.6769 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/1.047, allocations: 53.66 kB / 0.6769 GB, free: 87.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/1.048, allocations: 93.7 kB / 0.677 GB, free: 87.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/1.049, allocations: 148.6 kB / 0.6772 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/1.049, allocations: 75.22 kB / 0.6772 GB, free: 87.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003248/1.052, allocations: 2.48 MB / 0.6797 GB, free: 86.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.052, allocations: 0 / 0.6797 GB, free: 86.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004222/1.056, allocations: 0.8745 MB / 0.6805 GB, free: 86.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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.0003757/1.057, allocations: 218.6 kB / 0.6807 GB, free: 86.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005118/1.062, allocations: 3.629 MB / 0.6843 GB, free: 85.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.062, allocations: 2 kB / 0.6843 GB, free: 85.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008498/1.063, allocations: 0.7375 MB / 0.685 GB, free: 84.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01142/1.074, allocations: 445.6 kB / 0.6854 GB, free: 84.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01729/1.091, allocations: 10.63 MB / 0.6958 GB, free: 77.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003674/1.095, allocations: 3.116 MB / 0.6988 GB, free: 75.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007577/1.096, allocations: 275.1 kB / 0.6991 GB, free: 75.23 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/1.096, allocations: 0 / 0.6991 GB, free: 75.23 MB / 410.7 MB Notification: Performance of Templates: time 0.06562/1.161, allocations: 50.64 MB / 0.7485 GB, free: 32.14 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches