Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001356/0.001357, allocations: 108 kB / 15.6 MB, free: 132 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.001364/0.001364, allocations: 193 kB / 16.53 MB, free: 6.391 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.598/1.598, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.001368/0.001368, allocations: 47.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.238, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01089/0.2489, allocations: 10.75 MB / 336.1 MB, free: 9.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00813/0.2571, allocations: 3.869 MB / 339.9 MB, free: 5.297 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002231/0.2594, allocations: 63.81 kB / 340 MB, free: 5.234 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00502/0.2644, allocations: 2.231 MB / 342.2 MB, free: 2.996 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006737/0.2712, allocations: 1.832 MB / 344.1 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.2732, allocations: 0.7214 MB / 344.8 MB, free: 444 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006384/0.2796, allocations: 4.269 MB / 349 MB, free: 12.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004689/0.2844, allocations: 2.91 MB / 352 MB, free: 9.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.287, allocations: 1.499 MB / 353.5 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003083/0.2901, allocations: 2.087 MB / 355.5 MB, free: 5.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001015/0.2911, allocations: 296 kB / 355.8 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002307/0.2935, allocations: 0.9323 MB / 356.8 MB, free: 4.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001902/0.2954, allocations: 1.816 MB / 358.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002261/0.2977, allocations: 2.112 MB / 360.7 MB, free: 432 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006647/0.3043, allocations: 6.183 MB / 366.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3043, allocations: 0 / 366.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3044, allocations: 0 / 366.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001299/0.3045, allocations: 0 / 366.9 MB, free: 10.22 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.00804/0.3125, allocations: 4.61 MB / 371.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3126, allocations: 12.03 kB / 371.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007209/0.3198, allocations: 1.918 MB / 373.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.3244, allocations: 2.351 MB / 375.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.3245, allocations: 233.6 kB / 376 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005399/0.3251, allocations: 291.8 kB / 376.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01801/0.3431, allocations: 9.635 MB / 385.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.3433, allocations: 47.61 kB / 386 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004275/0.3437, allocations: 147.8 kB / 386.1 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00287/0.3466, allocations: 1.919 MB / 388 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.3612, allocations: 7.625 MB / 395.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04762/0.4089, allocations: 37.76 MB / 433.4 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007874/0.4168, allocations: 2.882 MB / 436.3 MB, free: 2.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001887/0.4188, allocations: 0.873 MB / 437.2 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007297/0.4261, allocations: 3.77 MB / 440.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/0.4262, allocations: 47.22 kB / 441 MB, free: 13.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.941e-06/0.4262, allocations: 0 / 441 MB, free: 13.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02413/0.4504, allocations: 9.075 MB / 450.1 MB, free: 4.449 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.805e-05/0.4505, allocations: 141.5 kB / 450.2 MB, free: 4.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007202/0.4577, allocations: 3.94 MB / 454.1 MB, free: 368 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.458, allocations: 49.69 kB / 454.2 MB, free: 312 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2107/0.6687, allocations: 3.079 MB / 457.3 MB, free: 110.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006541/0.6694, allocations: 0.6139 MB / 457.9 MB, free: 110.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/0.6711, allocations: 1.164 MB / 459 MB, free: 109.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.882e-05/0.6712, allocations: 304.9 kB / 459.3 MB, free: 109.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002418/0.6736, allocations: 1.585 MB / 460.9 MB, free: 108.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003852/0.6775, allocations: 5.358 MB / 466.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00599/0.6835, allocations: 7.541 MB / 473.8 MB, free: 96.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.244e-05/0.6836, allocations: 43 kB / 473.9 MB, free: 96.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009203/0.6928, allocations: 6.659 MB / 480.5 MB, free: 93.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.413e-05/0.6929, allocations: 60 kB / 480.6 MB, free: 93.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001163/0.693, allocations: 139.1 kB / 480.7 MB, free: 93.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000129/0.6931, allocations: 176 kB / 480.9 MB, free: 92.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/0.6965, allocations: 1.382 MB / 482.3 MB, free: 91.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001369/0.6967, allocations: 261.6 kB / 482.5 MB, free: 91.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/0.7, allocations: 290.9 kB / 482.8 MB, free: 91.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003202/0.7003, allocations: 370.4 kB / 483.2 MB, free: 90.81 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.002073/0.7024, allocations: 1.976 MB / 485.1 MB, free: 89.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003818/0.7028, allocations: 339.6 kB / 485.5 MB, free: 88.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.7044, allocations: 1.249 MB / 486.7 MB, free: 87.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.7044, allocations: 19.94 kB / 486.7 MB, free: 87.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.7045, allocations: 4 kB / 486.7 MB, free: 87.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.7045, allocations: 8.812 kB / 486.8 MB, free: 87.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00732/0.7118, allocations: 5.743 MB / 492.5 MB, free: 81.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.692e-05/0.7118, allocations: 16 kB / 492.5 MB, free: 81.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008277/0.7127, allocations: 276.5 kB / 492.8 MB, free: 81.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.702e-05/0.7127, allocations: 28 kB / 492.8 MB, free: 81.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-05/0.7128, allocations: 55.98 kB / 492.9 MB, free: 81.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.811e-05/0.7128, allocations: 36.73 kB / 492.9 MB, free: 81.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/0.7128, allocations: 31.88 kB / 492.9 MB, free: 81.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002909/0.7157, allocations: 3.219 MB / 496.2 MB, free: 77.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009883/0.7167, allocations: 0.5061 MB / 496.7 MB, free: 77.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.7171, allocations: 51.98 kB / 496.7 MB, free: 77.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.7181, allocations: 63.95 kB / 496.8 MB, free: 77.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.7182, allocations: 147.4 kB / 496.9 MB, free: 76.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-05/0.7183, allocations: 68.88 kB / 497 MB, free: 76.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002882/0.7212, allocations: 2.446 MB / 499.4 MB, free: 74.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7212, allocations: 0 / 499.4 MB, free: 74.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004443/0.7257, allocations: 0.8695 MB / 0.4886 GB, free: 73.53 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.0003791/0.7261, allocations: 202.2 kB / 0.4888 GB, free: 73.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005164/0.7312, allocations: 3.818 MB / 0.4925 GB, free: 69.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.7313, allocations: 4.562 kB / 0.4925 GB, free: 69.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008013/0.7321, allocations: 0.734 MB / 0.4932 GB, free: 68.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.7348, allocations: 453 kB / 0.4936 GB, free: 68.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.7462, allocations: 8.646 MB / 0.5021 GB, free: 59.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/0.7487, allocations: 3.103 MB / 0.5051 GB, free: 56.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003811/0.7525, allocations: 1.772 MB / 0.5069 GB, free: 54.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004238/0.7529, allocations: 231.4 kB / 0.5071 GB, free: 54.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.753, allocations: 4 kB / 0.5071 GB, free: 54.33 MB / 382.1 MB Notification: Performance of Templates: time 0.04767/0.8006, allocations: 27.21 MB / 0.5337 GB, free: 27.16 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)