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.0007959/0.0007958, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009206/0.0009207, allocations: 192.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.7 MB / 246.4 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002127, allocations: 4 kB / 307.1 MB, free: 1.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09224, allocations: 51.52 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1932/0.2854, allocations: 34.72 MB / 393.4 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.3053, allocations: 7.935 MB / 401.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008489/0.3138, allocations: 166 kB / 401.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004673/0.3185, allocations: 1.787 MB / 403.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.3316, allocations: 5.411 MB / 408.7 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002175/0.3338, allocations: 0.6282 MB / 409.3 MB, free: 7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005739/0.3396, allocations: 4.752 MB / 414 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004732/0.3443, allocations: 3.347 MB / 417.4 MB, free: 456 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.3464, allocations: 1.242 MB / 418.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002697/0.3491, allocations: 2.006 MB / 420.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003618/0.3495, allocations: 144 kB / 420.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3508, allocations: 0.7021 MB / 421.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001309/0.3522, allocations: 1.613 MB / 423.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006413/0.3528, allocations: 0.7726 MB / 423.9 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003824/0.3566, allocations: 4.791 MB / 428.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3567, allocations: 0 / 428.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3567, allocations: 0 / 428.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.303e-05/0.3567, allocations: 0 / 428.6 MB, free: 5.141 MB / 334.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.005508/0.3623, allocations: 3.82 MB / 432.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3623, allocations: 8.031 kB / 432.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006378/0.3687, allocations: 1.971 MB / 434.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00324/0.3719, allocations: 2.14 MB / 436.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.3721, allocations: 233.6 kB / 436.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004311/0.3726, allocations: 291.8 kB / 437.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.3854, allocations: 9.655 MB / 446.8 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.24e-05/0.3855, allocations: 51.53 kB / 446.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003194/0.3859, allocations: 147.8 kB / 446.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002475/0.3883, allocations: 1.915 MB / 448.9 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.4015, allocations: 7.625 MB / 456.5 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04299/0.4445, allocations: 37.74 MB / 494.2 MB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006226/0.4508, allocations: 2.898 MB / 497.1 MB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.4521, allocations: 0.8766 MB / 498 MB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005437/0.4575, allocations: 3.858 MB / 0.4901 GB, free: 9.449 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.4576, allocations: 43.22 kB / 0.4901 GB, free: 9.398 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.777e-06/0.4576, allocations: 0 / 0.4901 GB, free: 9.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02037/0.4779, allocations: 9.068 MB / 0.499 GB, free: 216 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.4781, allocations: 145.5 kB / 0.4991 GB, free: 40 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005107/0.4832, allocations: 3.881 MB / 0.5029 GB, free: 12.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.435e-05/0.4833, allocations: 49.7 kB / 0.503 GB, free: 12.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002044/0.4853, allocations: 3.081 MB / 0.506 GB, free: 8.996 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004902/0.4858, allocations: 0.6019 MB / 0.5066 GB, free: 8.387 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.486, allocations: 116 kB / 0.5067 GB, free: 8.273 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003498/0.4864, allocations: 0.5579 MB / 0.5072 GB, free: 7.707 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002462/0.4889, allocations: 1.561 MB / 0.5087 GB, free: 6.141 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004657/0.4935, allocations: 5.347 MB / 0.514 GB, free: 14.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003873/0.4974, allocations: 2.837 MB / 0.5167 GB, free: 12.06 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-05/0.4975, allocations: 36 kB / 0.5168 GB, free: 12.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01061/0.5081, allocations: 6.624 MB / 0.5232 GB, free: 5.398 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.539e-05/0.5082, allocations: 68 kB / 0.5233 GB, free: 5.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/0.5083, allocations: 132 kB / 0.5234 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001786/0.5085, allocations: 196 kB / 0.5236 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003691/0.5122, allocations: 1.38 MB / 0.525 GB, free: 3.629 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000213/0.5124, allocations: 267 kB / 0.5252 GB, free: 3.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/0.5158, allocations: 296.1 kB / 0.5255 GB, free: 3.078 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003784/0.5162, allocations: 360 kB / 0.5258 GB, free: 2.727 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002895/0.5191, allocations: 1.982 MB / 0.5278 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005531/0.5197, allocations: 331.7 kB / 0.5281 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009026/0.5206, allocations: 401.3 kB / 0.5285 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2137/0.7343, allocations: 18.23 kB / 0.5285 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.7344, allocations: 3.906 kB / 0.5285 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.913e-05/0.7344, allocations: 5.906 kB / 0.5285 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009149/0.7436, allocations: 5.747 MB / 0.5341 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.35e-05/0.7436, allocations: 21.62 kB / 0.5341 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009865/0.7446, allocations: 277.1 kB / 0.5344 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.052e-05/0.7447, allocations: 28.31 kB / 0.5344 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.444e-05/0.7448, allocations: 52.55 kB / 0.5345 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.375e-05/0.7448, allocations: 38.2 kB / 0.5345 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.901e-05/0.7448, allocations: 28.16 kB / 0.5345 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.7484, allocations: 3.226 MB / 0.5377 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006409/0.749, allocations: 414.5 kB / 0.5381 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/0.7494, allocations: 51.06 kB / 0.5381 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009966/0.7504, allocations: 62.84 kB / 0.5382 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.7505, allocations: 146.5 kB / 0.5383 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/0.7506, allocations: 71.31 kB / 0.5384 GB, free: 137.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003709/0.7544, allocations: 2.411 MB / 0.5408 GB, free: 136.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.002e-06/0.7544, allocations: 0 / 0.5408 GB, free: 136.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00407/0.7584, allocations: 0.8456 MB / 0.5416 GB, free: 136.8 MB / 446.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 (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.0003258/0.7588, allocations: 200.4 kB / 0.5418 GB, free: 136.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005418/0.7642, allocations: 3.632 MB / 0.5453 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.7642, allocations: 7.297 kB / 0.5453 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.7653, allocations: 0.7323 MB / 0.546 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.7677, allocations: 442.6 kB / 0.5465 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.7785, allocations: 10.14 MB / 0.5564 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002535/0.7811, allocations: 3.095 MB / 0.5594 GB, free: 128.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003857/0.785, allocations: 1.768 MB / 0.5611 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/0.7853, allocations: 231.1 kB / 0.5613 GB, free: 128 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.7854, allocations: 0 / 0.5613 GB, free: 128 MB / 446.1 MB Notification: Performance of Templates: time 0.03756/0.8229, allocations: 25.32 MB / 0.5861 GB, free: 103.7 MB / 446.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