Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001164/0.001164, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 198 kB / 16.54 MB, free: 6.672 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.443/1.443, allocations: 205.1 MB / 222.4 MB, free: 4.633 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.001242/0.001242, allocations: 56.3 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2649, allocations: 46.64 MB / 325.3 MB, free: 1.977 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008708/0.2736, allocations: 7.431 MB / 332.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00751/0.2812, allocations: 3.233 MB / 336 MB, free: 9.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.2829, allocations: 35.94 kB / 336 MB, free: 9.305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.2852, allocations: 1.035 MB / 337.1 MB, free: 8.266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.2896, allocations: 1.358 MB / 338.4 MB, free: 6.902 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.2909, allocations: 455.2 kB / 338.9 MB, free: 6.457 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003882/0.2948, allocations: 2.637 MB / 341.5 MB, free: 3.809 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002402/0.2972, allocations: 1.537 MB / 343 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.2987, allocations: 0.8446 MB / 343.9 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001796/0.3005, allocations: 1.219 MB / 345.1 MB, free: 192 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006455/0.3012, allocations: 168 kB / 345.3 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.3034, allocations: 1.03 MB / 346.3 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.3047, allocations: 1.106 MB / 347.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.3065, allocations: 1.308 MB / 348.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004623/0.3112, allocations: 4.186 MB / 352.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3112, allocations: 4 kB / 352.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3112, allocations: 0 / 352.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.905e-05/0.3113, allocations: 0 / 352.9 MB, free: 8.363 MB / 286.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.006051/0.3173, allocations: 3.047 MB / 355.9 MB, free: 5.258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3174, allocations: 8.031 kB / 355.9 MB, free: 5.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006751/0.3242, allocations: 1.74 MB / 357.7 MB, free: 3.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.3273, allocations: 1.449 MB / 359.1 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.3274, allocations: 131.3 kB / 359.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006552/0.3281, allocations: 255.7 kB / 359.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.3386, allocations: 6.664 MB / 366.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.479e-05/0.3387, allocations: 27.75 kB / 366.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002649/0.339, allocations: 83.89 kB / 366.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/0.3412, allocations: 1.363 MB / 367.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.3523, allocations: 6.029 MB / 373.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03137/0.3837, allocations: 25.65 MB / 399.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007206/0.391, allocations: 2.659 MB / 402 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.3924, allocations: 1.028 MB / 403 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005763/0.3982, allocations: 3.903 MB / 406.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.3982, allocations: 51.12 kB / 407 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=112): time 4.408e-06/0.3982, allocations: 0 / 407 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of matching and sorting (n=125): time 0.02907/0.4273, allocations: 10.31 MB / 417.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00159/0.4289, allocations: 1.671 MB / 418.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005365/0.4344, allocations: 2.737 MB / 421.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.4346, allocations: 37.7 kB / 421.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001818/0.4365, allocations: 2.079 MB / 423.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000829/0.4373, allocations: 0.5093 MB / 424.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001772/0.4391, allocations: 0.9165 MB / 425.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4392, allocations: 305.1 kB / 425.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/0.4419, allocations: 1.66 MB / 427.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/0.4466, allocations: 4.452 MB / 431.6 MB, free: 6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00768/0.4543, allocations: 6.538 MB / 438.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.766e-05/0.4544, allocations: 31.94 kB / 438.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02204/0.4764, allocations: 8.001 MB / 446.2 MB, free: 6.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.4766, allocations: 48.06 kB / 446.2 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01276/0.4894, allocations: 3.492 MB / 449.7 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2138/0.7032, allocations: 2.582 MB / 452.3 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004461/0.7078, allocations: 1.013 MB / 453.3 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0154/0.7232, allocations: 9.709 MB / 463 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/0.7276, allocations: 330.4 kB / 463.4 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/0.7287, allocations: 278 kB / 463.6 MB, free: 103 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.002966/0.7317, allocations: 1.43 MB / 465.1 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005583/0.7323, allocations: 234.5 kB / 465.3 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006442/0.7387, allocations: 2.832 MB / 468.1 MB, free: 101.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005527/0.7443, allocations: 2.515 MB / 470.6 MB, free: 100.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.7443, allocations: 3.906 kB / 470.6 MB, free: 100.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/0.7443, allocations: 10.33 kB / 470.7 MB, free: 100.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.7576, allocations: 6.87 MB / 477.5 MB, free: 95.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/0.7577, allocations: 3.984 kB / 477.5 MB, free: 95.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008894/0.7586, allocations: 171.8 kB / 477.7 MB, free: 95.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004535/0.7632, allocations: 1.444 MB / 479.1 MB, free: 93.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001954/0.7634, allocations: 33.88 kB / 479.2 MB, free: 93.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008685/0.7721, allocations: 7.926 MB / 487.1 MB, free: 85.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007953/0.7729, allocations: 1.541 MB / 488.6 MB, free: 84.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008042/0.781, allocations: 4.849 MB / 493.5 MB, free: 79.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/0.7817, allocations: 295.6 kB / 493.8 MB, free: 79.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005553/0.7823, allocations: 27.94 kB / 493.8 MB, free: 79.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.7837, allocations: 119.2 kB / 493.9 MB, free: 78.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002918/0.784, allocations: 79.39 kB / 494 MB, free: 78.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.7841, allocations: 36.23 kB / 494 MB, free: 78.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002661/0.7868, allocations: 1.701 MB / 495.7 MB, free: 77.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7868, allocations: 0 / 495.7 MB, free: 77.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005604/0.7925, allocations: 0.7897 MB / 496.5 MB, free: 76.37 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.0008156/0.7933, allocations: 165.4 kB / 496.7 MB, free: 76.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008968/0.8023, allocations: 4.77 MB / 0.4897 GB, free: 71.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/0.8024, allocations: 0 / 0.4897 GB, free: 71.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003106/0.8055, allocations: 1.718 MB / 0.4914 GB, free: 69.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.8082, allocations: 277.9 kB / 0.4916 GB, free: 69.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009905/0.8181, allocations: 6.616 MB / 0.4981 GB, free: 62.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.8204, allocations: 2.293 MB / 0.5004 GB, free: 60.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003135/0.8236, allocations: 1.408 MB / 0.5017 GB, free: 59.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004967/0.8241, allocations: 167.4 kB / 0.5019 GB, free: 58.87 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8241, allocations: 0 / 0.5019 GB, free: 58.87 MB / 382.1 MB Notification: Performance of Templates: time 0.04758/0.8717, allocations: 30.74 MB / 0.5319 GB, free: 28.15 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)