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.0008787/0.0008788, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008674/0.0008674, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2975/0.2975, allocations: 28.85 MB / 319.9 MB, free: 6.312 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 8 kB / 387.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2935, allocations: 57.49 MB / 445.4 MB, free: 32.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.00278/0.2963, allocations: 2.963 MB / 448.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2975, allocations: 0.8081 MB / 449.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.2978, allocations: 16.06 kB / 449.2 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003057/0.2981, allocations: 115.7 kB / 449.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.2983, allocations: 52.23 kB / 449.3 MB, free: 29.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2987, allocations: 258.5 kB / 449.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000566/0.2993, allocations: 0.8985 MB / 450.5 MB, free: 29.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005039/0.2998, allocations: 0.5043 MB / 451 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.3, allocations: 205.7 kB / 451.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001795/0.3001, allocations: 272.7 kB / 451.4 MB, free: 28.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/0.3002, allocations: 22.09 kB / 451.5 MB, free: 28.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.3003, allocations: 45.53 kB / 451.5 MB, free: 28.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.3005, allocations: 184.2 kB / 451.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3006, allocations: 195.9 kB / 451.9 MB, free: 28.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005832/0.3012, allocations: 0.8515 MB / 452.7 MB, free: 28.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3012, allocations: 2.688 kB / 452.7 MB, free: 28.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3012, allocations: 0 / 452.7 MB, free: 28.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.3012, allocations: 0 / 452.7 MB, free: 28.31 MB / 350.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.001246/0.3025, allocations: 1.169 MB / 453.9 MB, free: 27.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3025, allocations: 10.88 kB / 453.9 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.3027, allocations: 138.8 kB / 454 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000644/0.3033, allocations: 0.6592 MB / 454.7 MB, free: 26.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.213e-05/0.3034, allocations: 85.45 kB / 454.8 MB, free: 26.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3035, allocations: 118.7 kB / 454.9 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.3048, allocations: 1.09 MB / 456 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.3048, allocations: 6.625 kB / 456 MB, free: 26.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.685e-05/0.3049, allocations: 46.69 kB / 456 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.3049, allocations: 25.56 kB / 456.1 MB, free: 26.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009942/0.3059, allocations: 0.7068 MB / 456.8 MB, free: 25.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003107/0.309, allocations: 4.152 MB / 460.9 MB, free: 23.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007662/0.3098, allocations: 461 kB / 461.4 MB, free: 22.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.3101, allocations: 194.3 kB / 461.6 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.3101, allocations: 19.17 kB / 461.6 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.467e-05/0.3101, allocations: 41.47 kB / 461.6 MB, free: 22.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.403e-06/0.3101, allocations: 0 / 461.6 MB, free: 22.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009317/0.3111, allocations: 0.6537 MB / 462.3 MB, free: 22.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.3111, allocations: 59.5 kB / 462.3 MB, free: 22.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006849/0.3118, allocations: 0.6635 MB / 463 MB, free: 22.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.3118, allocations: 35.17 kB / 463 MB, free: 22.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.3121, allocations: 0.5873 MB / 463.6 MB, free: 21.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.634e-05/0.3122, allocations: 126.4 kB / 463.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/0.3122, allocations: 10.53 kB / 463.8 MB, free: 21.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.339e-05/0.3123, allocations: 332.3 kB / 464.1 MB, free: 21.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/0.3126, allocations: 206.7 kB / 464.3 MB, free: 21.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.313, allocations: 362.9 kB / 464.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.3133, allocations: 262.1 kB / 464.9 MB, free: 20.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3133, allocations: 1.969 kB / 464.9 MB, free: 20.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009276/0.3143, allocations: 0.6593 MB / 465.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.3143, allocations: 7.344 kB / 465.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3143, allocations: 5.5 kB / 465.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.3143, allocations: 10.89 kB / 465.6 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.3147, allocations: 103.2 kB / 465.7 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.3147, allocations: 15.64 kB / 465.7 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.3149, allocations: 56.42 kB / 465.8 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.3149, allocations: 21 kB / 465.8 MB, free: 20.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003142/0.3153, allocations: 278.6 kB / 466 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-05/0.3154, allocations: 70.78 kB / 466.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007942/0.3162, allocations: 0.5417 MB / 466.7 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3162, allocations: 11.77 kB / 466.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3162, allocations: 0 / 466.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3162, allocations: 4.469 kB / 466.7 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000859/0.3171, allocations: 0.8413 MB / 467.5 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3171, allocations: 0 / 467.5 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.3174, allocations: 72.2 kB / 467.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3174, allocations: 1.156 kB / 467.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3174, allocations: 9.156 kB / 467.6 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3175, allocations: 2.844 kB / 467.6 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3175, allocations: 7.891 kB / 467.6 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.3185, allocations: 0.8466 MB / 468.4 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.889e-05/0.3186, allocations: 139.8 kB / 468.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.3187, allocations: 7.375 kB / 468.6 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.3189, allocations: 12.28 kB / 468.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.3189, allocations: 27.31 kB / 468.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.319, allocations: 16.28 kB / 468.6 MB, free: 19.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005371/0.3195, allocations: 468.1 kB / 469.1 MB, free: 19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3195, allocations: 1.062 kB / 469.1 MB, free: 19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005643/0.3201, allocations: 192.9 kB / 469.3 MB, free: 18.93 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 (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.0001767/0.3203, allocations: 114.9 kB / 469.4 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.3211, allocations: 494.1 kB / 469.9 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3211, allocations: 0 / 469.9 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003208/0.3214, allocations: 224.8 kB / 470.1 MB, free: 18.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.322, allocations: 106.5 kB / 470.2 MB, free: 18.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002488/0.3245, allocations: 2.183 MB / 472.4 MB, free: 17.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/0.3252, allocations: 1.068 MB / 473.5 MB, free: 16.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.3254, allocations: 54.64 kB / 473.5 MB, free: 16.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.073e-05/0.3255, allocations: 44.94 kB / 473.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3255, allocations: 1.375 kB / 473.6 MB, free: 16.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01221/0.3377, allocations: 4.23 MB / 477.8 MB, free: 16.07 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: