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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004579/0.004579, allocations: 184.8 kB / 7.463 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 221.4 MB / 229.3 MB, free: 3.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001006, allocations: 94.89 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1706/0.1706, allocations: 28.83 MB / 359.7 MB, free: 1.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.042e-06/6.092e-06, allocations: 0 / 423.2 MB, free: 44.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1198, allocations: 57.47 MB / 480.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3332/0.4531, allocations: 79.16 MB / 0.5467 GB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4534, allocations: 59.97 kB / 0.5468 GB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03283/0.4862, allocations: 13.56 MB / 0.56 GB, free: 12.81 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.787e-05/0.4863, allocations: 24 kB / 0.56 GB, free: 12.79 MB / 394.7 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.001541/0.4879, allocations: 1.091 MB / 0.5611 GB, free: 11.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.4879, allocations: 12.03 kB / 0.5611 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.4881, allocations: 146.2 kB / 0.5613 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009404/0.4891, allocations: 0.6782 MB / 0.5619 GB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.4891, allocations: 36 kB / 0.562 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.4892, allocations: 68 kB / 0.562 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001118/0.4904, allocations: 0.6525 MB / 0.5627 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.4918, allocations: 0.9417 MB / 0.5636 GB, free: 8.973 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.4919, allocations: 3.938 kB / 0.5636 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.002e-05/0.4919, allocations: 7.906 kB / 0.5636 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.888e-05/0.492, allocations: 24 kB / 0.5636 GB, free: 8.938 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004139/0.4961, allocations: 3.97 MB / 0.5675 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007012/0.4968, allocations: 410.4 kB / 0.5679 GB, free: 4.434 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.4971, allocations: 201.4 kB / 0.5681 GB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.282e-05/0.4972, allocations: 16.25 kB / 0.5681 GB, free: 4.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.4972, allocations: 42.84 kB / 0.5681 GB, free: 4.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.634e-06/0.4973, allocations: 0.5469 kB / 0.5681 GB, free: 4.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009174/0.4982, allocations: 0.5068 MB / 0.5686 GB, free: 3.656 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.4982, allocations: 63.34 kB / 0.5687 GB, free: 3.582 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006566/0.4989, allocations: 0.5428 MB / 0.5692 GB, free: 3.031 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.4989, allocations: 25.7 kB / 0.5692 GB, free: 3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.4992, allocations: 494 kB / 0.5697 GB, free: 2.508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4994, allocations: 126.1 kB / 0.5698 GB, free: 2.383 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.323e-05/0.4994, allocations: 0 / 0.5698 GB, free: 2.383 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.4995, allocations: 322 kB / 0.5701 GB, free: 2.062 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/0.4998, allocations: 217.2 kB / 0.5704 GB, free: 1.852 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000415/0.5003, allocations: 355.7 kB / 0.5707 GB, free: 1.438 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004541/0.5007, allocations: 275.7 kB / 0.571 GB, free: 1.168 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.5007, allocations: 4 kB / 0.571 GB, free: 1.164 MB / 394.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001021/0.5018, allocations: 0.664 MB / 0.5716 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.5018, allocations: 4 kB / 0.5716 GB, free: 500 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.5018, allocations: 8 kB / 0.5716 GB, free: 492 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.5018, allocations: 8 kB / 0.5716 GB, free: 484 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004047/0.5022, allocations: 112.5 kB / 0.5717 GB, free: 372 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.5023, allocations: 11.92 kB / 0.5717 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.5025, allocations: 35.59 kB / 0.5718 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.5026, allocations: 35.98 kB / 0.5718 GB, free: 288 kB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.5027, allocations: 127.4 kB / 0.5719 GB, free: 156 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.5028, allocations: 71.06 kB / 0.572 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.504, allocations: 0.6527 MB / 0.5726 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.504, allocations: 8 kB / 0.5726 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.504, allocations: 3.906 kB / 0.5726 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.504, allocations: 3.984 kB / 0.5727 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008873/0.5049, allocations: 0.6928 MB / 0.5733 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5049, allocations: 0 / 0.5733 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.5053, allocations: 75.91 kB / 0.5734 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.5053, allocations: 0 / 0.5734 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-05/0.5054, allocations: 19.89 kB / 0.5734 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.5054, allocations: 0 / 0.5734 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5054, allocations: 4 kB / 0.5734 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001263/0.5067, allocations: 0.9134 MB / 0.5743 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.5068, allocations: 148 kB / 0.5745 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.843e-05/0.5069, allocations: 4 kB / 0.5745 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.5071, allocations: 7.984 kB / 0.5745 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.5072, allocations: 19.97 kB / 0.5745 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.5073, allocations: 31.98 kB / 0.5745 GB, free: 13.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004836/0.5078, allocations: 435.1 kB / 0.5749 GB, free: 12.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005944/0.5084, allocations: 178.7 kB / 0.5751 GB, free: 12.82 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001959/0.5086, allocations: 114 kB / 0.5752 GB, free: 12.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005756/0.5091, allocations: 444.9 kB / 0.5756 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5092, allocations: 0 / 0.5756 GB, free: 12.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.5094, allocations: 204 kB / 0.5758 GB, free: 12.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.5099, allocations: 84.77 kB / 0.5759 GB, free: 11.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.5123, allocations: 1.319 MB / 0.5772 GB, free: 10.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008331/0.5132, allocations: 1.137 MB / 0.5783 GB, free: 9.465 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5132, allocations: 0 / 0.5783 GB, free: 9.465 MB / 410.7 MB Notification: Performance of Templates: time 0.01048/0.5237, allocations: 4.631 MB / 0.5828 GB, free: 4.867 MB / 410.7 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)