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.007525/0.007525, allocations: 96.56 kB / 15.73 MB, free: 6.043 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.001654/0.001654, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3558/0.3558, allocations: 28.8 MB / 319.3 MB, free: 5.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 62.77 kB / 444.3 MB, free: 36.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.134, allocations: 56.42 MB / 0.489 GB, free: 8.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004742/0.1388, allocations: 3.7 MB / 0.4926 GB, free: 5.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1408, allocations: 0.873 MB / 0.4935 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005372/0.1413, allocations: 20.47 kB / 0.4935 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000468/0.1418, allocations: 164.8 kB / 0.4936 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.1422, allocations: 115.2 kB / 0.4938 GB, free: 4.629 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009397/0.1431, allocations: 449.1 kB / 0.4942 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.1444, allocations: 1.028 MB / 0.4952 GB, free: 3.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007284/0.1451, allocations: 0.7063 MB / 0.4959 GB, free: 2.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.1454, allocations: 370.4 kB / 0.4962 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.1457, allocations: 429.5 kB / 0.4966 GB, free: 1.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1458, allocations: 119.9 kB / 0.4967 GB, free: 1.863 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.146, allocations: 144 kB / 0.4969 GB, free: 1.723 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.1462, allocations: 310.9 kB / 0.4972 GB, free: 1.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000286/0.1465, allocations: 0.5397 MB / 0.4977 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.1476, allocations: 1.279 MB / 0.499 GB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.1477, allocations: 0 / 0.499 GB, free: 15.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1477, allocations: 0 / 0.499 GB, free: 15.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.1477, allocations: 0 / 0.499 GB, free: 15.59 MB / 382.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.002225/0.1499, allocations: 1.423 MB / 0.5003 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.15, allocations: 8.031 kB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.1502, allocations: 148 kB / 0.5005 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.1517, allocations: 0.7185 MB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.963e-05/0.1518, allocations: 82.58 kB / 0.5013 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.1519, allocations: 112.4 kB / 0.5014 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.1538, allocations: 1.098 MB / 0.5025 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.1539, allocations: 7.938 kB / 0.5025 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.415e-05/0.1539, allocations: 44 kB / 0.5025 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/0.154, allocations: 28 kB / 0.5025 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1552, allocations: 0.7027 MB / 0.5032 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005524/0.1607, allocations: 4.112 MB / 0.5072 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009119/0.1617, allocations: 451.2 kB / 0.5077 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002757/0.1619, allocations: 193.3 kB / 0.5079 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.159e-05/0.162, allocations: 16.27 kB / 0.5079 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1621, allocations: 38.84 kB / 0.5079 GB, free: 6.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 3.436e-06/0.1621, allocations: 0 / 0.5079 GB, free: 6.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001125/0.1632, allocations: 0.6475 MB / 0.5085 GB, free: 5.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.1633, allocations: 59.34 kB / 0.5086 GB, free: 5.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.1643, allocations: 0.6685 MB / 0.5092 GB, free: 4.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.1644, allocations: 33.7 kB / 0.5093 GB, free: 4.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007114/0.1651, allocations: 0.6011 MB / 0.5099 GB, free: 4.012 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.1652, allocations: 138.8 kB / 0.51 GB, free: 3.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.1654, allocations: 102.2 kB / 0.5101 GB, free: 3.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002889/0.1657, allocations: 326 kB / 0.5104 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.1662, allocations: 201 kB / 0.5106 GB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/0.1667, allocations: 360.2 kB / 0.5109 GB, free: 2.836 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008156/0.1675, allocations: 0.5836 MB / 0.5115 GB, free: 2.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1675, allocations: 3.938 kB / 0.5115 GB, free: 2.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009598/0.1685, allocations: 0.6684 MB / 0.5122 GB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.1685, allocations: 8 kB / 0.5122 GB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1686, allocations: 4.625 kB / 0.5122 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.1686, allocations: 15.94 kB / 0.5122 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.169, allocations: 99.83 kB / 0.5123 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.169, allocations: 11.94 kB / 0.5123 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.1692, allocations: 47.66 kB / 0.5123 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.1693, allocations: 24 kB / 0.5124 GB, free: 1.301 MB / 382.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.0003821/0.1696, allocations: 284.2 kB / 0.5126 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.687e-05/0.1697, allocations: 75.48 kB / 0.5127 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000961/0.1707, allocations: 0.5395 MB / 0.5132 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1707, allocations: 4 kB / 0.5132 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1707, allocations: 0 / 0.5132 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1708, allocations: 3.984 kB / 0.5132 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.172, allocations: 0.8406 MB / 0.5141 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1721, allocations: 4 kB / 0.5141 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/0.1724, allocations: 67.91 kB / 0.5141 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/0.1724, allocations: 4 kB / 0.5141 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.1725, allocations: 11.98 kB / 0.5142 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1725, allocations: 0 / 0.5142 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1725, allocations: 0 / 0.5142 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.1737, allocations: 0.8362 MB / 0.515 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1739, allocations: 152.6 kB / 0.5151 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.689e-05/0.174, allocations: 8 kB / 0.5151 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.1742, allocations: 11.98 kB / 0.5151 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.1743, allocations: 23.97 kB / 0.5152 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.1743, allocations: 12 kB / 0.5152 GB, free: 14.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006954/0.175, allocations: 471 kB / 0.5156 GB, free: 13.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.312e-06/0.175, allocations: 96 / 0.5156 GB, free: 13.88 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007947/0.1758, allocations: 202.9 kB / 0.5158 GB, free: 13.68 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.0002398/0.1761, allocations: 113 kB / 0.5159 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009743/0.177, allocations: 499.5 kB / 0.5164 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.1771, allocations: 1.25 kB / 0.5164 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.1774, allocations: 223.7 kB / 0.5166 GB, free: 12.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.1781, allocations: 119.2 kB / 0.5167 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.1813, allocations: 1.792 MB / 0.5185 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.1825, allocations: 1.069 MB / 0.5195 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000266/0.1828, allocations: 56.25 kB / 0.5196 GB, free: 9.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1829, allocations: 47.44 kB / 0.5196 GB, free: 9.715 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1829, allocations: 0 / 0.5196 GB, free: 9.715 MB / 398.1 MB Notification: Performance of Templates: time 0.01305/0.196, allocations: 4.781 MB / 0.5243 GB, free: 4.941 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)