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.001163/0.001163, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001338/0.001338, allocations: 195.5 kB / 16.14 MB, free: 6.715 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.442/1.442, allocations: 205.1 MB / 222 MB, free: 4.746 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.001102/0.001102, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2405, allocations: 46.63 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04282/0.2834, allocations: 46.98 MB / 371.7 MB, free: 5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0227/0.3062, allocations: 9.967 MB / 381.6 MB, free: 11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01145/0.3177, allocations: 199.5 kB / 381.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006049/0.3238, allocations: 2.731 MB / 384.6 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006277/0.3301, allocations: 1.849 MB / 386.4 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001991/0.3321, allocations: 0.7451 MB / 387.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008043/0.3402, allocations: 6.539 MB / 393.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005565/0.3458, allocations: 3.531 MB / 397.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003666/0.3495, allocations: 1.526 MB / 398.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004649/0.3541, allocations: 2.504 MB / 401.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001255/0.3554, allocations: 260 kB / 401.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003096/0.3585, allocations: 1.24 MB / 402.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.3608, allocations: 2.053 MB / 404.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00326/0.3641, allocations: 2.357 MB / 407.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008359/0.3725, allocations: 7.192 MB / 414.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3725, allocations: 4 kB / 414.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3725, allocations: 0 / 414.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002299/0.3728, allocations: 0 / 414.3 MB, free: 10.14 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.01085/0.3836, allocations: 5.289 MB / 419.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.3837, allocations: 12.03 kB / 419.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007707/0.3914, allocations: 2.108 MB / 421.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005116/0.3966, allocations: 2.591 MB / 424.3 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002318/0.3968, allocations: 270.9 kB / 424.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00104/0.3979, allocations: 435.5 kB / 425 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02217/0.4201, allocations: 12.22 MB / 437.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/0.4202, allocations: 43.62 kB / 437.3 MB, free: 2.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004636/0.4207, allocations: 171.8 kB / 437.5 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.424, allocations: 2.162 MB / 439.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02163/0.4457, allocations: 10.21 MB / 449.8 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.253/0.6987, allocations: 44.32 MB / 494.2 MB, free: 78.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.7095, allocations: 4.612 MB / 498.8 MB, free: 76.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.7117, allocations: 1.72 MB / 0.4888 GB, free: 74.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.7221, allocations: 8.232 MB / 0.4968 GB, free: 65.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.7222, allocations: 55.8 kB / 0.4969 GB, free: 65.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 4.529e-06/0.7222, allocations: 0 / 0.4969 GB, free: 65.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03587/0.758, allocations: 15.96 MB / 0.5124 GB, free: 49.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009885/0.7591, allocations: 1.601 MB / 0.514 GB, free: 47.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/0.764, allocations: 4.215 MB / 0.5181 GB, free: 43.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003029/0.7643, allocations: 53.7 kB / 0.5182 GB, free: 43.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/0.7659, allocations: 3.407 MB / 0.5215 GB, free: 40.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000701/0.7666, allocations: 0.8059 MB / 0.5223 GB, free: 39.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/0.7681, allocations: 1.361 MB / 0.5236 GB, free: 38.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.437e-05/0.7682, allocations: 301.1 kB / 0.5239 GB, free: 37.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002823/0.771, allocations: 2.262 MB / 0.5261 GB, free: 35.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/0.7758, allocations: 6.402 MB / 0.5324 GB, free: 27.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007944/0.7838, allocations: 9.308 MB / 0.5415 GB, free: 15.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-05/0.7839, allocations: 44 kB / 0.5415 GB, free: 15.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02042/0.8043, allocations: 10.07 MB / 0.5513 GB, free: 5.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.907e-05/0.8044, allocations: 68 kB / 0.5514 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009919/0.8144, allocations: 3.789 MB / 0.5551 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009202/0.8236, allocations: 2.176 MB / 0.5572 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005575/0.8292, allocations: 1.579 MB / 0.5588 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009015/0.8382, allocations: 6.063 MB / 0.5647 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006537/0.8448, allocations: 423.4 kB / 0.5651 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001244/0.8461, allocations: 426.7 kB / 0.5655 GB, free: 6.727 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.004037/0.8501, allocations: 2.2 MB / 0.5676 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007606/0.8509, allocations: 375.1 kB / 0.568 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006139/0.8571, allocations: 3.3 MB / 0.5712 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005165/0.8622, allocations: 2.746 MB / 0.5739 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.8623, allocations: 4 kB / 0.5739 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/0.8623, allocations: 7.969 kB / 0.5739 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/0.8802, allocations: 10.35 MB / 0.584 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/0.8803, allocations: 20.05 kB / 0.584 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.8817, allocations: 367.4 kB / 0.5844 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0029/0.8847, allocations: 0.9868 MB / 0.5854 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.8849, allocations: 63.97 kB / 0.5854 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004964/0.8898, allocations: 4.585 MB / 0.5899 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001061/0.8909, allocations: 1.474 MB / 0.5913 GB, free: 11.53 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009319/0.9002, allocations: 5.91 MB / 0.5971 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/0.9021, allocations: 0.6561 MB / 0.5977 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004873/0.9026, allocations: 63.98 kB / 0.5978 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/0.9042, allocations: 147.7 kB / 0.5979 GB, free: 4.523 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00036/0.9046, allocations: 168.5 kB / 0.5981 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/0.9047, allocations: 87.56 kB / 0.5982 GB, free: 4.277 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004586/0.9093, allocations: 2.609 MB / 0.6007 GB, free: 1.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.02e-07/0.9093, allocations: 0 / 0.6007 GB, free: 1.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006421/0.9158, allocations: 1.161 MB / 0.6019 GB, free: 0.5039 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.0005433/0.9163, allocations: 223.9 kB / 0.6021 GB, free: 288 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.1793/1.096, allocations: 5.975 MB / 0.6079 GB, free: 146 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.096, allocations: 0 / 0.6079 GB, free: 146 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003684/1.099, allocations: 2.187 MB / 0.6101 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/1.103, allocations: 480.9 kB / 0.6105 GB, free: 144.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/1.118, allocations: 12.94 MB / 0.6232 GB, free: 137.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003263/1.121, allocations: 3.464 MB / 0.6265 GB, free: 136.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004489/1.126, allocations: 2.021 MB / 0.6285 GB, free: 135.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006516/1.126, allocations: 281.6 kB / 0.6288 GB, free: 135 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/1.126, allocations: 0 / 0.6288 GB, free: 135 MB / 430.1 MB Notification: Performance of Templates: time 0.06234/1.189, allocations: 40.68 MB / 0.6685 GB, free: 94.5 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)