Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007109/0.007108, allocations: 103.8 kB / 15.74 MB, free: 6.055 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.001403/0.001403, allocations: 195.5 kB / 16.68 MB, free: 5.965 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.493/1.493, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001192/0.001192, allocations: 47.92 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1029, allocations: 46.61 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.228/0.3309, allocations: 10.75 MB / 383.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009544/0.3405, allocations: 3.922 MB / 387.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.3431, allocations: 61.69 kB / 387.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00612/0.3493, allocations: 2.587 MB / 390.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006097/0.3554, allocations: 1.751 MB / 392.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.3573, allocations: 0.6907 MB / 392.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006617/0.364, allocations: 3.691 MB / 396.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004442/0.3684, allocations: 3.57 MB / 400.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003249/0.3717, allocations: 1.483 MB / 401.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003104/0.3748, allocations: 1.954 MB / 403.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007924/0.3756, allocations: 314.8 kB / 403.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.3783, allocations: 1.159 MB / 405.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.3802, allocations: 1.814 MB / 406.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002656/0.3828, allocations: 2.14 MB / 409 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008151/0.391, allocations: 6.701 MB / 415.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.391, allocations: 0 / 415.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.391, allocations: 0 / 415.7 MB, free: 4.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.3912, allocations: 0 / 415.7 MB, free: 4.832 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.009317/0.4005, allocations: 4.57 MB / 420.3 MB, free: 200 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4006, allocations: 12.02 kB / 420.3 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00679/0.4074, allocations: 1.879 MB / 422.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00411/0.4115, allocations: 2.071 MB / 424.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.4117, allocations: 258.2 kB / 424.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008806/0.4126, allocations: 391.7 kB / 424.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01799/0.4306, allocations: 10.07 MB / 435 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001/0.4308, allocations: 43.61 kB / 435 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003964/0.4312, allocations: 151.9 kB / 435.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002639/0.4338, allocations: 1.861 MB / 437 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01702/0.4508, allocations: 8.324 MB / 445.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05092/0.5018, allocations: 39.25 MB / 484.6 MB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.5133, allocations: 3.995 MB / 488.6 MB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002448/0.5158, allocations: 1.428 MB / 490 MB, free: 8.402 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01242/0.5283, allocations: 7.626 MB / 497.6 MB, free: 300 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.524e-05/0.5284, allocations: 51.56 kB / 497.7 MB, free: 240 kB / 414.1 MB Notification: Performance of pre-optimization done (n=152): time 4.379e-06/0.5284, allocations: 0 / 497.7 MB, free: 240 kB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.03398/0.5624, allocations: 12.4 MB / 0.4981 GB, free: 3.637 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001681/0.5641, allocations: 1.687 MB / 0.4998 GB, free: 1.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006993/0.5711, allocations: 3.82 MB / 0.5035 GB, free: 13.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005126/0.5717, allocations: 49.7 kB / 0.5036 GB, free: 13.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002609/0.5743, allocations: 3.111 MB / 0.5066 GB, free: 10.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009221/0.5753, allocations: 0.6482 MB / 0.5072 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/0.5769, allocations: 1.261 MB / 0.5085 GB, free: 8.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.577, allocations: 305.1 kB / 0.5088 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003047/0.58, allocations: 2.03 MB / 0.5107 GB, free: 6.484 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005821/0.5859, allocations: 5.973 MB / 0.5166 GB, free: 14.54 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/0.5961, allocations: 8.619 MB / 0.525 GB, free: 3.961 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/0.5963, allocations: 40 kB / 0.525 GB, free: 3.922 MB / 462.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02401/0.6203, allocations: 9.734 MB / 0.5345 GB, free: 10.16 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.986e-05/0.6205, allocations: 64 kB / 0.5346 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01191/0.6324, allocations: 3.749 MB / 0.5383 GB, free: 6.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0127/0.6451, allocations: 2.61 MB / 0.5408 GB, free: 3.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/0.6495, allocations: 1.368 MB / 0.5421 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2421/0.8916, allocations: 7.701 MB / 0.5497 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005265/0.897, allocations: 400.8 kB / 0.55 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/0.8982, allocations: 389.3 kB / 0.5504 GB, free: 140.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.004519/0.9028, allocations: 2.021 MB / 0.5524 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007223/0.9035, allocations: 325.1 kB / 0.5527 GB, free: 139.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007451/0.911, allocations: 3.122 MB / 0.5557 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006327/0.9173, allocations: 2.687 MB / 0.5584 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/0.9174, allocations: 3.594 kB / 0.5584 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/0.9174, allocations: 8.359 kB / 0.5584 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.9342, allocations: 8.553 MB / 0.5667 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.9343, allocations: 4.031 kB / 0.5667 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000961/0.9353, allocations: 184.5 kB / 0.5669 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004521/0.9398, allocations: 1.436 MB / 0.5683 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003034/0.9401, allocations: 35 kB / 0.5684 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005767/0.9459, allocations: 6.016 MB / 0.5742 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007653/0.9467, allocations: 1.543 MB / 0.5757 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008543/0.9553, allocations: 5.317 MB / 0.5809 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/0.9566, allocations: 370.8 kB / 0.5813 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/0.957, allocations: 34.5 kB / 0.5813 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.9584, allocations: 118.9 kB / 0.5814 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/0.9586, allocations: 92.66 kB / 0.5815 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.9587, allocations: 41.3 kB / 0.5816 GB, free: 127.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003612/0.9624, allocations: 2.351 MB / 0.5838 GB, free: 126.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9624, allocations: 0 / 0.5838 GB, free: 126.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006545/0.9689, allocations: 1.037 MB / 0.5849 GB, free: 126.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005716/0.9695, allocations: 170.4 kB / 0.585 GB, free: 126.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008636/0.9782, allocations: 5.505 MB / 0.5904 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.9783, allocations: 4 kB / 0.5904 GB, free: 123.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003852/0.9821, allocations: 2.035 MB / 0.5924 GB, free: 121.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.9849, allocations: 391.9 kB / 0.5928 GB, free: 121 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.9984, allocations: 8.97 MB / 0.6015 GB, free: 112 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002475/1.001, allocations: 3.108 MB / 0.6046 GB, free: 108.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003273/1.004, allocations: 1.804 MB / 0.6063 GB, free: 107.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/1.005, allocations: 223.4 kB / 0.6065 GB, free: 106.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/1.005, allocations: 0 / 0.6065 GB, free: 106.9 MB / 478.1 MB Notification: Performance of Templates: time 0.05356/1.058, allocations: 35.47 MB / 0.6412 GB, free: 71.45 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)