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.001061/0.001061, allocations: 104.8 kB / 16.37 MB, free: 6.457 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.001085/0.001085, allocations: 195.8 kB / 17.31 MB, free: 5.812 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1781/0.1781, allocations: 28.77 MB / 319.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 64.27 kB / 388 MB, free: 40.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 56.43 MB / 444.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004769/0.121, allocations: 3.698 MB / 448.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.1226, allocations: 0.8723 MB / 449 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002973/0.1229, allocations: 19.94 kB / 449 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003661/0.1233, allocations: 158.3 kB / 449.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.1235, allocations: 106.9 kB / 449.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007557/0.1243, allocations: 455.4 kB / 449.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008847/0.1252, allocations: 1.019 MB / 450.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008199/0.126, allocations: 0.7141 MB / 451.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002854/0.1263, allocations: 366.4 kB / 451.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.1266, allocations: 425.5 kB / 452.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.1267, allocations: 116 kB / 452.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.1269, allocations: 148 kB / 452.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.1272, allocations: 310.9 kB / 452.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003639/0.1276, allocations: 0.5397 MB / 453.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.1286, allocations: 1.257 MB / 454.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1286, allocations: 4 kB / 454.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1286, allocations: 0 / 454.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1286, allocations: 0 / 454.6 MB, free: 8.832 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.001704/0.1303, allocations: 1.391 MB / 456 MB, free: 7.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1304, allocations: 8.031 kB / 456 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.1305, allocations: 143.2 kB / 456.2 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009182/0.1315, allocations: 0.7139 MB / 456.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.95e-05/0.1315, allocations: 86.52 kB / 456.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1317, allocations: 116.4 kB / 457.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.1331, allocations: 1.094 MB / 458.2 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.1332, allocations: 3.938 kB / 458.2 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.145e-05/0.1333, allocations: 48 kB / 458.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.1333, allocations: 31.94 kB / 458.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1344, allocations: 0.7027 MB / 458.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.1382, allocations: 4.091 MB / 463 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007822/0.139, allocations: 463.1 kB / 463.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.1393, allocations: 189.3 kB / 463.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.161e-05/0.1394, allocations: 20.25 kB / 463.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.1394, allocations: 38.84 kB / 463.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.863e-06/0.1394, allocations: 0 / 463.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009767/0.1404, allocations: 0.6402 MB / 464.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.1405, allocations: 59.34 kB / 464.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000722/0.1412, allocations: 0.6723 MB / 465.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1412, allocations: 29.7 kB / 465.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.1416, allocations: 0.584 MB / 465.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1417, allocations: 138.1 kB / 465.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1418, allocations: 98.16 kB / 465.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.142, allocations: 326 kB / 466.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/0.1423, allocations: 205 kB / 466.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004016/0.1427, allocations: 363.5 kB / 466.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.1434, allocations: 0.5796 MB / 467.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1434, allocations: 0 / 467.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009281/0.1443, allocations: 0.668 MB / 468.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1444, allocations: 8 kB / 468.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1444, allocations: 4 kB / 468.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.1444, allocations: 8.625 kB / 468.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/0.1448, allocations: 99.83 kB / 468.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-05/0.1448, allocations: 19.92 kB / 468.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.145, allocations: 47.53 kB / 468.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.1451, allocations: 20.11 kB / 468.3 MB, free: 10.61 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.0003782/0.1455, allocations: 292.2 kB / 468.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.959e-05/0.1456, allocations: 67.14 kB / 468.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008848/0.1465, allocations: 0.5432 MB / 469.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.1465, allocations: 4 kB / 469.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1465, allocations: 0 / 469.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1465, allocations: 0 / 469.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009282/0.1474, allocations: 0.8406 MB / 470 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1475, allocations: 0 / 470 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.1478, allocations: 63.89 kB / 470.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.371e-06/0.1478, allocations: 4 kB / 470.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.1479, allocations: 16 kB / 470.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1479, allocations: 0 / 470.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1479, allocations: 3.938 kB / 470.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.1489, allocations: 0.8434 MB / 470.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.1491, allocations: 136.2 kB / 471.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.1491, allocations: 15.98 kB / 471.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.1493, allocations: 12 kB / 471.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.207e-05/0.1494, allocations: 23.97 kB / 471.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.1494, allocations: 8 kB / 471.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005222/0.1499, allocations: 479 kB / 471.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1499, allocations: 0 / 471.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005228/0.1505, allocations: 190.7 kB / 471.8 MB, free: 6.992 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.000188/0.1507, allocations: 113 kB / 471.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008373/0.1515, allocations: 495.5 kB / 472.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1515, allocations: 0 / 472.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.1518, allocations: 221 kB / 472.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006022/0.1525, allocations: 111 kB / 472.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.1552, allocations: 1.756 MB / 474.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007238/0.156, allocations: 1.065 MB / 475.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.1562, allocations: 68.23 kB / 475.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.28e-05/0.1563, allocations: 39.44 kB / 475.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1563, allocations: 3.938 kB / 475.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01066/0.167, allocations: 4.666 MB / 480.3 MB, free: 14.45 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 gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)