Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001513/0.001513, allocations: 194.4 kB / 16.25 MB, free: 6.621 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.524/1.524, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001208/0.001208, allocations: 55.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2802, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01876/0.2991, allocations: 17.91 MB / 342.8 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01252/0.3117, allocations: 4.945 MB / 347.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004827/0.3166, allocations: 71.81 kB / 347.8 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002809/0.3194, allocations: 0.9698 MB / 348.7 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00408/0.3235, allocations: 1.273 MB / 350 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.3249, allocations: 435.3 kB / 350.4 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.3291, allocations: 2.669 MB / 353.1 MB, free: 7.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.3315, allocations: 1.615 MB / 354.7 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.3329, allocations: 0.8563 MB / 355.6 MB, free: 5.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001884/0.3348, allocations: 1.359 MB / 356.9 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003987/0.3353, allocations: 172 kB / 357.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.3374, allocations: 1.041 MB / 358.1 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.3386, allocations: 1.134 MB / 359.3 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001466/0.3401, allocations: 1.324 MB / 360.6 MB, free: 212 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005297/0.3454, allocations: 4.233 MB / 364.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.3454, allocations: 0 / 364.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.3455, allocations: 0 / 364.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001566/0.3456, allocations: 0 / 364.8 MB, free: 11.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.007945/0.3536, allocations: 3.055 MB / 367.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.3536, allocations: 12.03 kB / 367.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00658/0.3602, allocations: 1.729 MB / 369.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003387/0.3637, allocations: 1.441 MB / 371.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.3638, allocations: 135.3 kB / 371.2 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007583/0.3646, allocations: 251.7 kB / 371.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01257/0.3772, allocations: 6.66 MB / 378.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-05/0.3773, allocations: 31.66 kB / 378.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/0.3776, allocations: 87.89 kB / 378.2 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002106/0.3797, allocations: 1.363 MB / 379.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.392, allocations: 6.033 MB / 385.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/0.4298, allocations: 25.64 MB / 411.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007309/0.4371, allocations: 2.659 MB / 413.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/0.4389, allocations: 1.04 MB / 415 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007671/0.4466, allocations: 3.9 MB / 418.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.464e-05/0.4467, allocations: 55.05 kB / 418.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 4.278e-06/0.4467, allocations: 0 / 418.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.0288/0.4755, allocations: 10.3 MB / 429.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001636/0.4772, allocations: 1.671 MB / 430.9 MB, free: 7.793 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/0.4818, allocations: 2.733 MB / 433.6 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003606/0.4822, allocations: 41.7 kB / 433.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.4837, allocations: 2.087 MB / 435.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007272/0.4845, allocations: 0.5093 MB / 436.3 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001289/0.4858, allocations: 0.9203 MB / 437.2 MB, free: 1.422 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4859, allocations: 309.1 kB / 437.5 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.4882, allocations: 1.648 MB / 439.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004119/0.4923, allocations: 4.456 MB / 443.6 MB, free: 9.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007773/0.5001, allocations: 6.543 MB / 450.1 MB, free: 1.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-05/0.5002, allocations: 32 kB / 450.2 MB, free: 1.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2308/0.7311, allocations: 7.994 MB / 458.2 MB, free: 108.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.7312, allocations: 48 kB / 458.2 MB, free: 108.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0106/0.7418, allocations: 3.497 MB / 461.7 MB, free: 107.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/0.7533, allocations: 2.582 MB / 464.3 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004992/0.7584, allocations: 1.01 MB / 465.3 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/0.7769, allocations: 9.7 MB / 475 MB, free: 97.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006988/0.7839, allocations: 340.7 kB / 475.3 MB, free: 97.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/0.7851, allocations: 276 kB / 475.6 MB, free: 97.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003381/0.7885, allocations: 1.422 MB / 477 MB, free: 95.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006521/0.7892, allocations: 227 kB / 477.2 MB, free: 95.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/0.7996, allocations: 2.845 MB / 480.1 MB, free: 92.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009601/0.8093, allocations: 2.518 MB / 482.6 MB, free: 90.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/0.8093, allocations: 8 kB / 482.6 MB, free: 90.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/0.8094, allocations: 5.578 kB / 482.6 MB, free: 90.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02234/0.8317, allocations: 6.861 MB / 489.5 MB, free: 83.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.077e-05/0.8318, allocations: 4.031 kB / 489.5 MB, free: 83.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.8335, allocations: 177.6 kB / 489.7 MB, free: 83.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00884/0.8423, allocations: 1.444 MB / 491.1 MB, free: 81.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003562/0.8427, allocations: 27.98 kB / 491.1 MB, free: 81.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/0.858, allocations: 7.927 MB / 499.1 MB, free: 73.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001171/0.8592, allocations: 1.542 MB / 0.4889 GB, free: 72.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/0.8734, allocations: 4.853 MB / 0.4936 GB, free: 67.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009169/0.8744, allocations: 290 kB / 0.4939 GB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007539/0.8751, allocations: 27.98 kB / 0.4939 GB, free: 66.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/0.8775, allocations: 115.5 kB / 0.494 GB, free: 66.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004302/0.878, allocations: 84.41 kB / 0.4941 GB, free: 66.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001749/0.8782, allocations: 39.97 kB / 0.4941 GB, free: 66.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004276/0.8825, allocations: 1.701 MB / 0.4958 GB, free: 64.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.552e-06/0.8825, allocations: 0 / 0.4958 GB, free: 64.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006704/0.8892, allocations: 0.7814 MB / 0.4966 GB, free: 64.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005634/0.8898, allocations: 169.3 kB / 0.4967 GB, free: 63.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01167/0.9015, allocations: 4.768 MB / 0.5014 GB, free: 59.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.9016, allocations: 1.203 kB / 0.5014 GB, free: 59.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004378/0.9059, allocations: 1.716 MB / 0.5031 GB, free: 57.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003365/0.9093, allocations: 263.7 kB / 0.5033 GB, free: 57.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/0.9247, allocations: 7.826 MB / 0.5109 GB, free: 49.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003349/0.9281, allocations: 2.297 MB / 0.5132 GB, free: 46.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.005646/0.9337, allocations: 1.412 MB / 0.5146 GB, free: 45.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000672/0.9344, allocations: 167.4 kB / 0.5147 GB, free: 45.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9345, allocations: 0 / 0.5147 GB, free: 45.39 MB / 382.1 MB Notification: Performance of Templates: time 0.04422/0.9787, allocations: 30.96 MB / 0.545 GB, free: 14.45 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)