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.01012/0.01012, allocations: 100.1 kB / 15.73 MB, free: 6.035 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.001812/0.001812, allocations: 187.3 kB / 16.67 MB, free: 5.965 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.413/1.413, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.002037/0.002037, allocations: 54.92 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0876/0.08966, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01264/0.1023, allocations: 12.03 MB / 385.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009525/0.1119, allocations: 4.196 MB / 389.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.1145, allocations: 67.81 kB / 389.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00459/0.1191, allocations: 2.756 MB / 392.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.1237, allocations: 1.965 MB / 394.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.1253, allocations: 0.8111 MB / 395 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005342/0.1306, allocations: 4.621 MB / 399.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003552/0.1342, allocations: 3.567 MB / 403.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.1364, allocations: 1.705 MB / 404.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.1392, allocations: 2.336 MB / 407.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000674/0.1399, allocations: 352 kB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.1421, allocations: 1.272 MB / 408.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.144, allocations: 2.112 MB / 411 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002379/0.1464, allocations: 2.423 MB / 413.4 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007375/0.1537, allocations: 7.536 MB / 420.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1538, allocations: 8 kB / 420.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1538, allocations: 0 / 420.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.154, allocations: 0 / 420.9 MB, free: 1.352 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.01025/0.1642, allocations: 5.278 MB / 426.2 MB, free: 12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1643, allocations: 12.03 kB / 426.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008008/0.1723, allocations: 2.108 MB / 428.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/0.1781, allocations: 2.633 MB / 431 MB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.1784, allocations: 282.8 kB / 431.2 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009233/0.1793, allocations: 431.6 kB / 431.7 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02211/0.2014, allocations: 12.22 MB / 443.9 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001413/0.2016, allocations: 47.53 kB / 443.9 MB, free: 9.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000722/0.2023, allocations: 175.8 kB / 444.1 MB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003305/0.2057, allocations: 2.166 MB / 446.3 MB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.24/0.4457, allocations: 10.19 MB / 456.5 MB, free: 63.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05088/0.4966, allocations: 44.13 MB / 0.4889 GB, free: 30.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/0.5077, allocations: 4.61 MB / 0.4934 GB, free: 27.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002262/0.51, allocations: 1.72 MB / 0.495 GB, free: 25.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/0.5212, allocations: 8.224 MB / 0.5031 GB, free: 16.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.5213, allocations: 56.38 kB / 0.5031 GB, free: 16.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 5.46e-06/0.5214, allocations: 0 / 0.5031 GB, free: 16.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03706/0.5584, allocations: 15.96 MB / 0.5187 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001319/0.5598, allocations: 1.691 MB / 0.5204 GB, free: 14.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/0.5658, allocations: 4.222 MB / 0.5245 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006178/0.5665, allocations: 53.7 kB / 0.5245 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/0.5692, allocations: 3.403 MB / 0.5279 GB, free: 7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00118/0.5704, allocations: 0.8039 MB / 0.5286 GB, free: 6.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001928/0.5723, allocations: 1.368 MB / 0.53 GB, free: 4.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5724, allocations: 301.1 kB / 0.5303 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/0.5761, allocations: 2.262 MB / 0.5325 GB, free: 2.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006818/0.583, allocations: 6.398 MB / 0.5387 GB, free: 9.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/0.5947, allocations: 9.315 MB / 0.5478 GB, free: 14.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/0.5949, allocations: 44 kB / 0.5479 GB, free: 14.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02471/0.6196, allocations: 10.07 MB / 0.5577 GB, free: 4.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.6197, allocations: 68 kB / 0.5578 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0116/0.6314, allocations: 3.786 MB / 0.5615 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/0.6423, allocations: 2.168 MB / 0.5636 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005868/0.6482, allocations: 1.579 MB / 0.5651 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009599/0.6579, allocations: 6.606 MB / 0.5716 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006332/0.6642, allocations: 427.5 kB / 0.572 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001275/0.6655, allocations: 413.9 kB / 0.5724 GB, free: 4.98 MB / 446.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.00444/0.67, allocations: 2.22 MB / 0.5745 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008497/0.6708, allocations: 380 kB / 0.5749 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006983/0.6778, allocations: 3.282 MB / 0.5781 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006252/0.6841, allocations: 2.741 MB / 0.5808 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.6842, allocations: 4 kB / 0.5808 GB, free: 12.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.934e-05/0.6843, allocations: 15.95 kB / 0.5808 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02063/0.7049, allocations: 10.33 MB / 0.5909 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-05/0.705, allocations: 16.2 kB / 0.5909 GB, free: 1.699 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.7066, allocations: 376.1 kB / 0.5913 GB, free: 1.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003111/0.7097, allocations: 0.9825 MB / 0.5922 GB, free: 344 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/0.71, allocations: 59.98 kB / 0.5923 GB, free: 284 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005293/0.7153, allocations: 4.914 MB / 0.5971 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001093/0.7164, allocations: 1.549 MB / 0.5986 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009568/0.726, allocations: 5.914 MB / 0.6044 GB, free: 3.273 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/0.7281, allocations: 0.6639 MB / 0.605 GB, free: 2.586 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005582/0.7287, allocations: 59.98 kB / 0.6051 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/0.7304, allocations: 143.6 kB / 0.6052 GB, free: 2.391 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.7308, allocations: 176.4 kB / 0.6054 GB, free: 2.219 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.7309, allocations: 80.62 kB / 0.6055 GB, free: 2.141 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004131/0.7351, allocations: 2.601 MB / 0.608 GB, free: 15.53 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7351, allocations: 0 / 0.608 GB, free: 15.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006444/0.7415, allocations: 1.165 MB / 0.6091 GB, free: 14.37 MB / 494.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.0005413/0.7421, allocations: 233.1 kB / 0.6094 GB, free: 14.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01072/0.7528, allocations: 6.03 MB / 0.6152 GB, free: 8.078 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/0.7529, allocations: 4.188 kB / 0.6152 GB, free: 8.074 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004206/0.7571, allocations: 2.193 MB / 0.6174 GB, free: 5.812 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/0.7613, allocations: 0.5021 MB / 0.6179 GB, free: 5.312 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2258/0.9871, allocations: 10.62 MB / 0.6283 GB, free: 158.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004313/0.9915, allocations: 3.459 MB / 0.6316 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004701/0.9962, allocations: 2.027 MB / 0.6336 GB, free: 157.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006401/0.9969, allocations: 274.2 kB / 0.6339 GB, free: 157.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.403e-06/0.9969, allocations: 1.375 kB / 0.6339 GB, free: 157.8 MB / 494.1 MB Notification: Performance of Templates: time 0.06212/1.059, allocations: 38.45 MB / 0.6714 GB, free: 132.8 MB / 494.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)