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.0008497/0.0008496, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0009575/0.0009575, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.4 MB / 222.1 MB, free: 5.473 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.0004545/0.0004546, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2612, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03388/0.2951, allocations: 35 MB / 361.5 MB, free: 404 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02256/0.3178, allocations: 8.02 MB / 369.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008974/0.3268, allocations: 167.6 kB / 369.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00715/0.334, allocations: 1.781 MB / 371.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01778/0.3518, allocations: 5.518 MB / 377 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.355, allocations: 0.628 MB / 377.6 MB, free: 236 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007064/0.3621, allocations: 4.714 MB / 382.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006801/0.3689, allocations: 3.376 MB / 385.7 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003074/0.372, allocations: 1.265 MB / 386.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003652/0.3757, allocations: 2.01 MB / 389 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001278/0.377, allocations: 144 kB / 389.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002847/0.3799, allocations: 0.7177 MB / 389.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.3823, allocations: 1.648 MB / 391.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/0.3836, allocations: 0.7804 MB / 392.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005954/0.3896, allocations: 4.848 MB / 397.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3896, allocations: 7.938 kB / 397.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3896, allocations: 0 / 397.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002193/0.3898, allocations: 0 / 397.1 MB, free: 12.62 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.007879/0.3977, allocations: 3.858 MB / 401 MB, free: 8.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3978, allocations: 12.02 kB / 401 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007267/0.4051, allocations: 1.975 MB / 402.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004857/0.4099, allocations: 2.297 MB / 405.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.4102, allocations: 233.6 kB / 405.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000573/0.4108, allocations: 295.8 kB / 405.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.428, allocations: 9.624 MB / 415.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.4281, allocations: 51.53 kB / 415.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003554/0.4285, allocations: 143.9 kB / 415.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002765/0.4313, allocations: 1.927 MB / 417.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/0.4481, allocations: 7.606 MB / 425.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2656/0.7138, allocations: 37.74 MB / 462.8 MB, free: 86.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006042/0.7198, allocations: 2.879 MB / 465.7 MB, free: 85.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.7209, allocations: 0.8705 MB / 466.6 MB, free: 85.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004797/0.7257, allocations: 3.766 MB / 470.4 MB, free: 83.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.7257, allocations: 47.84 kB / 470.4 MB, free: 83.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.066e-06/0.7257, allocations: 0 / 470.4 MB, free: 83.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.01773/0.7435, allocations: 9.06 MB / 479.5 MB, free: 79.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.7436, allocations: 143.2 kB / 479.6 MB, free: 79.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004312/0.7479, allocations: 3.917 MB / 483.5 MB, free: 77.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.748, allocations: 47.95 kB / 483.6 MB, free: 77.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/0.7494, allocations: 3.088 MB / 486.7 MB, free: 74.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003816/0.7498, allocations: 0.6072 MB / 487.3 MB, free: 74.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.75, allocations: 116.6 kB / 487.4 MB, free: 74.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.7502, allocations: 0.5504 MB / 487.9 MB, free: 73.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.7522, allocations: 1.561 MB / 489.5 MB, free: 72.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003437/0.7556, allocations: 5.337 MB / 494.8 MB, free: 64.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003126/0.7588, allocations: 2.814 MB / 497.6 MB, free: 62.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.974e-05/0.7588, allocations: 40 kB / 497.7 MB, free: 62.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008973/0.7678, allocations: 6.615 MB / 0.4925 GB, free: 55.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.7679, allocations: 64 kB / 0.4925 GB, free: 55.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.595e-05/0.768, allocations: 132.5 kB / 0.4927 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001423/0.7681, allocations: 196 kB / 0.4928 GB, free: 55.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003271/0.7714, allocations: 1.384 MB / 0.4942 GB, free: 53.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001448/0.7716, allocations: 263 kB / 0.4944 GB, free: 53.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0033/0.7749, allocations: 294.8 kB / 0.4947 GB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003291/0.7752, allocations: 374 kB / 0.4951 GB, free: 53.07 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002375/0.7776, allocations: 1.972 MB / 0.497 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.7781, allocations: 339.6 kB / 0.4973 GB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.7797, allocations: 1.246 MB / 0.4986 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.7798, allocations: 17.8 kB / 0.4986 GB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.7798, allocations: 0 / 0.4986 GB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.7798, allocations: 7.984 kB / 0.4986 GB, free: 49.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007408/0.7872, allocations: 5.746 MB / 0.5042 GB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.7873, allocations: 21.08 kB / 0.5042 GB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008404/0.7881, allocations: 275.5 kB / 0.5045 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-05/0.7881, allocations: 35.98 kB / 0.5045 GB, free: 43.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.992e-05/0.7882, allocations: 53.55 kB / 0.5046 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-05/0.7882, allocations: 35.86 kB / 0.5046 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.7883, allocations: 31.88 kB / 0.5046 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002995/0.7913, allocations: 3.198 MB / 0.5077 GB, free: 39.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008927/0.7922, allocations: 0.5161 MB / 0.5082 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003048/0.7925, allocations: 53.23 kB / 0.5083 GB, free: 38.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009637/0.7935, allocations: 59.97 kB / 0.5084 GB, free: 38.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.7936, allocations: 147.4 kB / 0.5085 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.508e-05/0.7937, allocations: 65.41 kB / 0.5086 GB, free: 38.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002957/0.7967, allocations: 2.435 MB / 0.5109 GB, free: 36.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7967, allocations: 0 / 0.5109 GB, free: 36.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004359/0.801, allocations: 0.8597 MB / 0.5118 GB, free: 35.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003732/0.8014, allocations: 206.7 kB / 0.512 GB, free: 35.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005034/0.8065, allocations: 3.608 MB / 0.5155 GB, free: 31.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.8065, allocations: 4.75 kB / 0.5155 GB, free: 31.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007983/0.8073, allocations: 0.7272 MB / 0.5162 GB, free: 30.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.8097, allocations: 442.5 kB / 0.5166 GB, free: 30.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.8225, allocations: 10.19 MB / 0.5266 GB, free: 19.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002602/0.8252, allocations: 3.111 MB / 0.5296 GB, free: 16.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00378/0.829, allocations: 1.763 MB / 0.5313 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004426/0.8294, allocations: 235.4 kB / 0.5316 GB, free: 14.85 MB / 382.1 MB Notification: Performance of SimCode: time 1.963e-06/0.8295, allocations: 0 / 0.5316 GB, free: 14.85 MB / 382.1 MB Notification: Performance of Templates: time 0.04706/0.8765, allocations: 25.55 MB / 0.5565 GB, free: 5.332 MB / 398.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)