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.001304/0.001304, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 203.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2554, 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.011/0.2665, allocations: 10.66 MB / 419.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00794/0.2745, allocations: 3.884 MB / 423.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.2762, allocations: 63.81 kB / 423.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006103/0.2823, allocations: 2.231 MB / 426.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.2896, allocations: 1.793 MB / 427.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.2921, allocations: 0.7136 MB / 428.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008012/0.3001, allocations: 4.313 MB / 432.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00597/0.3061, allocations: 2.885 MB / 435.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00388/0.31, allocations: 1.468 MB / 437.3 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004804/0.3149, allocations: 2.072 MB / 439.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00153/0.3164, allocations: 292 kB / 439.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.3205, allocations: 0.9206 MB / 440.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003355/0.3239, allocations: 1.784 MB / 442.3 MB, free: 360 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006425/0.3303, allocations: 2.093 MB / 444.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.3427, allocations: 6.376 MB / 450.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3427, allocations: 0 / 450.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3427, allocations: 0 / 450.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002393/0.343, allocations: 0 / 450.8 MB, free: 7.844 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.01262/0.3556, allocations: 4.689 MB / 455.5 MB, free: 3.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3556, allocations: 8.031 kB / 455.5 MB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007091/0.3627, allocations: 1.944 MB / 457.4 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004031/0.3668, allocations: 2.246 MB / 459.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.367, allocations: 229.6 kB / 459.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006845/0.3677, allocations: 299.8 kB / 460.2 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.3838, allocations: 9.655 MB / 469.9 MB, free: 3.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/0.3841, allocations: 47.62 kB / 469.9 MB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/0.3851, allocations: 151.8 kB / 470 MB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003524/0.3886, allocations: 1.915 MB / 472 MB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.4049, allocations: 7.649 MB / 479.6 MB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04396/0.4489, allocations: 37.68 MB / 0.5052 GB, free: 3.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006832/0.4558, allocations: 2.897 MB / 0.508 GB, free: 212 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.4572, allocations: 0.873 MB / 0.5088 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006348/0.4636, allocations: 3.851 MB / 0.5126 GB, free: 11.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4636, allocations: 55.16 kB / 0.5127 GB, free: 11.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.606e-06/0.4636, allocations: 0 / 0.5127 GB, free: 11.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02268/0.4863, allocations: 9.276 MB / 0.5217 GB, free: 1.812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/0.4864, allocations: 149.5 kB / 0.5219 GB, free: 1.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005321/0.4917, allocations: 3.917 MB / 0.5257 GB, free: 13.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.4919, allocations: 49.7 kB / 0.5257 GB, free: 13.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001894/0.4938, allocations: 3.205 MB / 0.5289 GB, free: 10.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004713/0.4943, allocations: 0.6281 MB / 0.5295 GB, free: 9.816 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/0.4955, allocations: 1.179 MB / 0.5306 GB, free: 8.625 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.177e-05/0.4956, allocations: 309.1 kB / 0.5309 GB, free: 8.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002277/0.4979, allocations: 1.585 MB / 0.5325 GB, free: 6.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.231/0.7289, allocations: 5.351 MB / 0.5377 GB, free: 118.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008155/0.7371, allocations: 7.564 MB / 0.5451 GB, free: 112.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/0.7373, allocations: 39.41 kB / 0.5451 GB, free: 112.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01029/0.7476, allocations: 6.684 MB / 0.5517 GB, free: 109.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.99e-05/0.7477, allocations: 65.48 kB / 0.5517 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.7478, allocations: 134.6 kB / 0.5518 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/0.748, allocations: 176.5 kB / 0.552 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003644/0.7516, allocations: 1.381 MB / 0.5534 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001601/0.7518, allocations: 266 kB / 0.5536 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003306/0.7551, allocations: 293.1 kB / 0.5539 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004073/0.7555, allocations: 364.3 kB / 0.5542 GB, free: 109.5 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.002197/0.7577, allocations: 1.977 MB / 0.5562 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004275/0.7582, allocations: 348.6 kB / 0.5565 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005519/0.7587, allocations: 402.7 kB / 0.5569 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.7588, allocations: 19.38 kB / 0.5569 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.7588, allocations: 2.5 kB / 0.5569 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.7588, allocations: 12.42 kB / 0.5569 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006453/0.7653, allocations: 5.751 MB / 0.5625 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.7653, allocations: 28 kB / 0.5626 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008502/0.7662, allocations: 274 kB / 0.5628 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.615e-05/0.7662, allocations: 24 kB / 0.5628 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.697e-05/0.7663, allocations: 52 kB / 0.5629 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.865e-05/0.7663, allocations: 38.39 kB / 0.5629 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.14e-05/0.7663, allocations: 31.58 kB / 0.563 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/0.7691, allocations: 3.246 MB / 0.5661 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005494/0.7696, allocations: 434.1 kB / 0.5665 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002701/0.7699, allocations: 47.56 kB / 0.5666 GB, free: 99.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.7709, allocations: 55.78 kB / 0.5666 GB, free: 99.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.7711, allocations: 149.7 kB / 0.5668 GB, free: 99.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.57e-05/0.7711, allocations: 71.12 kB / 0.5669 GB, free: 99.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.774, allocations: 2.428 MB / 0.5692 GB, free: 97.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.02e-07/0.774, allocations: 0 / 0.5692 GB, free: 97.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003993/0.778, allocations: 0.8544 MB / 0.5701 GB, free: 96.54 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.0003428/0.7783, allocations: 201.7 kB / 0.5703 GB, free: 96.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004497/0.7828, allocations: 3.699 MB / 0.5739 GB, free: 92.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.7829, allocations: 4 kB / 0.5739 GB, free: 92.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008102/0.7837, allocations: 0.7343 MB / 0.5746 GB, free: 92.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/0.7864, allocations: 460.9 kB / 0.575 GB, free: 91.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.7974, allocations: 8.64 MB / 0.5835 GB, free: 82.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002576/0.8001, allocations: 3.095 MB / 0.5865 GB, free: 79.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0033/0.8034, allocations: 1.76 MB / 0.5882 GB, free: 77.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.8038, allocations: 231.4 kB / 0.5884 GB, free: 77.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8038, allocations: 4 kB / 0.5884 GB, free: 77.59 MB / 462.1 MB Notification: Performance of Templates: time 0.04092/0.8448, allocations: 23.67 MB / 0.6115 GB, free: 54.13 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