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.0008301/0.0008304, allocations: 97.33 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005894/0.005894, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.638/1.638, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.000484/0.0004841, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2482, allocations: 47.59 MB / 327 MB, free: 1.516 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03551/0.2837, allocations: 37.61 MB / 364.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02231/0.3061, allocations: 8.424 MB / 373.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008971/0.3151, allocations: 167.6 kB / 373.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.3171, allocations: 417.9 kB / 373.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005881/0.323, allocations: 1.721 MB / 375.4 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001793/0.3248, allocations: 0.6592 MB / 376 MB, free: 2.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008643/0.3335, allocations: 5.919 MB / 381.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006463/0.34, allocations: 3.708 MB / 385.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002623/0.3426, allocations: 1.167 MB / 386.8 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.3463, allocations: 2.028 MB / 388.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008434/0.3472, allocations: 144 kB / 389 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3494, allocations: 0.8385 MB / 389.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.3513, allocations: 1.671 MB / 391.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002636/0.3539, allocations: 1.942 MB / 393.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00792/0.3619, allocations: 5.959 MB / 399.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.096e-05/0.362, allocations: 0 / 399.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.131e-06/0.362, allocations: 0 / 399.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003653/0.3624, allocations: 0 / 399.4 MB, free: 10.8 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.01126/0.3736, allocations: 3.811 MB / 403.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.235e-05/0.3737, allocations: 12.03 kB / 403.2 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008273/0.382, allocations: 1.972 MB / 405.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006579/0.3886, allocations: 2.343 MB / 407.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.389, allocations: 229.6 kB / 407.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.3901, allocations: 295.8 kB / 408 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/0.4088, allocations: 9.663 MB / 417.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001569/0.409, allocations: 47.53 kB / 417.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004442/0.4095, allocations: 147.8 kB / 417.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003251/0.4128, allocations: 1.927 MB / 419.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/0.4298, allocations: 7.645 MB / 427.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2843/0.7142, allocations: 37.77 MB / 465.2 MB, free: 85.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006346/0.7206, allocations: 2.886 MB / 468.1 MB, free: 85.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.7217, allocations: 0.8663 MB / 469 MB, free: 85.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/0.7271, allocations: 3.766 MB / 472.8 MB, free: 83.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.7272, allocations: 52.47 kB / 472.8 MB, free: 83.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.588e-06/0.7272, allocations: 0 / 472.8 MB, free: 83.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02106/0.7483, allocations: 9.075 MB / 481.9 MB, free: 79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.7484, allocations: 150.3 kB / 482 MB, free: 78.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005476/0.7539, allocations: 3.939 MB / 486 MB, free: 76.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003178/0.7542, allocations: 45.73 kB / 486 MB, free: 76.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002576/0.7568, allocations: 3.08 MB / 489.1 MB, free: 74.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007487/0.7576, allocations: 0.6146 MB / 489.7 MB, free: 73.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005172/0.7581, allocations: 0.4912 MB / 490.2 MB, free: 72.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/0.7582, allocations: 305 kB / 490.5 MB, free: 72.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.7604, allocations: 1.584 MB / 492.1 MB, free: 71.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003487/0.7639, allocations: 5.35 MB / 497.4 MB, free: 63.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006288/0.7702, allocations: 7.544 MB / 0.4931 GB, free: 54.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-05/0.7703, allocations: 40 kB / 0.4932 GB, free: 54.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009286/0.7796, allocations: 6.667 MB / 0.4997 GB, free: 48.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.7797, allocations: 60 kB / 0.4997 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.7798, allocations: 136 kB / 0.4999 GB, free: 47.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001244/0.7799, allocations: 176.8 kB / 0.5 GB, free: 47.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003486/0.7834, allocations: 1.384 MB / 0.5014 GB, free: 46.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001381/0.7836, allocations: 270.9 kB / 0.5017 GB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/0.7871, allocations: 288.6 kB / 0.5019 GB, free: 45.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/0.7876, allocations: 364 kB / 0.5023 GB, free: 45.38 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.002765/0.7904, allocations: 1.984 MB / 0.5042 GB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006205/0.791, allocations: 331.7 kB / 0.5045 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.7929, allocations: 1.25 MB / 0.5058 GB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.793, allocations: 19.98 kB / 0.5058 GB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.793, allocations: 3.938 kB / 0.5058 GB, free: 41.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.793, allocations: 11.98 kB / 0.5058 GB, free: 41.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007486/0.8005, allocations: 5.745 MB / 0.5114 GB, free: 35.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/0.8006, allocations: 20 kB / 0.5114 GB, free: 35.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008246/0.8014, allocations: 271.5 kB / 0.5117 GB, free: 35.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.836e-05/0.8014, allocations: 28 kB / 0.5117 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.8015, allocations: 48 kB / 0.5117 GB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.951e-05/0.8015, allocations: 39.86 kB / 0.5118 GB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-05/0.8015, allocations: 27.88 kB / 0.5118 GB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002977/0.8045, allocations: 3.231 MB / 0.515 GB, free: 31.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009459/0.8055, allocations: 0.5122 MB / 0.5155 GB, free: 31.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.8058, allocations: 48.45 kB / 0.5155 GB, free: 31.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.8068, allocations: 63.95 kB / 0.5156 GB, free: 31.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.8069, allocations: 147.4 kB / 0.5157 GB, free: 31.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.549e-05/0.807, allocations: 68 kB / 0.5158 GB, free: 30.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003247/0.8103, allocations: 2.446 MB / 0.5182 GB, free: 28.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8103, allocations: 7.938 kB / 0.5182 GB, free: 28.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005355/0.8156, allocations: 0.8736 MB / 0.519 GB, free: 27.65 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.0003686/0.816, allocations: 196.6 kB / 0.5192 GB, free: 27.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005798/0.8218, allocations: 3.638 MB / 0.5228 GB, free: 23.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.052e-05/0.8219, allocations: 4 kB / 0.5228 GB, free: 23.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.8229, allocations: 0.722 MB / 0.5235 GB, free: 23.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01185/0.8348, allocations: 460.5 kB / 0.5239 GB, free: 22.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/0.8494, allocations: 10.63 MB / 0.5343 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003344/0.8527, allocations: 3.103 MB / 0.5373 GB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003798/0.8566, allocations: 1.768 MB / 0.5391 GB, free: 6.859 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/0.857, allocations: 235.4 kB / 0.5393 GB, free: 6.629 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.857, allocations: 0 / 0.5393 GB, free: 6.629 MB / 382.1 MB Notification: Performance of Templates: time 0.05396/0.911, allocations: 26.07 MB / 0.5647 GB, free: 12.59 MB / 414.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)