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.001097/0.001097, allocations: 103.2 kB / 16.36 MB, free: 6.336 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.001104/0.001104, allocations: 198 kB / 17.3 MB, free: 5.883 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1647/0.1647, allocations: 28.78 MB / 319.9 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 66.39 kB / 388 MB, free: 40.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.114, allocations: 56.44 MB / 444.5 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004952/0.119, allocations: 3.694 MB / 448.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1208, allocations: 0.8723 MB / 449 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.1212, allocations: 15.94 kB / 449 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004712/0.1217, allocations: 162.3 kB / 449.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.122, allocations: 106.9 kB / 449.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008751/0.1229, allocations: 447.5 kB / 449.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.1239, allocations: 1.023 MB / 450.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009175/0.1248, allocations: 0.7141 MB / 451.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.1252, allocations: 370.3 kB / 451.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.1256, allocations: 429.5 kB / 452.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.1257, allocations: 116 kB / 452.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.1259, allocations: 144 kB / 452.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.1262, allocations: 306.9 kB / 452.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.1266, allocations: 0.5436 MB / 453.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.1278, allocations: 1.265 MB / 454.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1278, allocations: 0 / 454.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.1279, allocations: 0 / 454.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.417e-05/0.1279, allocations: 0 / 454.6 MB, free: 8.809 MB / 334.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.002076/0.13, allocations: 1.383 MB / 456 MB, free: 7.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.13, allocations: 8.031 kB / 456 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.1302, allocations: 143.2 kB / 456.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.1313, allocations: 0.7178 MB / 456.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.292e-05/0.1313, allocations: 82.58 kB / 456.9 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.1315, allocations: 108.4 kB / 457 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.1331, allocations: 1.102 MB / 458.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.1331, allocations: 3.938 kB / 458.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.484e-05/0.1332, allocations: 44 kB / 458.2 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.551e-05/0.1332, allocations: 28 kB / 458.2 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1344, allocations: 0.7066 MB / 458.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004016/0.1384, allocations: 4.103 MB / 463 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000822/0.1392, allocations: 451.3 kB / 463.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.1395, allocations: 193.3 kB / 463.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.1396, allocations: 16.27 kB / 463.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.1396, allocations: 42.78 kB / 463.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.933e-06/0.1396, allocations: 4 kB / 463.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.00101/0.1406, allocations: 0.6363 MB / 464.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.1407, allocations: 59.34 kB / 464.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007556/0.1415, allocations: 0.6684 MB / 465.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1415, allocations: 33.7 kB / 465.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/0.1419, allocations: 0.5878 MB / 465.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.142, allocations: 134.1 kB / 465.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.1421, allocations: 102.2 kB / 465.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1423, allocations: 326 kB / 466.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003082/0.1426, allocations: 205 kB / 466.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000418/0.143, allocations: 359.5 kB / 466.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007015/0.1437, allocations: 0.5796 MB / 467.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1437, allocations: 4 kB / 467.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009096/0.1447, allocations: 0.664 MB / 468.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1447, allocations: 11.94 kB / 468.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1447, allocations: 4.625 kB / 468.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.1447, allocations: 8 kB / 468.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.1451, allocations: 103.8 kB / 468.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.1451, allocations: 11.98 kB / 468.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1453, allocations: 47.53 kB / 468.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.1454, allocations: 23.98 kB / 468.3 MB, free: 10.59 MB / 350.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.0003484/0.1457, allocations: 284.3 kB / 468.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.1458, allocations: 71.16 kB / 468.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008283/0.1467, allocations: 0.5393 MB / 469.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.1467, allocations: 7.984 kB / 469.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1467, allocations: 0 / 469.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1467, allocations: 0 / 469.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009092/0.1476, allocations: 0.8367 MB / 470 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1476, allocations: 112 / 470 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.148, allocations: 75.83 kB / 470.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.148, allocations: 7.938 kB / 470.1 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.148, allocations: 8 kB / 470.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.148, allocations: 4 kB / 470.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.148, allocations: 0 / 470.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.1491, allocations: 0.8434 MB / 470.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.1492, allocations: 140.3 kB / 471.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.1493, allocations: 19.92 kB / 471.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.1495, allocations: 8 kB / 471.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.458e-05/0.1496, allocations: 19.97 kB / 471.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1496, allocations: 12 kB / 471.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.1501, allocations: 471 kB / 471.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1501, allocations: 0 / 471.6 MB, free: 7.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005459/0.1507, allocations: 194.7 kB / 471.8 MB, free: 6.973 MB / 350.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.0001764/0.1509, allocations: 120.9 kB / 471.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007391/0.1516, allocations: 483.6 kB / 472.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1516, allocations: 1.25 kB / 472.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002905/0.1519, allocations: 219.8 kB / 472.6 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.1525, allocations: 112.5 kB / 472.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.1549, allocations: 1.756 MB / 474.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006076/0.1555, allocations: 1.065 MB / 475.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.1557, allocations: 60.25 kB / 475.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1558, allocations: 39.44 kB / 475.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1558, allocations: 8 kB / 475.6 MB, free: 3.07 MB / 350.1 MB Notification: Performance of Templates: time 0.0107/0.1665, allocations: 4.658 MB / 480.3 MB, free: 14.44 MB / 366.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)