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.007133/0.007133, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.00132/0.00132, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.391/1.391, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001139/0.001139, allocations: 50.19 kB / 326.6 MB, free: 14.56 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09538, allocations: 46.63 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01277/0.1082, allocations: 12.03 MB / 385.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009548/0.1178, allocations: 4.196 MB / 389.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.1198, allocations: 71.81 kB / 389.5 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00491/0.1248, allocations: 2.764 MB / 392.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004713/0.1295, allocations: 2.008 MB / 394.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001693/0.1312, allocations: 0.8189 MB / 395.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005589/0.1368, allocations: 4.628 MB / 399.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003714/0.1405, allocations: 3.556 MB / 403.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002584/0.1431, allocations: 1.694 MB / 404.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00337/0.1465, allocations: 2.352 MB / 407.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008152/0.1474, allocations: 352 kB / 407.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002295/0.1497, allocations: 1.268 MB / 408.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002283/0.152, allocations: 2.123 MB / 411 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003629/0.1556, allocations: 2.431 MB / 413.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00907/0.1647, allocations: 7.536 MB / 421 MB, free: 1.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1647, allocations: 0 / 421 MB, free: 1.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1648, allocations: 0 / 421 MB, free: 1.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002554/0.165, allocations: 8 kB / 421 MB, free: 1.391 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.01208/0.1771, allocations: 5.274 MB / 426.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.1772, allocations: 12.03 kB / 426.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008604/0.1858, allocations: 2.108 MB / 428.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005633/0.1915, allocations: 2.629 MB / 431 MB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.1918, allocations: 278.8 kB / 431.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001394/0.1932, allocations: 423.7 kB / 431.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02491/0.2181, allocations: 12.23 MB / 443.9 MB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/0.2183, allocations: 55.47 kB / 444 MB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005409/0.2188, allocations: 171.8 kB / 444.2 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003416/0.2223, allocations: 2.158 MB / 446.3 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2384/0.4607, allocations: 10.2 MB / 456.5 MB, free: 63.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05302/0.5137, allocations: 44.12 MB / 0.4889 GB, free: 30.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01072/0.5245, allocations: 4.625 MB / 0.4934 GB, free: 27.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/0.5265, allocations: 1.72 MB / 0.4951 GB, free: 25.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.5367, allocations: 8.224 MB / 0.5031 GB, free: 16.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.5368, allocations: 55.81 kB / 0.5032 GB, free: 16.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 5.16e-06/0.5368, allocations: 3.984 kB / 0.5032 GB, free: 16.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03676/0.5735, allocations: 15.95 MB / 0.5188 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001266/0.5749, allocations: 1.691 MB / 0.5204 GB, free: 14.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006211/0.5811, allocations: 4.219 MB / 0.5246 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004134/0.5815, allocations: 53.7 kB / 0.5246 GB, free: 10.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002815/0.5844, allocations: 3.4 MB / 0.5279 GB, free: 7.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001257/0.5856, allocations: 0.8197 MB / 0.5287 GB, free: 6.242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001891/0.5875, allocations: 1.361 MB / 0.5301 GB, free: 4.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.5876, allocations: 301.1 kB / 0.5303 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003569/0.5912, allocations: 2.262 MB / 0.5325 GB, free: 2.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00621/0.5974, allocations: 6.402 MB / 0.5388 GB, free: 9.863 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/0.6092, allocations: 9.305 MB / 0.5479 GB, free: 14.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001573/0.6094, allocations: 47.98 kB / 0.5479 GB, free: 14.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02435/0.6338, allocations: 10.07 MB / 0.5578 GB, free: 4.363 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002382/0.634, allocations: 68 kB / 0.5578 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0114/0.6455, allocations: 3.788 MB / 0.5615 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/0.6561, allocations: 2.172 MB / 0.5637 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005376/0.6615, allocations: 1.579 MB / 0.5652 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009201/0.6707, allocations: 6.604 MB / 0.5716 GB, free: 5.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005391/0.6761, allocations: 431.5 kB / 0.5721 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/0.6772, allocations: 415.6 kB / 0.5725 GB, free: 5.02 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.004158/0.6814, allocations: 2.216 MB / 0.5746 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000746/0.6821, allocations: 375.1 kB / 0.575 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006573/0.6887, allocations: 3.289 MB / 0.5782 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005367/0.6941, allocations: 2.745 MB / 0.5809 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.6942, allocations: 0 / 0.5809 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.511e-05/0.6942, allocations: 11.97 kB / 0.5809 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.7133, allocations: 10.33 MB / 0.591 GB, free: 1.758 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.52e-05/0.7134, allocations: 20.03 kB / 0.591 GB, free: 1.738 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.7149, allocations: 367.4 kB / 0.5913 GB, free: 1.379 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003007/0.7179, allocations: 0.9902 MB / 0.5923 GB, free: 384 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/0.7182, allocations: 59.97 kB / 0.5924 GB, free: 324 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005201/0.7234, allocations: 4.9 MB / 0.5971 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001053/0.7244, allocations: 1.559 MB / 0.5987 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009625/0.7341, allocations: 5.918 MB / 0.6044 GB, free: 3.312 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/0.7359, allocations: 0.6561 MB / 0.6051 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004692/0.7363, allocations: 59.98 kB / 0.6051 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.738, allocations: 147.7 kB / 0.6053 GB, free: 2.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003519/0.7383, allocations: 176.4 kB / 0.6055 GB, free: 2.258 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.7385, allocations: 71.98 kB / 0.6055 GB, free: 2.188 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004172/0.7426, allocations: 2.605 MB / 0.6081 GB, free: 15.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7427, allocations: 0 / 0.6081 GB, free: 15.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006739/0.7494, allocations: 1.165 MB / 0.6092 GB, free: 14.42 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.0005975/0.75, allocations: 232.7 kB / 0.6094 GB, free: 14.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01114/0.7612, allocations: 6.027 MB / 0.6153 GB, free: 8.121 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/0.7612, allocations: 4 kB / 0.6153 GB, free: 8.117 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004223/0.7655, allocations: 2.194 MB / 0.6175 GB, free: 5.855 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003836/0.7693, allocations: 0.4945 MB / 0.6179 GB, free: 5.359 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2349/1.004, allocations: 10.63 MB / 0.6283 GB, free: 158.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005843/1.01, allocations: 3.461 MB / 0.6317 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005323/1.016, allocations: 2.026 MB / 0.6337 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/1.016, allocations: 277.3 kB / 0.6339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 9.91e-07/1.016, allocations: 2.25 kB / 0.6339 GB, free: 157.9 MB / 494.1 MB Notification: Performance of Templates: time 0.06275/1.079, allocations: 38.46 MB / 0.6715 GB, free: 132.9 MB / 494.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)