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.001671/0.001671, allocations: 113.6 kB / 16.41 MB, free: 6.504 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.00181/0.00181, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.471/1.471, 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.1995/0.1995, allocations: 28.77 MB / 320 MB, free: 1.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.89 kB / 445 MB, free: 2.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1111, allocations: 56.41 MB / 0.4896 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.00521/0.1163, allocations: 3.712 MB / 0.4933 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001952/0.1182, allocations: 0.8684 MB / 0.4941 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.1186, allocations: 19.88 kB / 0.4941 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004373/0.119, allocations: 158.3 kB / 0.4943 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002954/0.1193, allocations: 114.9 kB / 0.4944 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008726/0.1202, allocations: 455.5 kB / 0.4948 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1213, allocations: 1.016 MB / 0.4958 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007758/0.1221, allocations: 0.5073 MB / 0.4963 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003648/0.1225, allocations: 370.3 kB / 0.4967 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.1229, allocations: 417.6 kB / 0.4971 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.123, allocations: 120 kB / 0.4972 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.1233, allocations: 151.9 kB / 0.4973 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003029/0.1236, allocations: 314.9 kB / 0.4976 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004486/0.124, allocations: 0.5358 MB / 0.4981 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1253, allocations: 1.275 MB / 0.4994 GB, free: 72 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1253, allocations: 0 / 0.4994 GB, free: 72 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1253, allocations: 0 / 0.4994 GB, free: 72 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.1254, allocations: 0 / 0.4994 GB, free: 72 kB / 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.002055/0.1274, allocations: 1.425 MB / 0.5008 GB, free: 14.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1274, allocations: 11.97 kB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.1276, allocations: 148 kB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.1287, allocations: 0.7185 MB / 0.5016 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.231e-05/0.1288, allocations: 82.58 kB / 0.5017 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1289, allocations: 120.4 kB / 0.5018 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.1307, allocations: 1.086 MB / 0.5029 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.1307, allocations: 7.938 kB / 0.5029 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.616e-05/0.1308, allocations: 44 kB / 0.5029 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/0.1308, allocations: 28 kB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.1321, allocations: 0.7144 MB / 0.5037 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004618/0.1367, allocations: 4.108 MB / 0.5077 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008604/0.1376, allocations: 445.3 kB / 0.5081 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.1379, allocations: 189.3 kB / 0.5083 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.166e-05/0.1379, allocations: 16.27 kB / 0.5083 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.138, allocations: 34.84 kB / 0.5083 GB, free: 6.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.094e-06/0.138, allocations: 3.938 kB / 0.5083 GB, free: 6.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001184/0.1391, allocations: 0.6522 MB / 0.509 GB, free: 5.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.1392, allocations: 59.34 kB / 0.509 GB, free: 5.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008538/0.1401, allocations: 0.6685 MB / 0.5097 GB, free: 5.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.1401, allocations: 29.7 kB / 0.5097 GB, free: 5.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004693/0.1406, allocations: 0.6011 MB / 0.5103 GB, free: 4.492 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.1407, allocations: 134.9 kB / 0.5104 GB, free: 4.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/0.1409, allocations: 106.2 kB / 0.5105 GB, free: 4.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.1411, allocations: 322 kB / 0.5108 GB, free: 3.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.1414, allocations: 209 kB / 0.511 GB, free: 3.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004784/0.1419, allocations: 355.5 kB / 0.5114 GB, free: 3.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008576/0.1428, allocations: 0.5757 MB / 0.5119 GB, free: 2.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1428, allocations: 0 / 0.5119 GB, free: 2.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001049/0.1438, allocations: 0.6727 MB / 0.5126 GB, free: 1.992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1438, allocations: 8 kB / 0.5126 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1439, allocations: 4 kB / 0.5126 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.1439, allocations: 8 kB / 0.5126 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.1443, allocations: 99.94 kB / 0.5127 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/0.1443, allocations: 15.88 kB / 0.5127 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1445, allocations: 47.67 kB / 0.5128 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.1445, allocations: 23.98 kB / 0.5128 GB, free: 1.789 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.000395/0.1449, allocations: 289.4 kB / 0.5131 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.145, allocations: 75.48 kB / 0.5131 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009581/0.146, allocations: 0.524 MB / 0.5136 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.146, allocations: 4 kB / 0.5136 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.146, allocations: 4 kB / 0.5137 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.146, allocations: 7.922 kB / 0.5137 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.222/0.3681, allocations: 0.8418 MB / 0.5145 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.3681, allocations: 0 / 0.5145 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005045/0.3686, allocations: 63.19 kB / 0.5145 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.3686, allocations: 2.062 kB / 0.5145 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.3686, allocations: 15.03 kB / 0.5146 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.3686, allocations: 1.688 kB / 0.5146 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3686, allocations: 1.156 kB / 0.5146 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.37, allocations: 0.8432 MB / 0.5154 GB, free: 27.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.3701, allocations: 148.8 kB / 0.5155 GB, free: 26.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.3702, allocations: 10.38 kB / 0.5155 GB, free: 26.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.3704, allocations: 11.69 kB / 0.5155 GB, free: 26.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.765e-05/0.3705, allocations: 22.47 kB / 0.5156 GB, free: 26.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.3705, allocations: 6.875 kB / 0.5156 GB, free: 26.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005718/0.3711, allocations: 472.5 kB / 0.516 GB, free: 26.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3711, allocations: 0.5 kB / 0.516 GB, free: 26.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005443/0.3716, allocations: 202.3 kB / 0.5162 GB, free: 26.84 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.000171/0.3718, allocations: 117.3 kB / 0.5163 GB, free: 26.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007464/0.3725, allocations: 478 kB / 0.5168 GB, free: 26.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3725, allocations: 0 / 0.5168 GB, free: 26.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.3728, allocations: 216.6 kB / 0.517 GB, free: 26.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.3735, allocations: 98.47 kB / 0.5171 GB, free: 26.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3762, allocations: 1.808 MB / 0.5189 GB, free: 25.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005841/0.3768, allocations: 1.069 MB / 0.5199 GB, free: 25.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.377, allocations: 59.28 kB / 0.52 GB, free: 25.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.465e-05/0.3771, allocations: 39.39 kB / 0.52 GB, free: 25.22 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3771, allocations: 0 / 0.52 GB, free: 25.22 MB / 398.1 MB Notification: Performance of Templates: time 0.01216/0.3892, allocations: 4.814 MB / 0.5247 GB, free: 24.84 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)