Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 201.6 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.2 MB / 245 MB, free: 5.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008481, allocations: 99.67 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002198/0.0002199, allocations: 8 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2122, allocations: 51.47 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3231, allocations: 97.17 MB / 0.4947 GB, free: 9.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.3233, allocations: 95.95 kB / 0.4948 GB, free: 9.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3613/0.6847, allocations: 88.26 MB / 0.581 GB, free: 29.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6847, allocations: 0 / 0.581 GB, free: 29.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002329/0.6849, allocations: 76 kB / 0.5811 GB, free: 29.05 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.01241/0.6974, allocations: 4.058 MB / 0.585 GB, free: 24.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.6974, allocations: 12.03 kB / 0.585 GB, free: 24.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/0.7076, allocations: 2.436 MB / 0.5874 GB, free: 22.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00982/0.7175, allocations: 4.168 MB / 0.5915 GB, free: 18.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003774/0.7179, allocations: 316.2 kB / 0.5918 GB, free: 17.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001839/0.7198, allocations: 415.8 kB / 0.5922 GB, free: 17.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0182/0.738, allocations: 10.07 MB / 0.602 GB, free: 6.367 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002015/0.7382, allocations: 59.5 kB / 0.6021 GB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001412/0.7396, allocations: 199.9 kB / 0.6023 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001492/0.7411, allocations: 1.006 MB / 0.6033 GB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01525/0.7564, allocations: 7.893 MB / 0.611 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04885/0.8053, allocations: 45.65 MB / 0.6555 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006833/0.8122, allocations: 2.874 MB / 0.6584 GB, free: 10.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00804/0.8203, allocations: 3.802 MB / 0.6621 GB, free: 6.977 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.8204, allocations: 51.16 kB / 0.6621 GB, free: 6.918 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 3.396e-06/0.8204, allocations: 0 / 0.6621 GB, free: 6.918 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.2306/1.051, allocations: 9.248 MB / 0.6711 GB, free: 105.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/1.051, allocations: 146 kB / 0.6713 GB, free: 105.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004989/1.056, allocations: 3.523 MB / 0.6747 GB, free: 104.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001972/1.056, allocations: 45.58 kB / 0.6748 GB, free: 104.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001742/1.058, allocations: 3.094 MB / 0.6778 GB, free: 103.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/1.058, allocations: 0.6029 MB / 0.6784 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/1.059, allocations: 118.7 kB / 0.6785 GB, free: 103.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000254/1.059, allocations: 0.5526 MB / 0.679 GB, free: 102.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/1.061, allocations: 1.585 MB / 0.6806 GB, free: 102.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003798/1.065, allocations: 5.321 MB / 0.6858 GB, free: 98.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003521/1.069, allocations: 2.84 MB / 0.6885 GB, free: 98.03 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.295e-05/1.069, allocations: 38.53 kB / 0.6886 GB, free: 98.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.009956/1.079, allocations: 6.657 MB / 0.6951 GB, free: 97.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/1.079, allocations: 64.22 kB / 0.6951 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/1.079, allocations: 133.6 kB / 0.6953 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001386/1.079, allocations: 196.2 kB / 0.6955 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003494/1.082, allocations: 1.394 MB / 0.6968 GB, free: 97.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001357/1.083, allocations: 268.1 kB / 0.6971 GB, free: 97.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/1.087, allocations: 379.3 kB / 0.6974 GB, free: 97.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004658/1.087, allocations: 364.1 kB / 0.6978 GB, free: 97.22 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.003305/1.09, allocations: 1.977 MB / 0.6997 GB, free: 96.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007637/1.091, allocations: 332 kB / 0.7 GB, free: 96.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/1.093, allocations: 1.247 MB / 0.7013 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.583e-05/1.093, allocations: 18.69 kB / 0.7013 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.093, allocations: 2.406 kB / 0.7013 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/1.093, allocations: 7.266 kB / 0.7013 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009299/1.103, allocations: 5.791 MB / 0.7069 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/1.103, allocations: 19.56 kB / 0.707 GB, free: 94.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000908/1.104, allocations: 285.6 kB / 0.7072 GB, free: 94.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-05/1.104, allocations: 27.62 kB / 0.7073 GB, free: 94.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.906e-05/1.104, allocations: 47.72 kB / 0.7073 GB, free: 94.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.019e-05/1.104, allocations: 41.62 kB / 0.7073 GB, free: 94.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-05/1.104, allocations: 31.03 kB / 0.7074 GB, free: 94.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/1.108, allocations: 5.368 MB / 0.7126 GB, free: 89.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/1.109, allocations: 423.9 kB / 0.713 GB, free: 89.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/1.109, allocations: 46.88 kB / 0.7131 GB, free: 89.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/1.11, allocations: 93.06 kB / 0.7131 GB, free: 89.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/1.11, allocations: 155.6 kB / 0.7133 GB, free: 89.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-05/1.11, allocations: 63.84 kB / 0.7134 GB, free: 89.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004042/1.114, allocations: 2.464 MB / 0.7158 GB, free: 88.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.114, allocations: 4 kB / 0.7158 GB, free: 88.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004894/1.119, allocations: 0.8747 MB / 0.7166 GB, free: 88.5 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.0004094/1.12, allocations: 221.7 kB / 0.7168 GB, free: 88.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005391/1.125, allocations: 3.62 MB / 0.7204 GB, free: 87.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/1.125, allocations: 7.656 kB / 0.7204 GB, free: 87.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008373/1.126, allocations: 0.7374 MB / 0.7211 GB, free: 86.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/1.128, allocations: 423.3 kB / 0.7215 GB, free: 86.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/1.142, allocations: 10.12 MB / 0.7314 GB, free: 80.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/1.144, allocations: 3.184 MB / 0.7345 GB, free: 78.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003957/1.148, allocations: 1.77 MB / 0.7362 GB, free: 77.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004306/1.149, allocations: 226.3 kB / 0.7364 GB, free: 77.02 MB / 442.7 MB Notification: Performance of SimCode: time 7.92e-07/1.149, allocations: 2.188 kB / 0.7364 GB, free: 77.02 MB / 442.7 MB Notification: Performance of Templates: time 0.04749/1.196, allocations: 25.6 MB / 0.7614 GB, free: 60.59 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches