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.001/0.001, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 221.4 MB / 234.6 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008122/0.0008123, allocations: 86.08 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2878/0.2878, allocations: 28.82 MB / 365.3 MB, free: 42.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.977e-05/2.979e-05, allocations: 4 kB / 430.7 MB, free: 4.418 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1004, allocations: 57.48 MB / 488.1 MB, free: 10.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3356/0.4361, allocations: 79.9 MB / 0.5547 GB, free: 25.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.4363, allocations: 64.97 kB / 0.5548 GB, free: 25.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03025/0.4666, allocations: 14 MB / 0.5685 GB, free: 17.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4666, allocations: 0 / 0.5685 GB, free: 17.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.111e-05/0.4667, allocations: 31.98 kB / 0.5685 GB, free: 16.99 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.001135/0.4678, allocations: 1.084 MB / 0.5695 GB, free: 15.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4679, allocations: 8.031 kB / 0.5695 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.468, allocations: 146.2 kB / 0.5697 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007202/0.4688, allocations: 0.6786 MB / 0.5703 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.736e-05/0.4688, allocations: 82.7 kB / 0.5704 GB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.4689, allocations: 119.6 kB / 0.5705 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.4703, allocations: 1.085 MB / 0.5716 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.4703, allocations: 3.938 kB / 0.5716 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.507e-05/0.4704, allocations: 44.56 kB / 0.5716 GB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.4704, allocations: 28 kB / 0.5717 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.4714, allocations: 0.7126 MB / 0.5724 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003365/0.4747, allocations: 4.158 MB / 0.5764 GB, free: 10.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000699/0.4754, allocations: 481.1 kB / 0.5769 GB, free: 9.684 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.4757, allocations: 199 kB / 0.5771 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.872e-05/0.4758, allocations: 20.25 kB / 0.5771 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.4758, allocations: 38.16 kB / 0.5771 GB, free: 9.484 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 3.136e-06/0.4758, allocations: 3.984 kB / 0.5771 GB, free: 9.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007092/0.4765, allocations: 0.5019 MB / 0.5776 GB, free: 9.082 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.288e-05/0.4765, allocations: 55.41 kB / 0.5777 GB, free: 9.016 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005616/0.4771, allocations: 0.5758 MB / 0.5782 GB, free: 8.562 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.4771, allocations: 40.02 kB / 0.5783 GB, free: 8.523 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.4774, allocations: 0.5865 MB / 0.5789 GB, free: 8.086 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.035e-05/0.4775, allocations: 131.7 kB / 0.579 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.4775, allocations: 9.812 kB / 0.579 GB, free: 7.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.016e-05/0.4776, allocations: 328.5 kB / 0.5793 GB, free: 7.652 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.4779, allocations: 215.3 kB / 0.5795 GB, free: 7.512 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.4782, allocations: 359.7 kB / 0.5799 GB, free: 7.172 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.4785, allocations: 262.1 kB / 0.5801 GB, free: 6.992 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4786, allocations: 4 kB / 0.5801 GB, free: 6.988 MB / 394.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008454/0.4794, allocations: 0.6899 MB / 0.5808 GB, free: 6.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4794, allocations: 11.94 kB / 0.5808 GB, free: 6.438 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4794, allocations: 4 kB / 0.5808 GB, free: 6.434 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4795, allocations: 8.625 kB / 0.5808 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.4798, allocations: 111.4 kB / 0.5809 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.4798, allocations: 15.92 kB / 0.5809 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.4801, allocations: 41.94 kB / 0.581 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.4801, allocations: 35.92 kB / 0.581 GB, free: 6.242 MB / 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 8.459e-05/0.4802, allocations: 148.1 kB / 0.5811 GB, free: 6.102 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.442e-05/0.4803, allocations: 67.06 kB / 0.5812 GB, free: 6.035 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008857/0.4812, allocations: 0.6255 MB / 0.5818 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4812, allocations: 4 kB / 0.5818 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4812, allocations: 0 / 0.5818 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4812, allocations: 0 / 0.5818 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007903/0.482, allocations: 0.8365 MB / 0.5826 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.482, allocations: 0 / 0.5826 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003215/0.4824, allocations: 78.83 kB / 0.5827 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4824, allocations: 4 kB / 0.5827 GB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.4824, allocations: 15.25 kB / 0.5827 GB, free: 4.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.4824, allocations: 4 kB / 0.5827 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.4824, allocations: 0 / 0.5827 GB, free: 4.789 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.4833, allocations: 0.8936 MB / 0.5836 GB, free: 4.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.4834, allocations: 151 kB / 0.5837 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.915e-05/0.4835, allocations: 7.438 kB / 0.5838 GB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.4837, allocations: 18.69 kB / 0.5838 GB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.4837, allocations: 27.52 kB / 0.5838 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.4838, allocations: 20.09 kB / 0.5838 GB, free: 3.871 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004247/0.4842, allocations: 461.8 kB / 0.5843 GB, free: 3.531 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4842, allocations: 3.938 kB / 0.5843 GB, free: 3.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004363/0.4846, allocations: 200.1 kB / 0.5845 GB, free: 3.344 MB / 394.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.0001384/0.4848, allocations: 125.5 kB / 0.5846 GB, free: 3.219 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004638/0.4853, allocations: 462.5 kB / 0.585 GB, free: 2.875 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.4853, allocations: 0 / 0.585 GB, free: 2.875 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.4855, allocations: 212.8 kB / 0.5852 GB, free: 2.719 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.4859, allocations: 94.38 kB / 0.5853 GB, free: 2.656 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.4876, allocations: 1.348 MB / 0.5866 GB, free: 1.414 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.488, allocations: 1.091 MB / 0.5877 GB, free: 316 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000188/0.4882, allocations: 60.2 kB / 0.5877 GB, free: 256 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.978e-05/0.4883, allocations: 42.73 kB / 0.5878 GB, free: 220 kB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4883, allocations: 0 / 0.5878 GB, free: 220 kB / 394.7 MB Notification: Performance of Templates: time 0.008923/0.4972, allocations: 4.221 MB / 0.5919 GB, free: 12.03 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)