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.0008349/0.0008349, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.000941/0.000941, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.465/1.465, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004922/0.0004922, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2425, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0149/0.2574, allocations: 16.11 MB / 342.6 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.2676, allocations: 4.671 MB / 347.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.2697, allocations: 71.81 kB / 347.3 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2714, allocations: 0.7776 MB / 348.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00595/0.2774, allocations: 2.662 MB / 350.8 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.2784, allocations: 375.4 kB / 351.1 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004044/0.2824, allocations: 2.859 MB / 354 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002604/0.285, allocations: 1.865 MB / 355.9 MB, free: 6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.2861, allocations: 0.7433 MB / 356.6 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.2877, allocations: 1.211 MB / 357.8 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00022/0.2879, allocations: 84 kB / 357.9 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001621/0.2895, allocations: 0.8659 MB / 358.8 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009191/0.2905, allocations: 1.017 MB / 359.8 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004818/0.291, allocations: 0.5156 MB / 360.3 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003107/0.2941, allocations: 3.279 MB / 363.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2941, allocations: 0 / 363.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2941, allocations: 0 / 363.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.416e-05/0.2942, allocations: 4 kB / 363.6 MB, free: 14.26 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.004436/0.2986, allocations: 2.567 MB / 366.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.2987, allocations: 8.031 kB / 366.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005983/0.3047, allocations: 1.778 MB / 367.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.3073, allocations: 1.421 MB / 369.4 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.3074, allocations: 131.3 kB / 369.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006092/0.308, allocations: 259.6 kB / 369.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.3186, allocations: 6.653 MB / 376.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.744e-05/0.3187, allocations: 31.7 kB / 376.4 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.319, allocations: 87.89 kB / 376.5 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002108/0.3211, allocations: 1.359 MB / 377.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.3324, allocations: 6.029 MB / 383.9 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03102/0.3634, allocations: 25.62 MB / 409.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006544/0.37, allocations: 2.659 MB / 412.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001435/0.3715, allocations: 1.028 MB / 413.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005897/0.3774, allocations: 3.899 MB / 417.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.3775, allocations: 47.12 kB / 417.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.977e-06/0.3775, allocations: 0 / 417.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02473/0.4022, allocations: 10.32 MB / 427.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001497/0.4037, allocations: 1.584 MB / 429 MB, free: 10.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004323/0.4081, allocations: 2.726 MB / 431.8 MB, free: 7.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003071/0.4084, allocations: 45.64 kB / 431.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.41, allocations: 2.083 MB / 433.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006396/0.4106, allocations: 0.5054 MB / 434.4 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.4108, allocations: 88 kB / 434.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003158/0.4111, allocations: 0.4962 MB / 435 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002593/0.4137, allocations: 1.633 MB / 436.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004672/0.4184, allocations: 4.437 MB / 441.1 MB, free: 13.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00399/0.4224, allocations: 2.633 MB / 443.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-05/0.4225, allocations: 31.94 kB / 443.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01928/0.4418, allocations: 7.959 MB / 451.7 MB, free: 2.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.4419, allocations: 56.02 kB / 451.7 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2415/0.6834, allocations: 3.485 MB / 455.2 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/0.6948, allocations: 2.592 MB / 457.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/0.6989, allocations: 1.01 MB / 458.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/0.7109, allocations: 8.866 MB / 467.7 MB, free: 102.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/0.7147, allocations: 332.4 kB / 468 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006106/0.7153, allocations: 286.1 kB / 468.3 MB, free: 102.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002276/0.7176, allocations: 1.419 MB / 469.7 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000483/0.7181, allocations: 236.8 kB / 469.9 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/0.724, allocations: 2.84 MB / 472.8 MB, free: 100.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004916/0.7289, allocations: 2.512 MB / 475.3 MB, free: 99.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.7289, allocations: 3.875 kB / 475.3 MB, free: 99.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.729, allocations: 7.859 kB / 475.3 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.7407, allocations: 6.868 MB / 482.2 MB, free: 92.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-05/0.7408, allocations: 5.5 kB / 482.2 MB, free: 92.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008495/0.7417, allocations: 171.7 kB / 482.3 MB, free: 92.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003974/0.7456, allocations: 1.44 MB / 483.8 MB, free: 91.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.7458, allocations: 28.75 kB / 483.8 MB, free: 91.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007704/0.7535, allocations: 7.334 MB / 491.1 MB, free: 83.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007582/0.7543, allocations: 1.457 MB / 492.6 MB, free: 81.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007648/0.762, allocations: 4.842 MB / 497.4 MB, free: 77.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007892/0.7629, allocations: 304.1 kB / 497.7 MB, free: 76.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.7631, allocations: 23.98 kB / 497.8 MB, free: 76.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.7642, allocations: 113.3 kB / 497.9 MB, free: 76.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002369/0.7644, allocations: 84.31 kB / 498 MB, free: 76.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.124e-05/0.7645, allocations: 35.97 kB / 498 MB, free: 76.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002137/0.7667, allocations: 1.691 MB / 499.7 MB, free: 74.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7667, allocations: 0 / 499.7 MB, free: 74.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003724/0.7704, allocations: 0.785 MB / 0.4887 GB, free: 74.19 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004206/0.7708, allocations: 159.4 kB / 0.4889 GB, free: 74.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007272/0.7781, allocations: 4.404 MB / 0.4932 GB, free: 69.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.7782, allocations: 0 / 0.4932 GB, free: 69.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.7808, allocations: 1.72 MB / 0.4949 GB, free: 67.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.7828, allocations: 271.4 kB / 0.4951 GB, free: 67.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.7932, allocations: 7.695 MB / 0.5026 GB, free: 59.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.795, allocations: 2.3 MB / 0.5049 GB, free: 57.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003031/0.7981, allocations: 1.412 MB / 0.5063 GB, free: 56.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/0.7985, allocations: 167.4 kB / 0.5064 GB, free: 55.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.703e-06/0.7985, allocations: 3.938 kB / 0.5064 GB, free: 55.95 MB / 382.1 MB Notification: Performance of Templates: time 0.04489/0.8434, allocations: 28.63 MB / 0.5344 GB, free: 27.33 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)