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.0009865/0.0009868, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001026/0.001027, allocations: 190.2 kB / 16.25 MB, free: 6.625 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3057/0.3057, allocations: 28.81 MB / 318.9 MB, free: 5.832 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.91 kB / 386.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2865, allocations: 56.41 MB / 442.5 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003648/0.2902, allocations: 3.696 MB / 446.2 MB, free: 37.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.2916, allocations: 0.805 MB / 447 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.292, allocations: 26.16 kB / 447.1 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.2923, allocations: 110.7 kB / 447.2 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002379/0.2926, allocations: 63.33 kB / 447.2 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006658/0.2932, allocations: 404.1 kB / 447.6 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000744/0.294, allocations: 1.025 MB / 448.6 MB, free: 36.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006828/0.2947, allocations: 0.7099 MB / 449.4 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.2949, allocations: 372.3 kB / 449.7 MB, free: 36.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.2952, allocations: 426.1 kB / 450.1 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.515e-05/0.2953, allocations: 122.7 kB / 450.3 MB, free: 35.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.2954, allocations: 141.7 kB / 450.4 MB, free: 35.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.2956, allocations: 312 kB / 450.7 MB, free: 35.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.2958, allocations: 0.5447 MB / 451.2 MB, free: 35.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006697/0.2965, allocations: 1.192 MB / 452.4 MB, free: 34.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2965, allocations: 3.938 kB / 452.4 MB, free: 34.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2965, allocations: 0 / 452.4 MB, free: 34.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.2966, allocations: 4 kB / 452.4 MB, free: 34.7 MB / 366.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.001416/0.298, allocations: 1.381 MB / 453.8 MB, free: 33.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.298, allocations: 8.562 kB / 453.8 MB, free: 33.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.2982, allocations: 148.2 kB / 454 MB, free: 33.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005959/0.2988, allocations: 0.6871 MB / 454.7 MB, free: 33.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.446e-05/0.2989, allocations: 89.33 kB / 454.8 MB, free: 33.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.299, allocations: 109.7 kB / 454.9 MB, free: 33.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3003, allocations: 1.091 MB / 456 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.3003, allocations: 6.438 kB / 456 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.3004, allocations: 46.97 kB / 456 MB, free: 32.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.3004, allocations: 28.88 kB / 456 MB, free: 32.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009077/0.3013, allocations: 0.7072 MB / 456.7 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/0.3045, allocations: 4.146 MB / 460.9 MB, free: 29.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000651/0.3052, allocations: 457.9 kB / 461.3 MB, free: 29.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3054, allocations: 195.6 kB / 461.5 MB, free: 29.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.017e-05/0.3054, allocations: 14.8 kB / 461.5 MB, free: 29.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.3055, allocations: 37.72 kB / 461.6 MB, free: 29.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.565e-06/0.3055, allocations: 4 kB / 461.6 MB, free: 29.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008446/0.3063, allocations: 0.6374 MB / 462.2 MB, free: 28.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.3064, allocations: 58.12 kB / 462.3 MB, free: 28.76 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000642/0.307, allocations: 0.6712 MB / 462.9 MB, free: 28.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.307, allocations: 37.64 kB / 463 MB, free: 28.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.3073, allocations: 0.5821 MB / 463.6 MB, free: 27.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.3074, allocations: 129.2 kB / 463.7 MB, free: 27.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.3076, allocations: 107.9 kB / 463.8 MB, free: 27.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.3077, allocations: 323.6 kB / 464.1 MB, free: 27.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.3079, allocations: 204 kB / 464.3 MB, free: 27.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.3083, allocations: 358.7 kB / 464.7 MB, free: 27.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006201/0.3089, allocations: 0.5839 MB / 465.2 MB, free: 26.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3089, allocations: 3 kB / 465.2 MB, free: 26.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008111/0.3098, allocations: 0.6612 MB / 465.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3098, allocations: 5.688 kB / 465.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3098, allocations: 6.125 kB / 465.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.3098, allocations: 5.844 kB / 465.9 MB, free: 26.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.3102, allocations: 98.44 kB / 466 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/0.3102, allocations: 12.12 kB / 466 MB, free: 26.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.3104, allocations: 67.28 kB / 466.1 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3105, allocations: 22.03 kB / 466.1 MB, free: 26.53 MB / 366.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.00042/0.3109, allocations: 285.8 kB / 466.4 MB, free: 26.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.627e-05/0.311, allocations: 67.09 kB / 466.5 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007605/0.3117, allocations: 0.5364 MB / 467 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3118, allocations: 6.391 kB / 467 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3118, allocations: 3.062 kB / 467 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3118, allocations: 112 / 467 MB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/0.3126, allocations: 0.8417 MB / 467.9 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3126, allocations: 0 / 467.9 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.3129, allocations: 66.8 kB / 467.9 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.313, allocations: 2.906 kB / 467.9 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.313, allocations: 14.09 kB / 467.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.313, allocations: 2.875 kB / 467.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.313, allocations: 0 / 467.9 MB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000914/0.3139, allocations: 0.8369 MB / 468.8 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.314, allocations: 145.2 kB / 468.9 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.602e-05/0.3141, allocations: 6.75 kB / 468.9 MB, free: 25.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3143, allocations: 10.75 kB / 468.9 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.3143, allocations: 29.23 kB / 469 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.3144, allocations: 11.38 kB / 469 MB, free: 25.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005141/0.3149, allocations: 472.5 kB / 469.4 MB, free: 24.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3149, allocations: 0 / 469.4 MB, free: 24.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005832/0.3155, allocations: 194.2 kB / 469.6 MB, free: 24.86 MB / 366.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.0002404/0.3157, allocations: 118 kB / 469.7 MB, free: 24.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008787/0.3166, allocations: 0.4934 MB / 470.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3166, allocations: 0 / 470.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.3169, allocations: 223.5 kB / 470.4 MB, free: 24.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006878/0.3176, allocations: 112.8 kB / 470.6 MB, free: 24.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3208, allocations: 2.281 MB / 472.8 MB, free: 23.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.3214, allocations: 1.063 MB / 473.9 MB, free: 22.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002171/0.3216, allocations: 59.98 kB / 474 MB, free: 22.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.393e-05/0.3217, allocations: 41.28 kB / 474 MB, free: 22.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3217, allocations: 0 / 474 MB, free: 22.32 MB / 366.1 MB Notification: Performance of Templates: time 0.01007/0.3318, allocations: 4.604 MB / 478.6 MB, free: 21.85 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)