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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 110.5 kB / 16.41 MB, free: 6.492 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.001197/0.001198, allocations: 187 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1827/0.1827, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 59.91 kB / 445 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.124, allocations: 56.42 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.005426/0.1295, allocations: 3.7 MB / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.132, allocations: 0.8606 MB / 0.4941 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.1332, allocations: 19.88 kB / 0.4941 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007786/0.1341, allocations: 170.3 kB / 0.4943 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009449/0.1351, allocations: 102.9 kB / 0.4944 GB, free: 5.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.1365, allocations: 451.6 kB / 0.4948 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001626/0.1382, allocations: 1.023 MB / 0.4958 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.1392, allocations: 0.7141 MB / 0.4965 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.1396, allocations: 374.3 kB / 0.4968 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.14, allocations: 417.6 kB / 0.4972 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.1401, allocations: 116 kB / 0.4974 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000244/0.1404, allocations: 144 kB / 0.4975 GB, free: 2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003006/0.1407, allocations: 314.9 kB / 0.4978 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004361/0.1412, allocations: 0.5474 MB / 0.4983 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.1424, allocations: 1.261 MB / 0.4996 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1424, allocations: 0 / 0.4996 GB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1424, allocations: 3.938 kB / 0.4996 GB, free: 15.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.1425, allocations: 0 / 0.4996 GB, free: 15.87 MB / 398.1 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.001992/0.1445, allocations: 1.387 MB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.1445, allocations: 12.03 kB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.1447, allocations: 139.2 kB / 0.5011 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.1458, allocations: 0.7139 MB / 0.5018 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.93e-05/0.1459, allocations: 90.58 kB / 0.5018 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.146, allocations: 108.4 kB / 0.5019 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1477, allocations: 1.094 MB / 0.503 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.1477, allocations: 0 / 0.503 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.882e-05/0.1478, allocations: 44 kB / 0.5031 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.1478, allocations: 32 kB / 0.5031 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.149, allocations: 0.7066 MB / 0.5038 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004847/0.1539, allocations: 4.103 MB / 0.5078 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008993/0.1548, allocations: 455.2 kB / 0.5082 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.1551, allocations: 193.3 kB / 0.5084 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.21e-05/0.1552, allocations: 16.27 kB / 0.5084 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.1552, allocations: 34.84 kB / 0.5085 GB, free: 6.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 4.378e-06/0.1553, allocations: 3.938 kB / 0.5085 GB, free: 6.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001103/0.1564, allocations: 0.644 MB / 0.5091 GB, free: 5.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.1564, allocations: 63.28 kB / 0.5091 GB, free: 5.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008038/0.1572, allocations: 0.6684 MB / 0.5098 GB, free: 4.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1573, allocations: 29.7 kB / 0.5098 GB, free: 4.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003825/0.1577, allocations: 0.5879 MB / 0.5104 GB, free: 4.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.1578, allocations: 130.1 kB / 0.5105 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.158, allocations: 102.2 kB / 0.5106 GB, free: 4.125 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1581, allocations: 330 kB / 0.5109 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.1584, allocations: 205 kB / 0.5111 GB, free: 3.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004095/0.1588, allocations: 351.5 kB / 0.5115 GB, free: 3.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007536/0.1596, allocations: 0.5795 MB / 0.512 GB, free: 2.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1596, allocations: 0 / 0.512 GB, free: 2.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009815/0.1606, allocations: 0.6645 MB / 0.5127 GB, free: 1.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.1606, allocations: 8 kB / 0.5127 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1606, allocations: 4 kB / 0.5127 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.1607, allocations: 11.98 kB / 0.5127 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.161, allocations: 95.84 kB / 0.5128 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.1611, allocations: 15.92 kB / 0.5128 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.1613, allocations: 55.42 kB / 0.5129 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.1613, allocations: 20.28 kB / 0.5129 GB, free: 1.664 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004016/0.1617, allocations: 297.1 kB / 0.5132 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.1618, allocations: 67.16 kB / 0.5132 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.1627, allocations: 0.5239 MB / 0.5137 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.1627, allocations: 8 kB / 0.5138 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1627, allocations: 0 / 0.5138 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1627, allocations: 0 / 0.5138 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2726/0.4353, allocations: 0.8426 MB / 0.5146 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.4354, allocations: 4.188 kB / 0.5146 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004587/0.4359, allocations: 62.97 kB / 0.5146 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.305e-05/0.4359, allocations: 1.141 kB / 0.5146 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/0.4359, allocations: 14.53 kB / 0.5147 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.436, allocations: 1.094 kB / 0.5147 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.436, allocations: 0 / 0.5147 GB, free: 27.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.4378, allocations: 0.8484 MB / 0.5155 GB, free: 27.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.438, allocations: 140.8 kB / 0.5156 GB, free: 27.03 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.651e-05/0.438, allocations: 11.97 kB / 0.5156 GB, free: 27.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.4382, allocations: 10.83 kB / 0.5156 GB, free: 27.03 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.4384, allocations: 23.23 kB / 0.5157 GB, free: 27.03 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.4384, allocations: 9.734 kB / 0.5157 GB, free: 27.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007292/0.4391, allocations: 473.1 kB / 0.5161 GB, free: 26.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4391, allocations: 0 / 0.5161 GB, free: 26.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007767/0.4399, allocations: 194.9 kB / 0.5163 GB, free: 26.93 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002385/0.4402, allocations: 117.3 kB / 0.5164 GB, free: 26.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008171/0.441, allocations: 491.5 kB / 0.5169 GB, free: 26.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.441, allocations: 0 / 0.5169 GB, free: 26.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003152/0.4413, allocations: 221.7 kB / 0.5171 GB, free: 26.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.442, allocations: 109.8 kB / 0.5172 GB, free: 26.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.4447, allocations: 1.823 MB / 0.519 GB, free: 26.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005811/0.4453, allocations: 1.063 MB / 0.52 GB, free: 25.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.4454, allocations: 47.42 kB / 0.5201 GB, free: 25.33 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4455, allocations: 0 / 0.5201 GB, free: 25.33 MB / 398.1 MB Notification: Performance of Templates: time 0.01825/0.4637, allocations: 8.963 MB / 0.5288 GB, free: 24.23 MB / 398.1 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)