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.00514/0.00514, allocations: 102 kB / 15.73 MB, free: 6.039 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.001139/0.001139, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.407/1.407, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.001142/0.001142, allocations: 47.92 kB / 326.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.101, allocations: 46.62 MB / 373.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2288/0.3299, allocations: 12.04 MB / 385.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009237/0.3392, allocations: 4.195 MB / 389.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003268/0.3425, allocations: 73.09 kB / 389.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006589/0.3492, allocations: 2.747 MB / 392.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007396/0.3566, allocations: 1.97 MB / 394.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002239/0.3588, allocations: 0.8128 MB / 395 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00766/0.3665, allocations: 4.625 MB / 399.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004899/0.3715, allocations: 3.555 MB / 403.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.3748, allocations: 1.698 MB / 404.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003724/0.3786, allocations: 2.356 MB / 407.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009241/0.3795, allocations: 352.8 kB / 407.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002777/0.3823, allocations: 1.265 MB / 408.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00255/0.3849, allocations: 2.12 MB / 411 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00318/0.3881, allocations: 2.428 MB / 413.4 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008592/0.3967, allocations: 7.549 MB / 420.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.3967, allocations: 0 / 420.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3967, allocations: 0 / 420.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002471/0.397, allocations: 0 / 420.9 MB, free: 15.62 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.011/0.408, allocations: 5.278 MB / 426.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.4081, allocations: 12.03 kB / 426.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008421/0.4165, allocations: 2.104 MB / 428.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00709/0.4236, allocations: 2.634 MB / 431 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002399/0.4239, allocations: 278.8 kB / 431.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.4253, allocations: 431.6 kB / 431.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02138/0.4467, allocations: 12.23 MB / 443.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001177/0.4468, allocations: 51.53 kB / 443.9 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004386/0.4473, allocations: 171.8 kB / 444.1 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003117/0.4504, allocations: 2.17 MB / 446.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02046/0.4709, allocations: 10.2 MB / 456.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05759/0.5285, allocations: 44.12 MB / 0.4889 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/0.5398, allocations: 4.61 MB / 0.4934 GB, free: 8.918 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002435/0.5422, allocations: 1.724 MB / 0.4951 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01398/0.5562, allocations: 8.22 MB / 0.5031 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.5563, allocations: 55.88 kB / 0.5031 GB, free: 14.51 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.621e-06/0.5563, allocations: 3.984 kB / 0.5031 GB, free: 14.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03949/0.5958, allocations: 15.97 MB / 0.5187 GB, free: 14.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001402/0.5973, allocations: 1.695 MB / 0.5204 GB, free: 12.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005827/0.6031, allocations: 4.211 MB / 0.5245 GB, free: 8.254 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004723/0.6036, allocations: 53.7 kB / 0.5246 GB, free: 8.195 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/0.6057, allocations: 3.412 MB / 0.5279 GB, free: 4.734 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009724/0.6067, allocations: 0.81 MB / 0.5287 GB, free: 3.914 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/0.6083, allocations: 1.353 MB / 0.53 GB, free: 2.551 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.6084, allocations: 305.1 kB / 0.5303 GB, free: 2.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003128/0.6116, allocations: 2.27 MB / 0.5325 GB, free: 15.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006418/0.618, allocations: 6.394 MB / 0.5388 GB, free: 7.531 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2521/0.8701, allocations: 9.312 MB / 0.5478 GB, free: 140.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002431/0.8704, allocations: 41.09 kB / 0.5479 GB, free: 140.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02682/0.8972, allocations: 10.06 MB / 0.5577 GB, free: 138.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.8974, allocations: 70.62 kB / 0.5578 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01184/0.9092, allocations: 3.785 MB / 0.5615 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/0.9197, allocations: 2.166 MB / 0.5636 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005752/0.9255, allocations: 1.585 MB / 0.5651 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00871/0.9342, allocations: 6.602 MB / 0.5716 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005423/0.9397, allocations: 432.9 kB / 0.572 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008978/0.9406, allocations: 413.1 kB / 0.5724 GB, free: 133.1 MB / 478.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.003235/0.9438, allocations: 2.221 MB / 0.5746 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005859/0.9444, allocations: 373.1 kB / 0.5749 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00539/0.9498, allocations: 3.29 MB / 0.5781 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004342/0.9542, allocations: 2.739 MB / 0.5808 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.9542, allocations: 3.25 kB / 0.5808 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.9542, allocations: 12.94 kB / 0.5808 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.9701, allocations: 10.34 MB / 0.5909 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/0.9702, allocations: 16.06 kB / 0.5909 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.9716, allocations: 367.4 kB / 0.5913 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002612/0.9742, allocations: 0.9825 MB / 0.5922 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/0.9744, allocations: 63.97 kB / 0.5923 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.9783, allocations: 4.897 MB / 0.5971 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000733/0.9791, allocations: 1.567 MB / 0.5986 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007207/0.9863, allocations: 5.911 MB / 0.6044 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/0.9883, allocations: 0.66 MB / 0.605 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006914/0.989, allocations: 55.98 kB / 0.6051 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/0.9907, allocations: 147.8 kB / 0.6052 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002815/0.991, allocations: 176 kB / 0.6054 GB, free: 107.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.9912, allocations: 75.98 kB / 0.6055 GB, free: 107 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00328/0.9945, allocations: 2.609 MB / 0.608 GB, free: 104.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9945, allocations: 0 / 0.608 GB, free: 104.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005519/1, allocations: 1.161 MB / 0.6091 GB, free: 103.2 MB / 478.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.0004554/1, allocations: 233.3 kB / 0.6094 GB, free: 103 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008867/1.009, allocations: 6.032 MB / 0.6153 GB, free: 96.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-05/1.009, allocations: 1.688 kB / 0.6153 GB, free: 96.94 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003335/1.013, allocations: 2.195 MB / 0.6174 GB, free: 94.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003263/1.016, allocations: 0.4902 MB / 0.6179 GB, free: 94.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/1.034, allocations: 10.64 MB / 0.6283 GB, free: 83.38 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003466/1.038, allocations: 3.471 MB / 0.6317 GB, free: 79.87 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004005/1.042, allocations: 2.024 MB / 0.6336 GB, free: 77.84 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006994/1.042, allocations: 271.4 kB / 0.6339 GB, free: 77.58 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/1.042, allocations: 0 / 0.6339 GB, free: 77.58 MB / 478.1 MB Notification: Performance of Templates: time 0.06225/1.105, allocations: 38.4 MB / 0.6714 GB, free: 39.3 MB / 478.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)