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.009033/0.009033, allocations: 98.27 kB / 15.73 MB, free: 6.012 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.002234/0.002235, allocations: 196.2 kB / 16.68 MB, free: 5.93 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2113/0.2113, allocations: 28.77 MB / 319.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.91 kB / 444.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1433, allocations: 56.41 MB / 0.489 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.005608/0.149, allocations: 3.7 MB / 0.4926 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.1509, allocations: 0.8683 MB / 0.4934 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003804/0.1513, allocations: 15.94 kB / 0.4934 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004319/0.1518, allocations: 166.3 kB / 0.4936 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.1521, allocations: 114.9 kB / 0.4937 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000841/0.153, allocations: 451.6 kB / 0.4941 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000967/0.154, allocations: 1.023 MB / 0.4951 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009422/0.1549, allocations: 0.7102 MB / 0.4958 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003818/0.1553, allocations: 370.3 kB / 0.4962 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003775/0.1557, allocations: 425.6 kB / 0.4966 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.1558, allocations: 120 kB / 0.4967 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.1561, allocations: 144 kB / 0.4968 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003536/0.1564, allocations: 314.9 kB / 0.4971 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.1569, allocations: 0.5397 MB / 0.4977 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.1582, allocations: 1.272 MB / 0.4989 GB, free: 15.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1583, allocations: 0 / 0.4989 GB, free: 15.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1583, allocations: 0 / 0.4989 GB, free: 15.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.1583, allocations: 0 / 0.4989 GB, free: 15.85 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.001935/0.1602, allocations: 1.432 MB / 0.5003 GB, free: 14.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1603, allocations: 8.031 kB / 0.5003 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.1605, allocations: 148 kB / 0.5005 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009405/0.1614, allocations: 0.7146 MB / 0.5012 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-05/0.1615, allocations: 82.58 kB / 0.5012 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.1616, allocations: 120.4 kB / 0.5013 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.1632, allocations: 1.09 MB / 0.5024 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.1632, allocations: 7.938 kB / 0.5024 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.754e-05/0.1633, allocations: 44 kB / 0.5025 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.1633, allocations: 31.94 kB / 0.5025 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.1644, allocations: 0.7144 MB / 0.5032 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005499/0.17, allocations: 4.092 MB / 0.5072 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.171, allocations: 453.7 kB / 0.5076 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.1714, allocations: 201.3 kB / 0.5078 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.991e-05/0.1715, allocations: 20.27 kB / 0.5078 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1716, allocations: 38.78 kB / 0.5079 GB, free: 6.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.805e-06/0.1716, allocations: 0 / 0.5079 GB, free: 6.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001586/0.1732, allocations: 0.6444 MB / 0.5085 GB, free: 5.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1733, allocations: 59.34 kB / 0.5086 GB, free: 5.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.1745, allocations: 0.6763 MB / 0.5092 GB, free: 4.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.1746, allocations: 33.7 kB / 0.5092 GB, free: 4.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005646/0.1751, allocations: 0.5933 MB / 0.5098 GB, free: 4.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.1753, allocations: 138.8 kB / 0.51 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.1755, allocations: 98.2 kB / 0.5101 GB, free: 4.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.1757, allocations: 326 kB / 0.5104 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005213/0.1762, allocations: 209 kB / 0.5106 GB, free: 3.496 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.1769, allocations: 357.6 kB / 0.5109 GB, free: 3.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.178, allocations: 0.5795 MB / 0.5115 GB, free: 2.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.1781, allocations: 4 kB / 0.5115 GB, free: 2.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001474/0.1795, allocations: 0.6689 MB / 0.5121 GB, free: 1.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.1796, allocations: 8.125 kB / 0.5121 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.1796, allocations: 8 kB / 0.5121 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.1796, allocations: 4 kB / 0.5121 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005106/0.1802, allocations: 103.8 kB / 0.5122 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.1802, allocations: 4 kB / 0.5122 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1806, allocations: 55.66 kB / 0.5123 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.1806, allocations: 24 kB / 0.5123 GB, free: 1.559 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.000686/0.1813, allocations: 289.1 kB / 0.5126 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.1815, allocations: 79.48 kB / 0.5127 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.1829, allocations: 0.5278 MB / 0.5132 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.1829, allocations: 7.938 kB / 0.5132 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.1829, allocations: 112 / 0.5132 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1829, allocations: 7.922 kB / 0.5132 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2863/0.4692, allocations: 0.8445 MB / 0.514 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.4693, allocations: 0 / 0.514 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.4698, allocations: 64.53 kB / 0.5141 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.4698, allocations: 1.562 kB / 0.5141 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.4699, allocations: 13.3 kB / 0.5141 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-06/0.4699, allocations: 5.219 kB / 0.5141 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.4699, allocations: 0 / 0.5141 GB, free: 27.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.4714, allocations: 0.8413 MB / 0.5149 GB, free: 27.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.4716, allocations: 145 kB / 0.5151 GB, free: 27.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.855e-05/0.4716, allocations: 9.172 kB / 0.5151 GB, free: 27.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.4718, allocations: 14.8 kB / 0.5151 GB, free: 27.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.769e-05/0.4719, allocations: 17.52 kB / 0.5151 GB, free: 27.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.472, allocations: 16.95 kB / 0.5151 GB, free: 27.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005751/0.4725, allocations: 475.7 kB / 0.5156 GB, free: 27.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4726, allocations: 1 kB / 0.5156 GB, free: 27.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005972/0.4732, allocations: 197 kB / 0.5158 GB, free: 27.4 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.0001684/0.4733, allocations: 118.9 kB / 0.5159 GB, free: 27.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007164/0.4741, allocations: 492 kB / 0.5164 GB, free: 27.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4741, allocations: 0 / 0.5164 GB, free: 27.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.4744, allocations: 219.2 kB / 0.5166 GB, free: 27.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.475, allocations: 99.23 kB / 0.5167 GB, free: 27.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.4777, allocations: 1.809 MB / 0.5184 GB, free: 26.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005303/0.4782, allocations: 1.059 MB / 0.5195 GB, free: 25.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.4785, allocations: 61.56 kB / 0.5195 GB, free: 25.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.4786, allocations: 42.44 kB / 0.5196 GB, free: 25.79 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4786, allocations: 0 / 0.5196 GB, free: 25.79 MB / 398.1 MB Notification: Performance of Templates: time 0.01291/0.4915, allocations: 4.795 MB / 0.5242 GB, free: 25.41 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)