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.001039/0.001039, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001108/0.001108, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.477/1.477, allocations: 205.1 MB / 222.1 MB, free: 4.719 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.001201/0.001201, allocations: 59.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2604, allocations: 46.63 MB / 324.9 MB, free: 2.074 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03669/0.2972, allocations: 38.69 MB / 363.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02361/0.3208, allocations: 8.396 MB / 371.9 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01112/0.3321, allocations: 163.6 kB / 372.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005937/0.3381, allocations: 2.142 MB / 374.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006869/0.345, allocations: 1.705 MB / 375.9 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002537/0.3476, allocations: 0.671 MB / 376.6 MB, free: 288 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008213/0.3558, allocations: 4.289 MB / 380.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005792/0.3616, allocations: 3.078 MB / 384 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003643/0.3653, allocations: 1.526 MB / 385.5 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003969/0.3693, allocations: 2.317 MB / 387.8 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001616/0.371, allocations: 292 kB / 388.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003228/0.3743, allocations: 0.944 MB / 389.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003117/0.3774, allocations: 1.851 MB / 390.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004663/0.3821, allocations: 2.136 MB / 393 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009603/0.3917, allocations: 6.226 MB / 399.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.3918, allocations: 0 / 399.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.3918, allocations: 0 / 399.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003796/0.3922, allocations: 0 / 399.3 MB, free: 9.504 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.01351/0.4057, allocations: 4.603 MB / 403.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.4058, allocations: 12.03 kB / 403.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008442/0.4143, allocations: 1.926 MB / 405.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007165/0.4215, allocations: 2.347 MB / 408.2 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003911/0.4219, allocations: 225.6 kB / 408.4 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001796/0.4237, allocations: 295.8 kB / 408.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02166/0.4454, allocations: 9.643 MB / 418.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002735/0.4457, allocations: 47.53 kB / 418.4 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/0.447, allocations: 151.8 kB / 418.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00329/0.4503, allocations: 1.911 MB / 420.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.4676, allocations: 7.633 MB / 428 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2332/0.7008, allocations: 37.76 MB / 465.8 MB, free: 86.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006216/0.7071, allocations: 2.876 MB / 468.7 MB, free: 86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.7082, allocations: 0.8771 MB / 469.6 MB, free: 85.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005225/0.7134, allocations: 3.759 MB / 473.3 MB, free: 83.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.7135, allocations: 43.66 kB / 473.4 MB, free: 83.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.947e-06/0.7135, allocations: 0 / 473.4 MB, free: 83.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01897/0.7324, allocations: 9.076 MB / 482.4 MB, free: 79.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.7325, allocations: 149.3 kB / 482.6 MB, free: 78.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004521/0.7371, allocations: 3.941 MB / 486.5 MB, free: 76.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001382/0.7372, allocations: 45.7 kB / 486.6 MB, free: 76.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001439/0.7387, allocations: 3.09 MB / 489.7 MB, free: 73.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004042/0.7391, allocations: 0.6011 MB / 490.3 MB, free: 72.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/0.7401, allocations: 1.17 MB / 491.4 MB, free: 71.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.7402, allocations: 304.9 kB / 491.7 MB, free: 71.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/0.742, allocations: 1.581 MB / 493.3 MB, free: 69.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003407/0.7454, allocations: 5.347 MB / 498.7 MB, free: 62.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005555/0.751, allocations: 7.553 MB / 0.4943 GB, free: 53.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.458e-05/0.7511, allocations: 39.94 kB / 0.4944 GB, free: 53.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008905/0.76, allocations: 6.656 MB / 0.5009 GB, free: 46.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.585e-05/0.7601, allocations: 68.03 kB / 0.501 GB, free: 46.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.176e-05/0.7602, allocations: 132 kB / 0.5011 GB, free: 46.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001195/0.7603, allocations: 176 kB / 0.5012 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00313/0.7635, allocations: 1.384 MB / 0.5026 GB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001378/0.7636, allocations: 263 kB / 0.5028 GB, free: 44.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003624/0.7672, allocations: 291.5 kB / 0.5031 GB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/0.7676, allocations: 368 kB / 0.5035 GB, free: 44.18 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.002369/0.7699, allocations: 1.976 MB / 0.5054 GB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004654/0.7704, allocations: 339.2 kB / 0.5057 GB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.7721, allocations: 1.25 MB / 0.5069 GB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.7721, allocations: 20 kB / 0.507 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.7721, allocations: 0 / 0.507 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.7721, allocations: 3.984 kB / 0.507 GB, free: 40.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007265/0.7794, allocations: 5.758 MB / 0.5126 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.7794, allocations: 20 kB / 0.5126 GB, free: 34.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008099/0.7802, allocations: 275.4 kB / 0.5129 GB, free: 34.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.7803, allocations: 28.72 kB / 0.5129 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.821e-05/0.7803, allocations: 55.92 kB / 0.513 GB, free: 34.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.147e-05/0.7804, allocations: 43.86 kB / 0.513 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.525e-05/0.7804, allocations: 27.88 kB / 0.513 GB, free: 34.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002894/0.7833, allocations: 3.216 MB / 0.5162 GB, free: 30.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000779/0.7841, allocations: 0.5083 MB / 0.5167 GB, free: 30.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.7844, allocations: 51.92 kB / 0.5167 GB, free: 30.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009735/0.7854, allocations: 55.95 kB / 0.5168 GB, free: 29.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.7855, allocations: 151.4 kB / 0.5169 GB, free: 29.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.766e-05/0.7856, allocations: 72 kB / 0.517 GB, free: 29.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00273/0.7883, allocations: 2.446 MB / 0.5194 GB, free: 27.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7883, allocations: 0 / 0.5194 GB, free: 27.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004203/0.7925, allocations: 0.869 MB / 0.5202 GB, free: 26.47 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.0003459/0.7929, allocations: 205 kB / 0.5204 GB, free: 26.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004853/0.7978, allocations: 3.821 MB / 0.5241 GB, free: 22.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/0.7978, allocations: 4 kB / 0.5241 GB, free: 22.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007585/0.7986, allocations: 0.7261 MB / 0.5249 GB, free: 21.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002473/0.801, allocations: 449.9 kB / 0.5253 GB, free: 21.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/0.8134, allocations: 10.54 MB / 0.5356 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00348/0.8169, allocations: 3.107 MB / 0.5386 GB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004261/0.8212, allocations: 1.768 MB / 0.5403 GB, free: 5.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007545/0.8219, allocations: 231.4 kB / 0.5406 GB, free: 5.379 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.822, allocations: 0 / 0.5406 GB, free: 5.379 MB / 382.1 MB Notification: Performance of Templates: time 0.05538/0.8773, allocations: 27.19 MB / 0.5671 GB, free: 10.22 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)