Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001534/0.001534, allocations: 108 kB / 15.61 MB, free: 152 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.001507/0.001507, allocations: 197.7 kB / 16.53 MB, free: 6.664 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.375/1.375, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001301/0.001301, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.254, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01406/0.2681, allocations: 12.04 MB / 337.3 MB, free: 7.852 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009763/0.2779, allocations: 4.193 MB / 341.5 MB, free: 3.645 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003137/0.2811, allocations: 71.81 kB / 341.6 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00555/0.2867, allocations: 2.752 MB / 344.4 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006316/0.293, allocations: 1.972 MB / 346.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002364/0.2954, allocations: 0.815 MB / 347.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008023/0.3034, allocations: 4.64 MB / 351.8 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004878/0.3084, allocations: 3.553 MB / 355.3 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003225/0.3116, allocations: 1.694 MB / 357 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004254/0.3159, allocations: 2.34 MB / 359.4 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001128/0.3171, allocations: 352 kB / 359.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.3202, allocations: 1.272 MB / 361 MB, free: 104 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002754/0.323, allocations: 2.116 MB / 363.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003831/0.3268, allocations: 2.431 MB / 365.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009653/0.3365, allocations: 7.266 MB / 372.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3366, allocations: 0 / 372.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3366, allocations: 0 / 372.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002319/0.3368, allocations: 0 / 372.8 MB, free: 4.246 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01203/0.3489, allocations: 5.281 MB / 378.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3489, allocations: 8.031 kB / 378.1 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008155/0.3571, allocations: 2.112 MB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005948/0.3631, allocations: 2.594 MB / 382.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002493/0.3633, allocations: 278.8 kB / 383.1 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.3646, allocations: 431.6 kB / 383.5 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02563/0.3903, allocations: 12.22 MB / 395.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002917/0.3906, allocations: 51.53 kB / 395.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001508/0.3921, allocations: 171.8 kB / 395.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003603/0.3958, allocations: 2.166 MB / 398.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02547/0.4213, allocations: 10.2 MB / 408.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0669/0.4882, allocations: 44.32 MB / 452.6 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2447/0.7329, allocations: 4.603 MB / 457.2 MB, free: 109.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002781/0.7358, allocations: 1.718 MB / 458.9 MB, free: 109.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.7475, allocations: 8.236 MB / 467.2 MB, free: 105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.912e-05/0.7476, allocations: 55.62 kB / 467.2 MB, free: 105 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 4.429e-06/0.7476, allocations: 0 / 467.2 MB, free: 105 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.04149/0.7891, allocations: 15.95 MB / 483.2 MB, free: 94.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001116/0.7903, allocations: 1.692 MB / 484.9 MB, free: 92.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006378/0.7967, allocations: 4.219 MB / 489.1 MB, free: 88.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004588/0.7972, allocations: 57.53 kB / 489.2 MB, free: 88.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.7987, allocations: 3.4 MB / 492.6 MB, free: 84.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009294/0.7996, allocations: 0.8077 MB / 493.4 MB, free: 83.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001475/0.8011, allocations: 1.358 MB / 494.7 MB, free: 82.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.56e-05/0.8011, allocations: 301.1 kB / 495 MB, free: 82.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00284/0.804, allocations: 2.266 MB / 497.3 MB, free: 79.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004147/0.8081, allocations: 6.393 MB / 0.4919 GB, free: 71.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008222/0.8164, allocations: 9.323 MB / 0.501 GB, free: 60.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/0.8165, allocations: 40 kB / 0.501 GB, free: 60.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02175/0.8383, allocations: 10.07 MB / 0.5108 GB, free: 50.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.827e-05/0.8384, allocations: 72.06 kB / 0.5109 GB, free: 49.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01022/0.8487, allocations: 3.8 MB / 0.5146 GB, free: 46.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009796/0.8585, allocations: 2.168 MB / 0.5167 GB, free: 44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005008/0.8635, allocations: 1.583 MB / 0.5183 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007604/0.8712, allocations: 6.596 MB / 0.5247 GB, free: 35.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/0.8771, allocations: 435 kB / 0.5251 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/0.8784, allocations: 416 kB / 0.5255 GB, free: 34.7 MB / 382.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.003684/0.8821, allocations: 2.22 MB / 0.5277 GB, free: 32.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007137/0.8828, allocations: 375.2 kB / 0.5281 GB, free: 32.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/0.8885, allocations: 3.285 MB / 0.5313 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004335/0.8928, allocations: 2.746 MB / 0.5339 GB, free: 26.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/0.8928, allocations: 4 kB / 0.534 GB, free: 26.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.8929, allocations: 7.969 kB / 0.534 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/0.9078, allocations: 10.35 MB / 0.5441 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/0.9079, allocations: 12 kB / 0.5441 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.9093, allocations: 371.3 kB / 0.5444 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002688/0.912, allocations: 0.9909 MB / 0.5454 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.9122, allocations: 63.97 kB / 0.5455 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003959/0.9161, allocations: 4.898 MB / 0.5502 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000772/0.9169, allocations: 1.561 MB / 0.5518 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007792/0.9247, allocations: 5.92 MB / 0.5576 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/0.9265, allocations: 0.6561 MB / 0.5582 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004903/0.927, allocations: 55.98 kB / 0.5582 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/0.9287, allocations: 147.8 kB / 0.5584 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003293/0.929, allocations: 176.4 kB / 0.5586 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9292, allocations: 75.97 kB / 0.5586 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004404/0.9336, allocations: 2.609 MB / 0.5612 GB, free: 13.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9336, allocations: 0 / 0.5612 GB, free: 13.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007033/0.9406, allocations: 1.161 MB / 0.5623 GB, free: 12.07 MB / 398.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.0006431/0.9413, allocations: 220.7 kB / 0.5625 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01328/0.9546, allocations: 6.675 MB / 0.569 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/0.9546, allocations: 4 kB / 0.569 GB, free: 5.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004402/0.959, allocations: 2.193 MB / 0.5712 GB, free: 2.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/0.9626, allocations: 0.5013 MB / 0.5717 GB, free: 2.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/0.984, allocations: 10.76 MB / 0.5822 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004498/0.9885, allocations: 3.459 MB / 0.5856 GB, free: 3.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005233/0.9938, allocations: 2.03 MB / 0.5875 GB, free: 1.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007658/0.9945, allocations: 279.4 kB / 0.5878 GB, free: 1.629 MB / 414.1 MB Notification: Performance of SimCode: time 1.233e-06/0.9946, allocations: 0 / 0.5878 GB, free: 1.629 MB / 414.1 MB Notification: Performance of Templates: time 0.2745/1.269, allocations: 42.16 MB / 0.629 GB, free: 125.2 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)