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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 59.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2396, allocations: 50.54 MB / 409.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01125/0.2509, allocations: 10.66 MB / 419.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00752/0.2585, allocations: 3.888 MB / 423.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001661/0.2602, allocations: 63.81 kB / 423.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004419/0.2646, allocations: 2.231 MB / 426.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00563/0.2703, allocations: 1.837 MB / 427.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.2721, allocations: 0.7097 MB / 428.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005856/0.2779, allocations: 4.316 MB / 433 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003671/0.2816, allocations: 2.889 MB / 435.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.2839, allocations: 1.464 MB / 437.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/0.2863, allocations: 2.079 MB / 439.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005232/0.2868, allocations: 292 kB / 439.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001545/0.2883, allocations: 0.9129 MB / 440.6 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001473/0.2898, allocations: 1.808 MB / 442.4 MB, free: 288 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.2917, allocations: 2.089 MB / 444.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005479/0.2972, allocations: 6.35 MB / 450.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2972, allocations: 4 kB / 450.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2972, allocations: 0 / 450.8 MB, free: 7.805 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.919e-05/0.2973, allocations: 0 / 450.8 MB, free: 7.805 MB / 366.1 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.006896/0.3042, allocations: 4.56 MB / 455.4 MB, free: 3.176 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3042, allocations: 15.97 kB / 455.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006554/0.3108, allocations: 1.914 MB / 457.3 MB, free: 1.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.3145, allocations: 2.245 MB / 459.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.3147, allocations: 225.6 kB / 459.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004798/0.3152, allocations: 291.8 kB / 460.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01422/0.3294, allocations: 9.659 MB / 469.7 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/0.3296, allocations: 39.59 kB / 469.8 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004312/0.33, allocations: 151.8 kB / 469.9 MB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002654/0.3327, allocations: 1.919 MB / 471.8 MB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.347, allocations: 7.649 MB / 479.5 MB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03944/0.3865, allocations: 37.61 MB / 0.505 GB, free: 3.441 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006419/0.393, allocations: 2.892 MB / 0.5078 GB, free: 416 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.3943, allocations: 0.8691 MB / 0.5087 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005755/0.4001, allocations: 3.854 MB / 0.5124 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.4002, allocations: 51.16 kB / 0.5125 GB, free: 11.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.646e-06/0.4002, allocations: 0 / 0.5125 GB, free: 11.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02074/0.4209, allocations: 9.053 MB / 0.5213 GB, free: 2.215 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.657e-05/0.421, allocations: 149.5 kB / 0.5215 GB, free: 2.039 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005117/0.4262, allocations: 3.912 MB / 0.5253 GB, free: 14.14 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.4263, allocations: 49.7 kB / 0.5253 GB, free: 14.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.4283, allocations: 3.07 MB / 0.5283 GB, free: 10.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004938/0.4288, allocations: 0.6096 MB / 0.5289 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/0.4301, allocations: 1.167 MB / 0.5301 GB, free: 9.18 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.4302, allocations: 305.1 kB / 0.5303 GB, free: 8.879 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/0.4326, allocations: 1.589 MB / 0.5319 GB, free: 7.285 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/0.4378, allocations: 5.362 MB / 0.5371 GB, free: 28 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2186/0.6564, allocations: 7.55 MB / 0.5445 GB, free: 112.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001048/0.6566, allocations: 35.38 kB / 0.5445 GB, free: 112.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01003/0.6666, allocations: 6.669 MB / 0.5511 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.882e-05/0.6667, allocations: 66.03 kB / 0.5511 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000105/0.6668, allocations: 131.4 kB / 0.5512 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001242/0.667, allocations: 177.4 kB / 0.5514 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003687/0.6707, allocations: 1.38 MB / 0.5528 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002056/0.6709, allocations: 269.7 kB / 0.553 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003624/0.6745, allocations: 290.7 kB / 0.5533 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003988/0.6749, allocations: 368.9 kB / 0.5536 GB, free: 109.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002622/0.6776, allocations: 1.977 MB / 0.5556 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00041/0.678, allocations: 333.7 kB / 0.5559 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005235/0.6785, allocations: 407.3 kB / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.6785, allocations: 20.7 kB / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.6785, allocations: 0 / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.6786, allocations: 11.06 kB / 0.5563 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006471/0.685, allocations: 5.739 MB / 0.5619 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.6851, allocations: 24.25 kB / 0.5619 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000863/0.6859, allocations: 278.6 kB / 0.5622 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-05/0.686, allocations: 24 kB / 0.5622 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.093e-05/0.686, allocations: 52 kB / 0.5623 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-05/0.6861, allocations: 39.47 kB / 0.5623 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/0.6861, allocations: 31.39 kB / 0.5623 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.6888, allocations: 3.225 MB / 0.5655 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004972/0.6894, allocations: 416.2 kB / 0.5659 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/0.6896, allocations: 47.89 kB / 0.5659 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.6906, allocations: 63.67 kB / 0.566 GB, free: 99.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.6908, allocations: 142.7 kB / 0.5661 GB, free: 99.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/0.6909, allocations: 68 kB / 0.5662 GB, free: 99.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002751/0.6936, allocations: 2.431 MB / 0.5686 GB, free: 97.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6936, allocations: 0 / 0.5686 GB, free: 97.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003952/0.6976, allocations: 0.8445 MB / 0.5694 GB, free: 96.95 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003007/0.6979, allocations: 211.2 kB / 0.5696 GB, free: 96.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00416/0.7021, allocations: 3.702 MB / 0.5732 GB, free: 93.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.7021, allocations: 4 kB / 0.5732 GB, free: 93.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/0.7029, allocations: 0.7373 MB / 0.5739 GB, free: 92.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.7051, allocations: 446.5 kB / 0.5744 GB, free: 92 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009726/0.7148, allocations: 8.505 MB / 0.5827 GB, free: 83.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002312/0.7172, allocations: 3.091 MB / 0.5857 GB, free: 80.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003139/0.7203, allocations: 1.764 MB / 0.5874 GB, free: 78.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.7207, allocations: 231.4 kB / 0.5876 GB, free: 78.11 MB / 462.1 MB Notification: Performance of SimCode: time 7.02e-07/0.7207, allocations: 0 / 0.5876 GB, free: 78.11 MB / 462.1 MB Notification: Performance of Templates: time 0.04134/0.7621, allocations: 23.69 MB / 0.6108 GB, free: 54.63 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches