Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 193.9 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2822, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.0134/0.2957, allocations: 10.74 MB / 336.1 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.3053, allocations: 3.873 MB / 339.9 MB, free: 5.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002586/0.308, allocations: 63.81 kB / 340 MB, free: 5.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00448/0.3125, allocations: 2.234 MB / 342.2 MB, free: 2.949 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005917/0.3184, allocations: 1.836 MB / 344.1 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001835/0.3203, allocations: 0.7136 MB / 344.8 MB, free: 400 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006703/0.327, allocations: 4.262 MB / 349 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003583/0.3306, allocations: 2.918 MB / 352 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.3331, allocations: 1.495 MB / 353.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.3359, allocations: 2.087 MB / 355.5 MB, free: 5.551 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007799/0.3367, allocations: 296 kB / 355.8 MB, free: 5.262 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001956/0.3387, allocations: 0.9323 MB / 356.8 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001748/0.3404, allocations: 1.812 MB / 358.6 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002403/0.3429, allocations: 2.112 MB / 360.7 MB, free: 396 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007629/0.3505, allocations: 6.179 MB / 366.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3505, allocations: 0 / 366.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3505, allocations: 4 kB / 366.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000228/0.3508, allocations: 0 / 366.9 MB, free: 10.18 MB / 302.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.01056/0.3613, allocations: 4.61 MB / 371.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.3614, allocations: 8.031 kB / 371.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007158/0.3686, allocations: 1.922 MB / 373.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005032/0.3736, allocations: 2.355 MB / 375.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.3738, allocations: 229.6 kB / 376 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006733/0.3745, allocations: 295.8 kB / 376.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/0.3903, allocations: 9.635 MB / 385.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.3905, allocations: 43.62 kB / 386 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003823/0.3909, allocations: 155.8 kB / 386.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002805/0.3937, allocations: 1.911 MB / 388 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.4094, allocations: 7.629 MB / 395.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04653/0.456, allocations: 37.77 MB / 433.4 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006552/0.4625, allocations: 2.87 MB / 436.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.4639, allocations: 0.8808 MB / 437.2 MB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006342/0.4703, allocations: 3.771 MB / 440.9 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.4703, allocations: 43.22 kB / 441 MB, free: 13.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.499e-06/0.4703, allocations: 0 / 441 MB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02326/0.4936, allocations: 9.055 MB / 450 MB, free: 4.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.4937, allocations: 157.5 kB / 450.2 MB, free: 4.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005961/0.4997, allocations: 3.936 MB / 454.1 MB, free: 336 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.4999, allocations: 49.69 kB / 454.2 MB, free: 280 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1694/0.6693, allocations: 3.077 MB / 457.2 MB, free: 110.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007181/0.6701, allocations: 0.6142 MB / 457.9 MB, free: 110 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/0.6718, allocations: 1.161 MB / 459 MB, free: 109.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.349e-05/0.6719, allocations: 306 kB / 459.3 MB, free: 109.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002393/0.6743, allocations: 1.584 MB / 460.9 MB, free: 108.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003841/0.6781, allocations: 5.358 MB / 466.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005883/0.684, allocations: 7.543 MB / 473.8 MB, free: 96.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.44e-05/0.6841, allocations: 38.91 kB / 473.8 MB, free: 96.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008719/0.6928, allocations: 6.667 MB / 480.5 MB, free: 93.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.171e-05/0.6929, allocations: 64 kB / 480.6 MB, free: 93.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001027/0.693, allocations: 141.8 kB / 480.7 MB, free: 93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/0.6932, allocations: 176 kB / 480.9 MB, free: 92.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00315/0.6963, allocations: 1.385 MB / 482.3 MB, free: 91.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000123/0.6964, allocations: 265 kB / 482.5 MB, free: 91.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003275/0.6997, allocations: 279.7 kB / 482.8 MB, free: 91.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003087/0.7001, allocations: 369.8 kB / 483.2 MB, free: 90.75 MB / 382.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.002139/0.7022, allocations: 1.983 MB / 485.1 MB, free: 89.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003751/0.7026, allocations: 335.6 kB / 485.5 MB, free: 88.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/0.7042, allocations: 1.245 MB / 486.7 MB, free: 87.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.7042, allocations: 16 kB / 486.7 MB, free: 87.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.7042, allocations: 3.938 kB / 486.7 MB, free: 87.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.7043, allocations: 15.97 kB / 486.8 MB, free: 87.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007334/0.7116, allocations: 5.754 MB / 492.5 MB, free: 81.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.7116, allocations: 16 kB / 492.5 MB, free: 81.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008369/0.7125, allocations: 275.5 kB / 492.8 MB, free: 81.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.992e-05/0.7125, allocations: 24 kB / 492.8 MB, free: 81.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.867e-05/0.7126, allocations: 52 kB / 492.9 MB, free: 81.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.908e-05/0.7126, allocations: 35.86 kB / 492.9 MB, free: 81.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.466e-05/0.7126, allocations: 27.88 kB / 492.9 MB, free: 81.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002771/0.7154, allocations: 3.222 MB / 496.2 MB, free: 77.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009272/0.7163, allocations: 0.5099 MB / 496.7 MB, free: 77.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.7166, allocations: 51.03 kB / 496.7 MB, free: 77.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.7177, allocations: 59.91 kB / 496.8 MB, free: 76.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.7178, allocations: 151.4 kB / 496.9 MB, free: 76.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/0.7179, allocations: 68.88 kB / 497 MB, free: 76.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00288/0.7208, allocations: 2.446 MB / 499.4 MB, free: 74.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.913e-06/0.7208, allocations: 0 / 499.4 MB, free: 74.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004336/0.7251, allocations: 0.8721 MB / 0.4886 GB, free: 73.46 MB / 382.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.0003724/0.7255, allocations: 199.5 kB / 0.4888 GB, free: 73.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.7305, allocations: 3.816 MB / 0.4925 GB, free: 69.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/0.7305, allocations: 0 / 0.4925 GB, free: 69.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007584/0.7313, allocations: 0.727 MB / 0.4932 GB, free: 68.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.7337, allocations: 467 kB / 0.4936 GB, free: 68.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/0.7457, allocations: 8.632 MB / 0.5021 GB, free: 59.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002594/0.7484, allocations: 3.107 MB / 0.5051 GB, free: 56.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003948/0.7523, allocations: 1.772 MB / 0.5068 GB, free: 54.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005496/0.7529, allocations: 235.4 kB / 0.5071 GB, free: 54.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.724e-06/0.7529, allocations: 0 / 0.5071 GB, free: 54.28 MB / 382.1 MB Notification: Performance of Templates: time 0.04971/0.8026, allocations: 27.22 MB / 0.5337 GB, free: 27.09 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)