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.001354/0.001354, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2937/0.2937, allocations: 28.8 MB / 319.2 MB, free: 5.707 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 386.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3109, allocations: 56.41 MB / 443 MB, free: 40.29 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004136/0.3151, allocations: 3.698 MB / 446.7 MB, free: 37.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.3164, allocations: 0.8737 MB / 447.6 MB, free: 37.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.3167, allocations: 19.81 kB / 447.6 MB, free: 37.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003476/0.3171, allocations: 158.1 kB / 447.8 MB, free: 37.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.3174, allocations: 110.3 kB / 447.9 MB, free: 37.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006576/0.318, allocations: 440.2 kB / 448.3 MB, free: 37.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006508/0.3187, allocations: 1.025 MB / 449.3 MB, free: 36.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006959/0.3194, allocations: 0.7109 MB / 450 MB, free: 36.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.3197, allocations: 370 kB / 450.4 MB, free: 36.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.3199, allocations: 424.2 kB / 450.8 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.3201, allocations: 117.2 kB / 450.9 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.3202, allocations: 142.2 kB / 451.1 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.3205, allocations: 307.9 kB / 451.4 MB, free: 35.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002801/0.3207, allocations: 0.5545 MB / 451.9 MB, free: 35.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008227/0.3216, allocations: 1.19 MB / 453.1 MB, free: 34.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3216, allocations: 0 / 453.1 MB, free: 34.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3216, allocations: 0 / 453.1 MB, free: 34.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.3216, allocations: 0 / 453.1 MB, free: 34.76 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.001552/0.3232, allocations: 1.381 MB / 454.5 MB, free: 33.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3232, allocations: 8.625 kB / 454.5 MB, free: 33.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.3234, allocations: 139.7 kB / 454.6 MB, free: 33.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007061/0.3241, allocations: 0.6906 MB / 455.3 MB, free: 33.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.025e-05/0.3242, allocations: 83.7 kB / 455.4 MB, free: 33.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.3243, allocations: 114.3 kB / 455.5 MB, free: 33.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3256, allocations: 1.096 MB / 456.6 MB, free: 32.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.3257, allocations: 6.875 kB / 456.6 MB, free: 32.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.3257, allocations: 42.19 kB / 456.7 MB, free: 32.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.3257, allocations: 31.55 kB / 456.7 MB, free: 32.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009267/0.3267, allocations: 0.7095 MB / 457.4 MB, free: 32.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3298, allocations: 4.144 MB / 461.6 MB, free: 29.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006694/0.3304, allocations: 456.1 kB / 462 MB, free: 29.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.3307, allocations: 199.2 kB / 462.2 MB, free: 29.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.825e-05/0.3307, allocations: 15.25 kB / 462.2 MB, free: 29.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.3308, allocations: 34.84 kB / 462.2 MB, free: 29.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.415e-06/0.3308, allocations: 0 / 462.2 MB, free: 29.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008536/0.3316, allocations: 0.6377 MB / 462.9 MB, free: 28.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.3317, allocations: 68.73 kB / 462.9 MB, free: 28.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005795/0.3323, allocations: 0.6736 MB / 463.6 MB, free: 28.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.3323, allocations: 29.7 kB / 463.7 MB, free: 28.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.3325, allocations: 0.5855 MB / 464.2 MB, free: 28.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.344e-05/0.3326, allocations: 135.9 kB / 464.4 MB, free: 27.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.3327, allocations: 104.9 kB / 464.5 MB, free: 27.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.799e-05/0.3328, allocations: 323.3 kB / 464.8 MB, free: 27.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.333, allocations: 202 kB / 465 MB, free: 27.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.3334, allocations: 358 kB / 465.3 MB, free: 27.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005524/0.3339, allocations: 0.5782 MB / 465.9 MB, free: 26.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.334, allocations: 2.906 kB / 465.9 MB, free: 26.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007347/0.3347, allocations: 0.6613 MB / 466.6 MB, free: 26.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3347, allocations: 9.562 kB / 466.6 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3347, allocations: 10 kB / 466.6 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3348, allocations: 7.562 kB / 466.6 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.3351, allocations: 96.34 kB / 466.7 MB, free: 26.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.3351, allocations: 15.95 kB / 466.7 MB, free: 26.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.3353, allocations: 49.94 kB / 466.8 MB, free: 26.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3353, allocations: 21.38 kB / 466.8 MB, free: 26.6 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.000309/0.3357, allocations: 289 kB / 467.1 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.096e-05/0.3357, allocations: 66.66 kB / 467.1 MB, free: 26.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007336/0.3365, allocations: 0.544 MB / 467.7 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3365, allocations: 5.844 kB / 467.7 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3365, allocations: 0 / 467.7 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.3365, allocations: 7.531 kB / 467.7 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000824/0.3373, allocations: 0.8424 MB / 468.5 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3374, allocations: 0 / 468.5 MB, free: 25.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.3377, allocations: 64.56 kB / 468.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.3377, allocations: 2.625 kB / 468.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.3377, allocations: 10.05 kB / 468.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3377, allocations: 2.625 kB / 468.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3377, allocations: 0 / 468.6 MB, free: 25.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.3386, allocations: 0.837 MB / 469.4 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-05/0.3387, allocations: 147.4 kB / 469.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.332e-05/0.3387, allocations: 10.81 kB / 469.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.3389, allocations: 6.688 kB / 469.6 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.546e-05/0.339, allocations: 28.98 kB / 469.6 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.339, allocations: 8.594 kB / 469.6 MB, free: 25.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.3394, allocations: 475.8 kB / 470.1 MB, free: 24.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3394, allocations: 0 / 470.1 MB, free: 24.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000475/0.3399, allocations: 198.1 kB / 470.3 MB, free: 24.91 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.0001449/0.34, allocations: 113.9 kB / 470.4 MB, free: 24.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006876/0.3407, allocations: 0.4935 MB / 470.9 MB, free: 24.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3407, allocations: 7.938 kB / 470.9 MB, free: 24.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.341, allocations: 216.9 kB / 471.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.3415, allocations: 105.6 kB / 471.2 MB, free: 24.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.3436, allocations: 1.799 MB / 473 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004903/0.3441, allocations: 1.06 MB / 474.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.3443, allocations: 61.41 kB / 474.1 MB, free: 22.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.24e-05/0.3444, allocations: 44.67 kB / 474.2 MB, free: 22.86 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3444, allocations: 0 / 474.2 MB, free: 22.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01034/0.3548, allocations: 4.658 MB / 478.8 MB, free: 22.39 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)