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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009863/0.0009864, allocations: 176.5 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007491/0.0007493, allocations: 102 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003079, allocations: 8 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2226, allocations: 50.4 MB / 402.8 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3309, allocations: 96.64 MB / 499.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.3312, allocations: 93.95 kB / 499.5 MB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.366/0.6972, allocations: 84.6 MB / 0.5704 GB, free: 43.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.6973, allocations: 0 / 0.5704 GB, free: 43.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002853/0.6976, allocations: 76 kB / 0.5705 GB, free: 43.26 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.01659/0.7142, allocations: 4.004 MB / 0.5744 GB, free: 39.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.7143, allocations: 12.03 kB / 0.5744 GB, free: 39.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0185/0.7328, allocations: 2.374 MB / 0.5767 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01261/0.7454, allocations: 3.619 MB / 0.5802 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004576/0.7459, allocations: 308.5 kB / 0.5805 GB, free: 32.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002195/0.7482, allocations: 416.2 kB / 0.5809 GB, free: 32.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02904/0.7772, allocations: 10.02 MB / 0.5907 GB, free: 21.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003306/0.7776, allocations: 59.59 kB / 0.5908 GB, free: 21.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.7795, allocations: 211.8 kB / 0.591 GB, free: 21.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002347/0.7819, allocations: 1.01 MB / 0.592 GB, free: 20.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02517/0.8071, allocations: 7.8 MB / 0.5996 GB, free: 12.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06818/0.8753, allocations: 45.62 MB / 0.6441 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/0.8861, allocations: 2.859 MB / 0.6469 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002365/0.8885, allocations: 0.8744 MB / 0.6478 GB, free: 9.156 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009294/0.8978, allocations: 3.774 MB / 0.6515 GB, free: 5.176 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/0.8979, allocations: 55.16 kB / 0.6515 GB, free: 5.113 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 6.102e-06/0.898, allocations: 4 kB / 0.6515 GB, free: 5.109 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.03584/0.9338, allocations: 8.99 MB / 0.6603 GB, free: 11.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.934, allocations: 145.5 kB / 0.6604 GB, free: 11.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009464/0.9434, allocations: 3.945 MB / 0.6643 GB, free: 7.895 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003034/0.9438, allocations: 49.61 kB / 0.6643 GB, free: 7.844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003669/0.9475, allocations: 3.094 MB / 0.6674 GB, free: 4.707 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000938/0.9484, allocations: 0.6097 MB / 0.668 GB, free: 4.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003881/0.9488, allocations: 112 kB / 0.6681 GB, free: 3.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005929/0.9495, allocations: 0.5499 MB / 0.6686 GB, free: 3.422 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005087/0.9546, allocations: 1.588 MB / 0.6701 GB, free: 1.828 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1982/1.153, allocations: 5.34 MB / 0.6754 GB, free: 107.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00804/1.161, allocations: 7.519 MB / 0.6827 GB, free: 102.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002157/1.161, allocations: 41 kB / 0.6827 GB, free: 102.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01366/1.175, allocations: 6.654 MB / 0.6892 GB, free: 101.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.948e-05/1.175, allocations: 63.22 kB / 0.6893 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001456/1.175, allocations: 135.6 kB / 0.6894 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001563/1.175, allocations: 181 kB / 0.6896 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003946/1.179, allocations: 1.4 MB / 0.691 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002096/1.179, allocations: 258.5 kB / 0.6912 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004136/1.184, allocations: 365.8 kB / 0.6916 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006874/1.184, allocations: 357.1 kB / 0.6919 GB, free: 101.2 MB / 442.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.003133/1.187, allocations: 1.981 MB / 0.6938 GB, free: 100.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00054/1.188, allocations: 341.7 kB / 0.6942 GB, free: 100.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/1.19, allocations: 1.238 MB / 0.6954 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/1.19, allocations: 21.11 kB / 0.6954 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/1.19, allocations: 3.938 kB / 0.6954 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/1.19, allocations: 6.938 kB / 0.6954 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008138/1.198, allocations: 5.795 MB / 0.7011 GB, free: 99.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/1.198, allocations: 16.22 kB / 0.7011 GB, free: 99.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008647/1.199, allocations: 277.6 kB / 0.7013 GB, free: 99.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/1.199, allocations: 25.84 kB / 0.7014 GB, free: 99.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-05/1.199, allocations: 53.91 kB / 0.7014 GB, free: 99.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-05/1.199, allocations: 37.44 kB / 0.7015 GB, free: 99.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/1.199, allocations: 29.19 kB / 0.7015 GB, free: 99.51 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/1.202, allocations: 3.257 MB / 0.7047 GB, free: 98.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007666/1.203, allocations: 415.6 kB / 0.7051 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/1.203, allocations: 52.06 kB / 0.7051 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/1.204, allocations: 91.23 kB / 0.7052 GB, free: 98.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.205, allocations: 152.6 kB / 0.7053 GB, free: 98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-05/1.205, allocations: 65.64 kB / 0.7054 GB, free: 98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00358/1.208, allocations: 2.464 MB / 0.7078 GB, free: 97.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.208, allocations: 0 / 0.7078 GB, free: 97.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005219/1.213, allocations: 0.8812 MB / 0.7087 GB, free: 97.34 MB / 442.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.0004419/1.214, allocations: 219.8 kB / 0.7089 GB, free: 97.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005857/1.22, allocations: 3.629 MB / 0.7124 GB, free: 96.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/1.22, allocations: 0 / 0.7124 GB, free: 96.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009175/1.221, allocations: 0.7337 MB / 0.7131 GB, free: 95.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/1.232, allocations: 452.2 kB / 0.7136 GB, free: 95.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/1.247, allocations: 10.17 MB / 0.7235 GB, free: 89.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003711/1.25, allocations: 3.092 MB / 0.7265 GB, free: 88.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004139/1.254, allocations: 1.774 MB / 0.7283 GB, free: 88.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004863/1.255, allocations: 234.1 kB / 0.7285 GB, free: 88.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.963e-06/1.255, allocations: 0 / 0.7285 GB, free: 88.4 MB / 442.7 MB Notification: Performance of Templates: time 0.04507/1.3, allocations: 25.69 MB / 0.7536 GB, free: 72.98 MB / 442.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/jenkins1/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