Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 104.3 kB / 16.92 MB, free: 5.793 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.001609/0.001609, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.491/1.491, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001281/0.001281, allocations: 47.94 kB / 280 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09749/0.09878, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01362/0.1125, allocations: 12.03 MB / 338.7 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009293/0.1218, allocations: 4.208 MB / 342.9 MB, free: 4.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002536/0.1244, allocations: 67.81 kB / 342.9 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005567/0.13, allocations: 2.745 MB / 345.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006618/0.1367, allocations: 1.976 MB / 347.7 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002273/0.139, allocations: 0.8072 MB / 348.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006802/0.1458, allocations: 4.632 MB / 353.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005259/0.1511, allocations: 3.552 MB / 356.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.1542, allocations: 1.701 MB / 358.3 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003795/0.1581, allocations: 2.34 MB / 360.7 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001434/0.1595, allocations: 355.9 kB / 361 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003086/0.1626, allocations: 1.276 MB / 362.3 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002835/0.1655, allocations: 2.104 MB / 364.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003626/0.1691, allocations: 2.427 MB / 366.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008515/0.1776, allocations: 7.27 MB / 374.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1777, allocations: 0 / 374.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1777, allocations: 0 / 374.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002019/0.1779, allocations: 0 / 374.1 MB, free: 4.773 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.1741/0.352, allocations: 5.28 MB / 379.4 MB, free: 50.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.3521, allocations: 9.625 kB / 379.4 MB, free: 50.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009916/0.362, allocations: 2.117 MB / 381.5 MB, free: 49.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005922/0.3679, allocations: 2.581 MB / 384.1 MB, free: 48.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000305/0.3683, allocations: 274.8 kB / 384.4 MB, free: 48.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001505/0.3698, allocations: 437.8 kB / 384.8 MB, free: 48.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0236/0.3934, allocations: 12.21 MB / 397 MB, free: 41.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.3936, allocations: 49.97 kB / 397.1 MB, free: 41.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004472/0.394, allocations: 176.8 kB / 397.2 MB, free: 41.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002613/0.3967, allocations: 2.165 MB / 399.4 MB, free: 39.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/0.4166, allocations: 10.2 MB / 409.6 MB, free: 29.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05004/0.4667, allocations: 44.33 MB / 453.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.4791, allocations: 4.604 MB / 458.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002795/0.4819, allocations: 1.729 MB / 460.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.495, allocations: 8.24 MB / 468.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.4951, allocations: 51.88 kB / 468.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=183): time 7.624e-06/0.4951, allocations: 1.688 kB / 468.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=205): time 0.04023/0.5354, allocations: 15.95 MB / 484.5 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00133/0.5367, allocations: 1.693 MB / 486.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005587/0.5423, allocations: 4.207 MB / 490.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000411/0.5428, allocations: 57.7 kB / 490.5 MB, free: 10.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002186/0.545, allocations: 3.404 MB / 493.9 MB, free: 6.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.546, allocations: 0.8103 MB / 494.7 MB, free: 6.059 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001797/0.5478, allocations: 1.361 MB / 496 MB, free: 4.688 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.5479, allocations: 309.1 kB / 496.3 MB, free: 4.383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/0.5514, allocations: 2.262 MB / 498.6 MB, free: 2.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006324/0.5577, allocations: 6.398 MB / 0.4932 GB, free: 9.668 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/0.5698, allocations: 9.315 MB / 0.5023 GB, free: 14.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/0.5699, allocations: 44 kB / 0.5023 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02387/0.5938, allocations: 10.06 MB / 0.5121 GB, free: 4.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.216e-05/0.5939, allocations: 76 kB / 0.5122 GB, free: 4.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0113/0.6052, allocations: 3.789 MB / 0.5159 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/0.616, allocations: 2.168 MB / 0.518 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005093/0.6211, allocations: 1.587 MB / 0.5196 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009094/0.6302, allocations: 6.601 MB / 0.526 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005362/0.6356, allocations: 431.5 kB / 0.5264 GB, free: 5.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001109/0.6367, allocations: 416 kB / 0.5268 GB, free: 4.812 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003402/0.6401, allocations: 2.216 MB / 0.529 GB, free: 2.586 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000646/0.6408, allocations: 379.1 kB / 0.5293 GB, free: 2.211 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1717/0.8125, allocations: 3.277 MB / 0.5325 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005746/0.8183, allocations: 2.747 MB / 0.5352 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.8184, allocations: 1.406 kB / 0.5352 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.744e-05/0.8184, allocations: 12.72 kB / 0.5352 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/0.8385, allocations: 10.34 MB / 0.5453 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.989e-05/0.8385, allocations: 11.75 kB / 0.5454 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/0.8402, allocations: 368.1 kB / 0.5457 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003044/0.8433, allocations: 0.9921 MB / 0.5467 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/0.8437, allocations: 66.02 kB / 0.5467 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/0.848, allocations: 4.899 MB / 0.5515 GB, free: 135 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008568/0.8489, allocations: 1.555 MB / 0.553 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00855/0.8575, allocations: 5.916 MB / 0.5588 GB, free: 131 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/0.8593, allocations: 0.6548 MB / 0.5595 GB, free: 130.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008484/0.8601, allocations: 59.38 kB / 0.5595 GB, free: 130.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001852/0.862, allocations: 142.2 kB / 0.5596 GB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/0.8624, allocations: 174.4 kB / 0.5598 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001401/0.8625, allocations: 75.02 kB / 0.5599 GB, free: 130.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003871/0.8664, allocations: 2.608 MB / 0.5624 GB, free: 129.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8664, allocations: 0 / 0.5624 GB, free: 129.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005799/0.8722, allocations: 1.169 MB / 0.5636 GB, free: 129.1 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005587/0.8728, allocations: 219.2 kB / 0.5638 GB, free: 128.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01097/0.8838, allocations: 6.68 MB / 0.5703 GB, free: 123.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.666e-05/0.8839, allocations: 4 kB / 0.5703 GB, free: 123.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00392/0.8878, allocations: 2.197 MB / 0.5725 GB, free: 121.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003575/0.8914, allocations: 0.4983 MB / 0.5729 GB, free: 120.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.9076, allocations: 10.75 MB / 0.5834 GB, free: 109.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003115/0.9107, allocations: 3.471 MB / 0.5868 GB, free: 106.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004888/0.9156, allocations: 2.022 MB / 0.5888 GB, free: 104.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007522/0.9164, allocations: 267.4 kB / 0.5891 GB, free: 104 MB / 430.1 MB Notification: Performance of SimCode: time 1.333e-06/0.9164, allocations: 0 / 0.5891 GB, free: 104 MB / 430.1 MB Notification: Performance of Templates: time 0.08314/0.9996, allocations: 42.19 MB / 0.6303 GB, free: 61.89 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)