Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001272/0.001272, allocations: 98.27 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.008193/0.008193, allocations: 171.7 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.519/1.519, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004822/0.0004823, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2902, allocations: 47.59 MB / 327 MB, free: 1.363 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04745/0.3377, allocations: 45.72 MB / 372.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02947/0.3673, allocations: 9.901 MB / 382.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01313/0.3805, allocations: 199.5 kB / 382.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.3831, allocations: 465.6 kB / 383.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006838/0.39, allocations: 1.849 MB / 385.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002567/0.3926, allocations: 0.7567 MB / 385.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008942/0.4015, allocations: 6.535 MB / 392.5 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009163/0.4108, allocations: 4.926 MB / 397.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003609/0.4144, allocations: 1.284 MB / 398.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00435/0.4188, allocations: 2.223 MB / 400.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001505/0.4204, allocations: 160 kB / 401 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.4236, allocations: 1.143 MB / 402.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003006/0.4267, allocations: 1.924 MB / 404.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004471/0.4312, allocations: 2.202 MB / 406.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01116/0.4424, allocations: 7.006 MB / 413.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4424, allocations: 4 kB / 413.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4425, allocations: 0 / 413.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003528/0.4428, allocations: 0 / 413.3 MB, free: 12.7 MB / 350.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.01183/0.4547, allocations: 4.33 MB / 417.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.4547, allocations: 8.031 kB / 417.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009191/0.4639, allocations: 2.163 MB / 419.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005964/0.47, allocations: 2.594 MB / 422.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/0.4704, allocations: 274.9 kB / 422.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002142/0.4725, allocations: 431.6 kB / 423.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02614/0.4987, allocations: 12.24 MB / 435.3 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.4989, allocations: 51.52 kB / 435.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005172/0.4994, allocations: 175.8 kB / 435.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003565/0.503, allocations: 2.162 MB / 437.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02335/0.5264, allocations: 10.23 MB / 448 MB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2749/0.8013, allocations: 44.31 MB / 492.3 MB, free: 79.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/0.8121, allocations: 4.61 MB / 496.9 MB, free: 76.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002197/0.8143, allocations: 1.727 MB / 498.6 MB, free: 75.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.8248, allocations: 8.231 MB / 0.495 GB, free: 68.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.8249, allocations: 58.62 kB / 0.495 GB, free: 68.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 5.52e-06/0.8249, allocations: 0 / 0.495 GB, free: 68.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03771/0.8626, allocations: 15.97 MB / 0.5106 GB, free: 52.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001024/0.8637, allocations: 1.605 MB / 0.5122 GB, free: 50.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/0.8689, allocations: 4.215 MB / 0.5163 GB, free: 46.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004643/0.8694, allocations: 65.73 kB / 0.5164 GB, free: 46.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001747/0.8712, allocations: 3.395 MB / 0.5197 GB, free: 42.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008471/0.872, allocations: 0.8155 MB / 0.5205 GB, free: 42.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005983/0.8727, allocations: 0.5716 MB / 0.521 GB, free: 41.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.8727, allocations: 305.1 kB / 0.5213 GB, free: 41.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002839/0.8756, allocations: 2.266 MB / 0.5235 GB, free: 38.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00466/0.8802, allocations: 6.398 MB / 0.5298 GB, free: 30.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008298/0.8885, allocations: 9.315 MB / 0.5389 GB, free: 19.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.107e-05/0.8887, allocations: 40 kB / 0.5389 GB, free: 19.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02106/0.9097, allocations: 10.07 MB / 0.5488 GB, free: 9.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.9099, allocations: 69.69 kB / 0.5488 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01087/0.9208, allocations: 3.785 MB / 0.5525 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/0.9313, allocations: 2.164 MB / 0.5546 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005233/0.9365, allocations: 1.583 MB / 0.5562 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008682/0.9452, allocations: 6.067 MB / 0.5621 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005569/0.9509, allocations: 427.4 kB / 0.5625 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/0.9522, allocations: 423.2 kB / 0.5629 GB, free: 10.21 MB / 398.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.005591/0.9578, allocations: 2.212 MB / 0.5651 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0015/0.9593, allocations: 375.1 kB / 0.5654 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008523/0.9678, allocations: 3.299 MB / 0.5686 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005593/0.9735, allocations: 2.745 MB / 0.5713 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/0.9735, allocations: 0 / 0.5713 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.048e-05/0.9735, allocations: 11.97 kB / 0.5713 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02165/0.9952, allocations: 10.35 MB / 0.5814 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.332e-05/0.9953, allocations: 17 kB / 0.5815 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.9969, allocations: 363.4 kB / 0.5818 GB, free: 6.559 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/1, allocations: 0.9864 MB / 0.5828 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003089/1, allocations: 63.97 kB / 0.5828 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005156/1.005, allocations: 4.601 MB / 0.5873 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001103/1.007, allocations: 1.478 MB / 0.5888 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009721/1.016, allocations: 5.904 MB / 0.5945 GB, free: 8.902 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/1.018, allocations: 0.66 MB / 0.5952 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/1.019, allocations: 63.97 kB / 0.5952 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/1.02, allocations: 139.8 kB / 0.5954 GB, free: 8.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003655/1.021, allocations: 180.4 kB / 0.5955 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001501/1.021, allocations: 83.86 kB / 0.5956 GB, free: 7.762 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004759/1.026, allocations: 2.609 MB / 0.5982 GB, free: 5.145 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1.026, allocations: 0 / 0.5982 GB, free: 5.145 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006522/1.032, allocations: 1.165 MB / 0.5993 GB, free: 3.988 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.0006108/1.033, allocations: 223.9 kB / 0.5995 GB, free: 3.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.2239/1.257, allocations: 5.959 MB / 0.6053 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/1.257, allocations: 2.312 kB / 0.6053 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004315/1.261, allocations: 2.189 MB / 0.6075 GB, free: 144.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01038/1.271, allocations: 488.4 kB / 0.608 GB, free: 144.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0202/1.292, allocations: 13.15 MB / 0.6208 GB, free: 137.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003896/1.296, allocations: 3.463 MB / 0.6242 GB, free: 136.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005198/1.301, allocations: 2.021 MB / 0.6262 GB, free: 136.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008568/1.302, allocations: 266.8 kB / 0.6264 GB, free: 136.1 MB / 430.1 MB Notification: Performance of SimCode: time 3.927e-06/1.302, allocations: 0 / 0.6264 GB, free: 136.1 MB / 430.1 MB Notification: Performance of Templates: time 0.06969/1.371, allocations: 40.26 MB / 0.6657 GB, free: 97.65 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)