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.001358/0.001358, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002035/0.002036, allocations: 195.2 kB / 16.14 MB, free: 6.711 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.459/1.459, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3376/0.3376, allocations: 28.8 MB / 318.8 MB, free: 5.941 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 55.91 kB / 385.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4046, allocations: 56.41 MB / 442.3 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004827/0.4095, allocations: 3.697 MB / 446 MB, free: 37.37 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.4112, allocations: 0.8112 MB / 446.9 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003933/0.4117, allocations: 18.56 kB / 446.9 MB, free: 37.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.4121, allocations: 118.5 kB / 447 MB, free: 37.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.4125, allocations: 63.47 kB / 447 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007175/0.4132, allocations: 400.4 kB / 447.4 MB, free: 37.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007448/0.4139, allocations: 0.9409 MB / 448.4 MB, free: 36.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007085/0.4147, allocations: 0.681 MB / 449.1 MB, free: 36.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.4149, allocations: 308.9 kB / 449.4 MB, free: 36.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.4151, allocations: 386.8 kB / 449.7 MB, free: 36.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.379e-05/0.4152, allocations: 51.31 kB / 449.8 MB, free: 36.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.4153, allocations: 76.91 kB / 449.9 MB, free: 36.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001793/0.4155, allocations: 254.7 kB / 450.1 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.4158, allocations: 482.3 kB / 450.6 MB, free: 35.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007152/0.4165, allocations: 1.129 MB / 451.7 MB, free: 35.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4166, allocations: 0 / 451.7 MB, free: 35.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4166, allocations: 0 / 451.7 MB, free: 35.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.4166, allocations: 3.938 kB / 451.7 MB, free: 35.07 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.001591/0.4182, allocations: 1.38 MB / 453.1 MB, free: 34.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4182, allocations: 7.688 kB / 453.1 MB, free: 34.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.4184, allocations: 140.8 kB / 453.2 MB, free: 34.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006721/0.4191, allocations: 0.6906 MB / 453.9 MB, free: 33.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.4191, allocations: 93.02 kB / 454 MB, free: 33.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.4193, allocations: 110.7 kB / 454.1 MB, free: 33.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4207, allocations: 1.094 MB / 455.2 MB, free: 32.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.4207, allocations: 0 / 455.2 MB, free: 32.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/0.4208, allocations: 46.78 kB / 455.3 MB, free: 32.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4209, allocations: 31.84 kB / 455.3 MB, free: 32.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.4219, allocations: 0.7092 MB / 456 MB, free: 32.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.4259, allocations: 4.141 MB / 460.2 MB, free: 29.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007448/0.4266, allocations: 459.9 kB / 460.6 MB, free: 29.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.4269, allocations: 191.5 kB / 460.8 MB, free: 29.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.959e-05/0.4269, allocations: 14.69 kB / 460.8 MB, free: 29.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.427, allocations: 37.75 kB / 460.8 MB, free: 29.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.893e-06/0.427, allocations: 0 / 460.8 MB, free: 29.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009141/0.4279, allocations: 0.6407 MB / 461.5 MB, free: 29.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.4279, allocations: 67.89 kB / 461.5 MB, free: 29.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006442/0.4286, allocations: 0.6653 MB / 462.2 MB, free: 28.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.4286, allocations: 40 kB / 462.3 MB, free: 28.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.4289, allocations: 0.5836 MB / 462.8 MB, free: 28.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.563e-05/0.429, allocations: 125.5 kB / 463 MB, free: 28.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.4291, allocations: 102.8 kB / 463.1 MB, free: 28.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.05e-05/0.4292, allocations: 327.3 kB / 463.4 MB, free: 27.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.4295, allocations: 203.9 kB / 463.6 MB, free: 27.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003527/0.4299, allocations: 361.4 kB / 463.9 MB, free: 27.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/0.4306, allocations: 0.5832 MB / 464.5 MB, free: 27.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4306, allocations: 0 / 464.5 MB, free: 27.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009758/0.4316, allocations: 0.6653 MB / 465.2 MB, free: 26.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.4317, allocations: 12.09 kB / 465.2 MB, free: 26.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4317, allocations: 6.719 kB / 465.2 MB, free: 26.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.4317, allocations: 8.719 kB / 465.2 MB, free: 26.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.4321, allocations: 98.38 kB / 465.3 MB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.816e-05/0.4321, allocations: 15.83 kB / 465.3 MB, free: 26.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.4324, allocations: 53.41 kB / 465.4 MB, free: 26.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.4324, allocations: 21.98 kB / 465.4 MB, free: 26.9 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.0004666/0.4329, allocations: 287.6 kB / 465.7 MB, free: 26.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.968e-05/0.433, allocations: 70.39 kB / 465.7 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007624/0.4337, allocations: 0.5274 MB / 466.3 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4338, allocations: 8.969 kB / 466.3 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4338, allocations: 0 / 466.3 MB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4338, allocations: 3.984 kB / 466.3 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008214/0.4346, allocations: 0.8405 MB / 467.1 MB, free: 26.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.4346, allocations: 0 / 467.1 MB, free: 26.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.435, allocations: 66.97 kB / 467.2 MB, free: 26.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.435, allocations: 2.969 kB / 467.2 MB, free: 26.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.435, allocations: 14.91 kB / 467.2 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.435, allocations: 2.875 kB / 467.2 MB, free: 26.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.435, allocations: 4 kB / 467.2 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/0.436, allocations: 0.836 MB / 468 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.845e-05/0.4361, allocations: 144.7 kB / 468.2 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.4362, allocations: 10.56 kB / 468.2 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.4363, allocations: 6.688 kB / 468.2 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.607e-05/0.4364, allocations: 28.5 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.4365, allocations: 11.22 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004553/0.4369, allocations: 472.4 kB / 468.7 MB, free: 25.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4369, allocations: 0 / 468.7 MB, free: 25.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000535/0.4375, allocations: 198.2 kB / 468.9 MB, free: 25.22 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.0001744/0.4376, allocations: 114 kB / 469 MB, free: 25.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006364/0.4383, allocations: 484.6 kB / 469.5 MB, free: 24.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4383, allocations: 0 / 469.5 MB, free: 24.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.4386, allocations: 221.7 kB / 469.7 MB, free: 24.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005798/0.4391, allocations: 100.8 kB / 469.8 MB, free: 24.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.4419, allocations: 2.283 MB / 472.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.4425, allocations: 1.065 MB / 473.1 MB, free: 22.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.4428, allocations: 60.62 kB / 473.2 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.4429, allocations: 39.58 kB / 473.2 MB, free: 22.7 MB / 366.1 MB Notification: Performance of SimCode: time 1.864e-06/0.4429, allocations: 0 / 473.2 MB, free: 22.7 MB / 366.1 MB Notification: Performance of Templates: time 0.0102/0.4531, allocations: 4.421 MB / 477.7 MB, free: 22.24 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)