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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 172.5 kB / 7.646 MB, free: 1.422 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.453/1.453, allocations: 221.5 MB / 229.6 MB, free: 7.523 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.0007887/0.0007891, allocations: 93.41 kB / 280.5 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1765/0.1765, allocations: 28.84 MB / 360.1 MB, free: 2.203 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.249e-05/1.252e-05, allocations: 0 / 423.8 MB, free: 32.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1173, allocations: 57.5 MB / 481.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3511/0.4685, allocations: 79.23 MB / 0.5474 GB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.4687, allocations: 66.33 kB / 0.5474 GB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02828/0.497, allocations: 13.88 MB / 0.561 GB, free: 6.645 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.497, allocations: 0 / 0.561 GB, free: 6.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.404e-05/0.4971, allocations: 27.06 kB / 0.561 GB, free: 6.641 MB / 362.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.001774/0.4989, allocations: 1.088 MB / 0.5621 GB, free: 5.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.499, allocations: 11.64 kB / 0.5621 GB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003391/0.4993, allocations: 147.2 kB / 0.5622 GB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009957/0.5003, allocations: 0.6724 MB / 0.5629 GB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.5004, allocations: 37.5 kB / 0.5629 GB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.5005, allocations: 69.94 kB / 0.563 GB, free: 5.352 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0011/0.5016, allocations: 0.6311 MB / 0.5636 GB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.5032, allocations: 0.9316 MB / 0.5645 GB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.5033, allocations: 3.938 kB / 0.5645 GB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.5033, allocations: 3.875 kB / 0.5645 GB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.5034, allocations: 26.47 kB / 0.5645 GB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004206/0.5076, allocations: 3.986 MB / 0.5684 GB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007945/0.5084, allocations: 460.6 kB / 0.5689 GB, free: 2.027 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.5086, allocations: 191.8 kB / 0.5691 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.065e-05/0.5087, allocations: 19.38 kB / 0.5691 GB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.5088, allocations: 38.22 kB / 0.5691 GB, free: 1.945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 2.595e-06/0.5088, allocations: 0 / 0.5691 GB, free: 1.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008927/0.5097, allocations: 0.5011 MB / 0.5696 GB, free: 1.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.5097, allocations: 51.41 kB / 0.5696 GB, free: 1.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000657/0.5104, allocations: 0.5322 MB / 0.5702 GB, free: 1.559 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.5104, allocations: 29.67 kB / 0.5702 GB, free: 1.527 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.5107, allocations: 0.5815 MB / 0.5708 GB, free: 1.172 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.5108, allocations: 128 kB / 0.5709 GB, free: 1.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-05/0.5109, allocations: 4 kB / 0.5709 GB, free: 1.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.511, allocations: 325.2 kB / 0.5712 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.5112, allocations: 206.8 kB / 0.5714 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.5116, allocations: 348.7 kB / 0.5717 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.512, allocations: 254.9 kB / 0.572 GB, free: 488 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.512, allocations: 4 kB / 0.572 GB, free: 484 kB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009205/0.513, allocations: 0.652 MB / 0.5726 GB, free: 292 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.513, allocations: 9.156 kB / 0.5726 GB, free: 292 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.513, allocations: 7.656 kB / 0.5726 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.666e-05/0.513, allocations: 7.688 kB / 0.5726 GB, free: 288 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/0.5134, allocations: 108 kB / 0.5727 GB, free: 268 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.5134, allocations: 11.69 kB / 0.5727 GB, free: 264 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.5137, allocations: 31.36 kB / 0.5728 GB, free: 244 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.571e-05/0.5138, allocations: 37.53 kB / 0.5728 GB, free: 244 kB / 362.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.0001157/0.5139, allocations: 126.2 kB / 0.5729 GB, free: 120 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.514, allocations: 77.92 kB / 0.573 GB, free: 72 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.5152, allocations: 0.6098 MB / 0.5736 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.5152, allocations: 3.844 kB / 0.5736 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5152, allocations: 0 / 0.5736 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5152, allocations: 4 kB / 0.5736 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008879/0.5161, allocations: 0.6986 MB / 0.5743 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.5161, allocations: 3.984 kB / 0.5743 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003565/0.5165, allocations: 76.95 kB / 0.5744 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.5165, allocations: 0 / 0.5744 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.5166, allocations: 15.3 kB / 0.5744 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5166, allocations: 0 / 0.5744 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5166, allocations: 0 / 0.5744 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.5177, allocations: 0.8832 MB / 0.5752 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.5178, allocations: 149.4 kB / 0.5754 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.277e-05/0.5179, allocations: 3.938 kB / 0.5754 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.5181, allocations: 7.797 kB / 0.5754 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.988e-05/0.5182, allocations: 30.3 kB / 0.5754 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/0.5182, allocations: 22.53 kB / 0.5755 GB, free: 15.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004759/0.5187, allocations: 426.7 kB / 0.5759 GB, free: 14.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5187, allocations: 0 / 0.5759 GB, free: 14.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005986/0.5193, allocations: 182.7 kB / 0.576 GB, free: 14.77 MB / 378.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.0002173/0.5196, allocations: 116.6 kB / 0.5761 GB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005878/0.5202, allocations: 432.8 kB / 0.5766 GB, free: 14.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5202, allocations: 1.25 kB / 0.5766 GB, free: 14.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.5204, allocations: 206.9 kB / 0.5768 GB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.5209, allocations: 78.69 kB / 0.5768 GB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.5229, allocations: 1.326 MB / 0.5781 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006744/0.5236, allocations: 1.094 MB / 0.5792 GB, free: 11.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.5238, allocations: 60.25 kB / 0.5793 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.882e-05/0.5239, allocations: 35.44 kB / 0.5793 GB, free: 11.68 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5239, allocations: 0 / 0.5793 GB, free: 11.68 MB / 378.7 MB Notification: Performance of Templates: time 0.008883/0.5328, allocations: 3.896 MB / 0.5831 GB, free: 7.824 MB / 378.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)