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.001035/0.001035, allocations: 104.5 kB / 15.98 MB, free: 6.352 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.001028/0.001028, allocations: 193.2 kB / 16.91 MB, free: 6.195 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.28/1.28, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1748/0.1748, allocations: 28.78 MB / 319.5 MB, free: 1.957 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60.84 kB / 386.7 MB, free: 40.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1081, allocations: 56.44 MB / 443.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.005448/0.1136, allocations: 3.698 MB / 446.8 MB, free: 428 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1158, allocations: 0.802 MB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1169, allocations: 19.88 kB / 447.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005268/0.1174, allocations: 115 kB / 447.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004253/0.1179, allocations: 63.58 kB / 447.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.119, allocations: 395.7 kB / 448.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.12, allocations: 1.027 MB / 449.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009231/0.121, allocations: 0.7183 MB / 450 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003436/0.1213, allocations: 366.4 kB / 450.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000344/0.1217, allocations: 425.6 kB / 450.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001429/0.1218, allocations: 120 kB / 450.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.122, allocations: 147.9 kB / 451 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.1223, allocations: 318.9 kB / 451.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004033/0.1227, allocations: 0.5397 MB / 451.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009279/0.1237, allocations: 0.9087 MB / 452.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1237, allocations: 0 / 452.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1237, allocations: 0 / 452.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.1237, allocations: 0 / 452.8 MB, free: 10.44 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.001865/0.1256, allocations: 1.387 MB / 454.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1256, allocations: 12.03 kB / 454.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.1258, allocations: 139.2 kB / 454.3 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008023/0.1266, allocations: 0.6905 MB / 455 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.427e-05/0.1267, allocations: 86.58 kB / 455.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.1269, allocations: 108.4 kB / 455.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1285, allocations: 1.102 MB / 456.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.582e-05/0.1285, allocations: 3.938 kB / 456.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.1286, allocations: 52 kB / 456.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.1286, allocations: 31.98 kB / 456.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.1297, allocations: 0.7105 MB / 457.1 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00419/0.1339, allocations: 4.138 MB / 461.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007965/0.1347, allocations: 457.7 kB / 461.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.135, allocations: 193.3 kB / 461.9 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.699e-05/0.1351, allocations: 16.27 kB / 461.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1351, allocations: 42.78 kB / 461.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.204e-06/0.1351, allocations: 0 / 461.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009658/0.1361, allocations: 0.6363 MB / 462.5 MB, free: 292 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.1361, allocations: 59.34 kB / 462.6 MB, free: 220 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007566/0.1369, allocations: 0.6723 MB / 463.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.1369, allocations: 33.7 kB / 463.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.1373, allocations: 0.584 MB / 463.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.1374, allocations: 130.1 kB / 464 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.1376, allocations: 106.1 kB / 464.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1377, allocations: 322 kB / 464.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.138, allocations: 209 kB / 464.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003957/0.1384, allocations: 359.5 kB / 465 MB, free: 13.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007163/0.1391, allocations: 0.5795 MB / 465.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1391, allocations: 8 kB / 465.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009091/0.1401, allocations: 0.6763 MB / 466.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1401, allocations: 4 kB / 466.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1401, allocations: 8 kB / 466.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1401, allocations: 4 kB / 466.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.1405, allocations: 103.8 kB / 466.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.1405, allocations: 7.938 kB / 466.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.1408, allocations: 47.53 kB / 466.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.1408, allocations: 27.98 kB / 466.5 MB, free: 12.18 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.0004286/0.1412, allocations: 287.8 kB / 466.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-05/0.1413, allocations: 71.14 kB / 466.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008481/0.1422, allocations: 0.5315 MB / 467.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1422, allocations: 8 kB / 467.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1422, allocations: 0 / 467.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.1422, allocations: 3.984 kB / 467.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009547/0.1432, allocations: 0.8367 MB / 468.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1432, allocations: 0 / 468.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.1435, allocations: 67.91 kB / 468.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.104e-06/0.1435, allocations: 4.109 kB / 468.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.1436, allocations: 15.94 kB / 468.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1436, allocations: 4 kB / 468.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1436, allocations: 3.984 kB / 468.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.1446, allocations: 0.8473 MB / 469.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.1448, allocations: 140.2 kB / 469.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.1448, allocations: 8 kB / 469.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.145, allocations: 12 kB / 469.3 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.1451, allocations: 23.95 kB / 469.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.1451, allocations: 8 kB / 469.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004988/0.1456, allocations: 475 kB / 469.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1456, allocations: 0 / 469.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005604/0.1462, allocations: 194.7 kB / 470 MB, free: 8.562 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.0001855/0.1464, allocations: 113 kB / 470.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.1472, allocations: 0.4926 MB / 470.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1472, allocations: 4 kB / 470.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.1475, allocations: 215.8 kB / 470.8 MB, free: 7.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.1481, allocations: 115.4 kB / 470.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.1511, allocations: 2.332 MB / 473.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006721/0.1518, allocations: 1.061 MB / 474.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.1519, allocations: 47.42 kB / 474.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1519, allocations: 0 / 474.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of Templates: time 0.01306/0.165, allocations: 8.873 MB / 483.2 MB, free: 11.27 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)