Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008186/0.0008187, allocations: 173.6 kB / 16.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.15/1.15, allocations: 205.4 MB / 222.3 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007176/0.0007176, allocations: 89.05 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1353/0.1353, allocations: 28.84 MB / 347.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 12 kB / 413 MB, free: 47.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06626/0.06658, allocations: 54.64 MB / 467.7 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.2881, allocations: 79.17 MB / 0.534 GB, free: 7.312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.2883, allocations: 68.75 kB / 0.5341 GB, free: 7.246 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02919/0.3175, allocations: 13.99 MB / 0.5478 GB, free: 9.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3175, allocations: 0 / 0.5478 GB, free: 9.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.297e-05/0.3176, allocations: 27.94 kB / 0.5478 GB, free: 9.203 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 279 * Number of variables: 279 Notification: Performance of Generate backend data structure: time 0.001416/0.319, allocations: 1.185 MB / 0.5489 GB, free: 7.961 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.3191, allocations: 8.031 kB / 0.549 GB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.3192, allocations: 139.2 kB / 0.5491 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007826/0.32, allocations: 0.7139 MB / 0.5498 GB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.855e-05/0.3201, allocations: 86.58 kB / 0.5499 GB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.3202, allocations: 116.4 kB / 0.55 GB, free: 6.863 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.3218, allocations: 1.121 MB / 0.5511 GB, free: 5.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.3218, allocations: 7.984 kB / 0.5511 GB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/0.3219, allocations: 44 kB / 0.5511 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.936e-05/0.3219, allocations: 32 kB / 0.5511 GB, free: 5.562 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.3231, allocations: 0.7572 MB / 0.5519 GB, free: 4.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003809/0.3269, allocations: 4.172 MB / 0.556 GB, free: 496 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000816/0.3277, allocations: 0.4918 MB / 0.5564 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.328, allocations: 229.2 kB / 0.5567 GB, free: 15.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.312e-05/0.3281, allocations: 16.27 kB / 0.5567 GB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.3281, allocations: 34.84 kB / 0.5567 GB, free: 15.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 2.454e-06/0.3281, allocations: 0 / 0.5567 GB, free: 15.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001063/0.3292, allocations: 0.7251 MB / 0.5574 GB, free: 14.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.3293, allocations: 59.34 kB / 0.5575 GB, free: 14.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006738/0.3299, allocations: 0.6644 MB / 0.5581 GB, free: 14.22 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.33, allocations: 33.7 kB / 0.5582 GB, free: 14.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003243/0.3303, allocations: 0.5841 MB / 0.5587 GB, free: 13.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.533e-05/0.3304, allocations: 126.2 kB / 0.5588 GB, free: 13.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.3304, allocations: 12 kB / 0.5589 GB, free: 13.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.527e-05/0.3305, allocations: 330 kB / 0.5592 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.3309, allocations: 232.9 kB / 0.5594 GB, free: 12.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.3313, allocations: 379.5 kB / 0.5598 GB, free: 12.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007884/0.3321, allocations: 0.6266 MB / 0.5604 GB, free: 11.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.3321, allocations: 4 kB / 0.5604 GB, free: 11.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009764/0.3331, allocations: 0.7229 MB / 0.5611 GB, free: 11.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3331, allocations: 4 kB / 0.5611 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3332, allocations: 8 kB / 0.5611 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3332, allocations: 7.984 kB / 0.5611 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.3335, allocations: 107.8 kB / 0.5612 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3336, allocations: 8 kB / 0.5612 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.3338, allocations: 47.78 kB / 0.5613 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.3338, allocations: 43.92 kB / 0.5613 GB, free: 10.81 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 10 (Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003309/0.3342, allocations: 279.8 kB / 0.5616 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.599e-05/0.3343, allocations: 71.16 kB / 0.5616 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.3353, allocations: 0.6564 MB / 0.5623 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3353, allocations: 4 kB / 0.5623 GB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3353, allocations: 0 / 0.5623 GB, free: 9.781 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3354, allocations: 3.984 kB / 0.5623 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008264/0.3362, allocations: 0.8288 MB / 0.5631 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3362, allocations: 0 / 0.5631 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003367/0.3365, allocations: 79.91 kB / 0.5632 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3365, allocations: 0 / 0.5632 GB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.3366, allocations: 15.98 kB / 0.5632 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3366, allocations: 0 / 0.5632 GB, free: 8.805 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3366, allocations: 3.984 kB / 0.5632 GB, free: 8.801 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.3378, allocations: 0.9523 MB / 0.5641 GB, free: 7.832 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.948e-05/0.3379, allocations: 140.1 kB / 0.5642 GB, free: 7.676 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.488e-05/0.3379, allocations: 11.94 kB / 0.5643 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.3381, allocations: 15.98 kB / 0.5643 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.115e-05/0.3382, allocations: 23.97 kB / 0.5643 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.3382, allocations: 27.98 kB / 0.5643 GB, free: 7.598 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004581/0.3387, allocations: 467 kB / 0.5648 GB, free: 7.145 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3387, allocations: 0 / 0.5648 GB, free: 7.145 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004419/0.3392, allocations: 202.6 kB / 0.565 GB, free: 6.945 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.y,Del_Ind_Out_PC.Smooth1.Integrator1.y,Del_Ind_Out_PC.Smooth2.Integrator1.y,Del_Ind_Out_PC.Smooth3.Integrator1.y,Perc_Life_Expectancy.Smooth1.Integrator1.y,Perc_Life_Expectancy.Smooth2.Integrator1.y,Perc_Life_Expectancy.Smooth3.Integrator1.y,Fert_Cont_Facil_PC.Smooth1.Integrator1.y,Fert_Cont_Facil_PC.Smooth2.Integrator1.y,Fert_Cont_Facil_PC.Smooth3.Integrator1.y) * 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 (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.3393, allocations: 117 kB / 0.5651 GB, free: 6.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.34, allocations: 496.2 kB / 0.5655 GB, free: 6.336 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.34, allocations: 0 / 0.5655 GB, free: 6.336 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002625/0.3402, allocations: 224.7 kB / 0.5658 GB, free: 6.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.3407, allocations: 94.75 kB / 0.5659 GB, free: 6.027 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.3432, allocations: 2.176 MB / 0.568 GB, free: 3.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/0.3438, allocations: 1.065 MB / 0.569 GB, free: 2.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002096/0.344, allocations: 68.23 kB / 0.5691 GB, free: 2.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.974e-05/0.3441, allocations: 39.44 kB / 0.5691 GB, free: 2.621 MB / 394.7 MB Notification: Performance of SimCode: time 1.9e-07/0.3441, allocations: 0 / 0.5691 GB, free: 2.621 MB / 394.7 MB Notification: Performance of Templates: time 0.00862/0.3527, allocations: 4.233 MB / 0.5733 GB, free: 14.38 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)