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.001572/0.001572, allocations: 106.5 kB / 16.27 MB, free: 5.984 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.001803/0.001803, allocations: 191.7 kB / 17.2 MB, free: 5.621 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.373/1.373, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1667/0.1667, allocations: 28.77 MB / 319.8 MB, free: 2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002157/0.002158, allocations: 63.75 kB / 387.2 MB, free: 40.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1143, allocations: 56.43 MB / 443.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004859/0.1192, allocations: 3.698 MB / 447.4 MB, free: 116 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.1212, allocations: 0.8723 MB / 448.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004729/0.1217, allocations: 19.88 kB / 448.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004726/0.1222, allocations: 158.4 kB / 448.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003182/0.1226, allocations: 110.9 kB / 448.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008896/0.1235, allocations: 447.5 kB / 449 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.1246, allocations: 1.012 MB / 450 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008665/0.1254, allocations: 0.7183 MB / 450.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.1258, allocations: 374.4 kB / 451.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003458/0.1261, allocations: 421.6 kB / 451.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1263, allocations: 116 kB / 451.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002098/0.1265, allocations: 147.9 kB / 451.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.1268, allocations: 303 kB / 452 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003856/0.1272, allocations: 0.5474 MB / 452.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1282, allocations: 1.188 MB / 453.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1282, allocations: 0 / 453.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1283, allocations: 4 kB / 453.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1283, allocations: 0 / 453.8 MB, free: 9.66 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.001721/0.13, allocations: 1.379 MB / 455.1 MB, free: 8.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1301, allocations: 19.95 kB / 455.2 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.1302, allocations: 139.2 kB / 455.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/0.131, allocations: 0.6905 MB / 456 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.767e-05/0.1311, allocations: 86.58 kB / 456.1 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.1312, allocations: 108.4 kB / 456.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.1328, allocations: 1.098 MB / 457.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.1328, allocations: 3.938 kB / 457.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.1329, allocations: 48 kB / 457.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.1329, allocations: 28 kB / 457.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1341, allocations: 0.7027 MB / 458.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.1383, allocations: 4.153 MB / 462.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008008/0.1391, allocations: 453.7 kB / 462.7 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.1394, allocations: 193.3 kB / 462.8 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-05/0.1395, allocations: 20.25 kB / 462.9 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.1395, allocations: 38.84 kB / 462.9 MB, free: 160 kB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 3.396e-06/0.1395, allocations: 4 kB / 462.9 MB, free: 156 kB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.001052/0.1406, allocations: 0.6363 MB / 463.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.1406, allocations: 59.34 kB / 463.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007755/0.1414, allocations: 0.6684 MB / 464.3 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.724e-05/0.1415, allocations: 37.7 kB / 464.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003776/0.1419, allocations: 0.584 MB / 464.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.142, allocations: 134 kB / 465 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.1421, allocations: 102.2 kB / 465.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1423, allocations: 326 kB / 465.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.1426, allocations: 205 kB / 465.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.143, allocations: 363.5 kB / 466 MB, free: 12.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007374/0.1438, allocations: 0.5796 MB / 466.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1438, allocations: 4 kB / 466.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009596/0.1447, allocations: 0.664 MB / 467.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1448, allocations: 8 kB / 467.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1448, allocations: 4 kB / 467.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.1448, allocations: 11.94 kB / 467.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.1452, allocations: 104.6 kB / 467.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.1452, allocations: 19.92 kB / 467.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.1454, allocations: 47.53 kB / 467.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.1455, allocations: 20 kB / 467.5 MB, free: 11.41 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.0003937/0.1459, allocations: 284.3 kB / 467.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.146, allocations: 67.16 kB / 467.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008966/0.1469, allocations: 0.5354 MB / 468.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.1469, allocations: 4 kB / 468.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.1469, allocations: 3.984 kB / 468.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1469, allocations: 0 / 468.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009421/0.1479, allocations: 0.8367 MB / 469.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1479, allocations: 0 / 469.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/0.1482, allocations: 71.89 kB / 469.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.1483, allocations: 4 kB / 469.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.1483, allocations: 12 kB / 469.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.1483, allocations: 8 kB / 469.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1483, allocations: 0 / 469.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.1494, allocations: 0.8395 MB / 470.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.1495, allocations: 140.2 kB / 470.2 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.823e-05/0.1496, allocations: 12 kB / 470.3 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.1498, allocations: 16.08 kB / 470.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.1499, allocations: 19.91 kB / 470.3 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.1499, allocations: 12 kB / 470.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005357/0.1504, allocations: 471 kB / 470.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1504, allocations: 0 / 470.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000535/0.151, allocations: 194.7 kB / 471 MB, free: 7.801 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.0001776/0.1512, allocations: 124.9 kB / 471.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.152, allocations: 495.5 kB / 471.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.152, allocations: 1.438 kB / 471.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.1523, allocations: 219.8 kB / 471.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.1529, allocations: 119.4 kB / 471.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.1559, allocations: 1.836 MB / 473.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007057/0.1566, allocations: 1.065 MB / 474.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.1568, allocations: 43.44 kB / 474.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1568, allocations: 0 / 474.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of Templates: time 0.01287/0.1697, allocations: 8.875 MB / 483.7 MB, free: 10.99 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)