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.001047/0.001047, allocations: 108 kB / 15.61 MB, free: 152 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.001082/0.001082, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.505/1.505, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001225/0.001225, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2753, allocations: 46.64 MB / 325.3 MB, free: 1.965 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008682/0.284, allocations: 7.427 MB / 332.7 MB, free: 12.12 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007414/0.2915, allocations: 3.231 MB / 336 MB, free: 9.352 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.2929, allocations: 31.94 kB / 336 MB, free: 9.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002106/0.2951, allocations: 1.039 MB / 337 MB, free: 8.277 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003506/0.2986, allocations: 1.362 MB / 338.4 MB, free: 6.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.2996, allocations: 459.1 kB / 338.9 MB, free: 6.461 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003439/0.3031, allocations: 2.637 MB / 341.5 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.3049, allocations: 1.533 MB / 343 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.3061, allocations: 0.8447 MB / 343.9 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.3075, allocations: 1.223 MB / 345.1 MB, free: 196 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003632/0.3079, allocations: 172 kB / 345.3 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.3099, allocations: 1.018 MB / 346.3 MB, free: 15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.311, allocations: 1.114 MB / 347.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.3123, allocations: 1.301 MB / 348.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004948/0.3173, allocations: 4.198 MB / 352.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3173, allocations: 0 / 352.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3173, allocations: 4 kB / 352.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.88e-05/0.3174, 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.00659/0.324, allocations: 3.047 MB / 355.9 MB, free: 5.258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3241, allocations: 8.031 kB / 355.9 MB, free: 5.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006413/0.3305, allocations: 1.732 MB / 357.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/0.3332, allocations: 1.445 MB / 359.1 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3333, allocations: 135.3 kB / 359.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006319/0.334, allocations: 255.6 kB / 359.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.345, allocations: 6.664 MB / 366.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.851e-05/0.3451, allocations: 27.75 kB / 366.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002754/0.3454, allocations: 87.89 kB / 366.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00212/0.3475, allocations: 1.367 MB / 367.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.3587, allocations: 6.037 MB / 373.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0299/0.3886, allocations: 25.64 MB / 399.3 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006892/0.3955, allocations: 2.651 MB / 402 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.3969, allocations: 1.044 MB / 403 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005569/0.4025, allocations: 3.896 MB / 406.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.4025, allocations: 43.12 kB / 407 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=112): time 3.116e-06/0.4025, allocations: 0 / 407 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=125): time 0.02484/0.4274, allocations: 10.3 MB / 417.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001362/0.4288, allocations: 1.675 MB / 418.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00385/0.4327, allocations: 2.733 MB / 421.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001875/0.4329, allocations: 41.7 kB / 421.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.4341, allocations: 2.083 MB / 423.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004714/0.4346, allocations: 0.5015 MB / 424.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.4356, allocations: 0.9126 MB / 425.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.4357, allocations: 317.1 kB / 425.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.438, allocations: 1.652 MB / 427.2 MB, free: 11.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004055/0.442, allocations: 4.452 MB / 431.6 MB, free: 6.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006886/0.4489, allocations: 6.544 MB / 438.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.057e-05/0.449, allocations: 28 kB / 438.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02007/0.4691, allocations: 8.005 MB / 446.2 MB, free: 6.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/0.4692, allocations: 48 kB / 446.3 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01128/0.4805, allocations: 3.492 MB / 449.7 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2504/0.7309, allocations: 2.586 MB / 452.3 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006388/0.7374, allocations: 1.007 MB / 453.3 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/0.7583, allocations: 9.701 MB / 463 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006473/0.7648, allocations: 332.9 kB / 463.4 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009367/0.7658, allocations: 278 kB / 463.6 MB, free: 102.9 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.002817/0.7686, allocations: 1.435 MB / 465.1 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006858/0.7693, allocations: 230.8 kB / 465.3 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008736/0.7781, allocations: 2.835 MB / 468.1 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005541/0.7837, allocations: 2.517 MB / 470.6 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.7837, allocations: 2.625 kB / 470.6 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.429e-05/0.7837, allocations: 9.219 kB / 470.7 MB, free: 100.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.7957, allocations: 6.871 MB / 477.5 MB, free: 95.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.7958, allocations: 4 kB / 477.5 MB, free: 95.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008109/0.7966, allocations: 176.6 kB / 477.7 MB, free: 95.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004398/0.801, allocations: 1.438 MB / 479.1 MB, free: 93.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.8012, allocations: 35.91 kB / 479.2 MB, free: 93.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00825/0.8094, allocations: 7.924 MB / 487.1 MB, free: 85.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007303/0.8102, allocations: 1.539 MB / 488.6 MB, free: 84.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007378/0.8176, allocations: 4.851 MB / 493.5 MB, free: 79.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000621/0.8182, allocations: 296.8 kB / 493.8 MB, free: 79.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.8185, allocations: 31.8 kB / 493.8 MB, free: 79.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.8196, allocations: 111.8 kB / 493.9 MB, free: 78.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/0.8199, allocations: 85.64 kB / 494 MB, free: 78.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.691e-05/0.82, allocations: 39.97 kB / 494 MB, free: 78.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001922/0.8219, allocations: 1.693 MB / 495.7 MB, free: 77.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8219, allocations: 13.2 kB / 495.8 MB, free: 77.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003468/0.8254, allocations: 0.7975 MB / 496.5 MB, free: 76.33 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.0003402/0.8257, allocations: 153.2 kB / 496.7 MB, free: 76.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006979/0.8327, allocations: 4.763 MB / 0.4897 GB, free: 71.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.8327, allocations: 0 / 0.4897 GB, free: 71.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00266/0.8354, allocations: 1.723 MB / 0.4914 GB, free: 69.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.8372, allocations: 261 kB / 0.4916 GB, free: 69.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008499/0.8457, allocations: 6.627 MB / 0.4981 GB, free: 62.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/0.8475, allocations: 2.293 MB / 0.5004 GB, free: 60.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00272/0.8502, allocations: 1.412 MB / 0.5017 GB, free: 59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003557/0.8506, allocations: 167.4 kB / 0.5019 GB, free: 58.84 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.8506, allocations: 0 / 0.5019 GB, free: 58.84 MB / 382.1 MB Notification: Performance of Templates: time 0.04247/0.8931, allocations: 30.74 MB / 0.5319 GB, free: 28.12 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)