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.001194/0.001194, allocations: 106 kB / 16.41 MB, free: 6.504 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.001197/0.001197, allocations: 187 kB / 17.34 MB, free: 5.742 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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1706/0.1706, allocations: 28.79 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 64.09 kB / 445 MB, free: 2.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09082/0.09196, allocations: 56.43 MB / 0.4896 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004115/0.09611, allocations: 3.697 MB / 0.4932 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.09751, allocations: 0.8644 MB / 0.4941 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/0.09779, allocations: 15.94 kB / 0.4941 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.09815, allocations: 166.3 kB / 0.4943 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002588/0.09844, allocations: 102.9 kB / 0.4944 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000677/0.09913, allocations: 455.5 kB / 0.4948 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008025/0.09994, allocations: 1.019 MB / 0.4958 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007646/0.1007, allocations: 0.718 MB / 0.4965 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.101, allocations: 374.3 kB / 0.4968 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.1013, allocations: 417.6 kB / 0.4972 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.1014, allocations: 116 kB / 0.4974 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001905/0.1016, allocations: 152 kB / 0.4975 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.1019, allocations: 306.9 kB / 0.4978 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003544/0.1022, allocations: 0.5435 MB / 0.4983 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000968/0.1032, allocations: 1.269 MB / 0.4996 GB, free: 15.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1032, allocations: 0 / 0.4996 GB, free: 15.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1032, allocations: 0 / 0.4996 GB, free: 15.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.1032, allocations: 0 / 0.4996 GB, free: 15.85 MB / 398.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.001578/0.1048, allocations: 1.383 MB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.1049, allocations: 12.02 kB / 0.5009 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.105, allocations: 139.2 kB / 0.5011 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008461/0.1059, allocations: 0.7178 MB / 0.5018 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.864e-05/0.1059, allocations: 86.58 kB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1061, allocations: 108.4 kB / 0.5019 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.1075, allocations: 1.098 MB / 0.503 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.1075, allocations: 0 / 0.503 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.305e-05/0.1076, allocations: 48 kB / 0.5031 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.1076, allocations: 32 kB / 0.5031 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1087, allocations: 0.7066 MB / 0.5038 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003575/0.1122, allocations: 4.095 MB / 0.5078 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/0.113, allocations: 455.3 kB / 0.5082 GB, free: 6.633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.1132, allocations: 193.3 kB / 0.5084 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.1133, allocations: 16.27 kB / 0.5084 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.1133, allocations: 38.78 kB / 0.5085 GB, free: 6.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 1.703e-06/0.1133, allocations: 0 / 0.5085 GB, free: 6.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009085/0.1143, allocations: 0.644 MB / 0.5091 GB, free: 5.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.1143, allocations: 59.34 kB / 0.5091 GB, free: 5.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006763/0.115, allocations: 0.6684 MB / 0.5098 GB, free: 4.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.115, allocations: 37.7 kB / 0.5098 GB, free: 4.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.1153, allocations: 0.584 MB / 0.5104 GB, free: 4.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.091e-05/0.1154, allocations: 130.1 kB / 0.5105 GB, free: 4.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.1156, allocations: 102.2 kB / 0.5106 GB, free: 4.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.903e-05/0.1157, allocations: 330 kB / 0.5109 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.116, allocations: 205 kB / 0.5111 GB, free: 3.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003704/0.1164, allocations: 359.5 kB / 0.5115 GB, free: 3.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006645/0.117, allocations: 0.5834 MB / 0.512 GB, free: 2.516 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.117, allocations: 4 kB / 0.512 GB, free: 2.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008404/0.1179, allocations: 0.6566 MB / 0.5127 GB, free: 1.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1179, allocations: 8 kB / 0.5127 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.1179, allocations: 8 kB / 0.5127 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.118, allocations: 8 kB / 0.5127 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.1183, allocations: 99.83 kB / 0.5128 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.1183, allocations: 11.98 kB / 0.5128 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.1185, allocations: 51.81 kB / 0.5129 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.1186, allocations: 24 kB / 0.5129 GB, free: 1.641 MB / 398.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.0003159/0.1189, allocations: 289.1 kB / 0.5132 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.008e-05/0.119, allocations: 71.14 kB / 0.5132 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007792/0.1198, allocations: 0.5277 MB / 0.5137 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1198, allocations: 4 kB / 0.5138 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1198, allocations: 4 kB / 0.5138 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1198, allocations: 0 / 0.5138 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1864/0.3062, allocations: 0.8347 MB / 0.5146 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.3063, allocations: 2.188 kB / 0.5146 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004408/0.3067, allocations: 65.39 kB / 0.5146 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.3067, allocations: 1.969 kB / 0.5146 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.787e-05/0.3068, allocations: 13.62 kB / 0.5147 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.3068, allocations: 1.625 kB / 0.5147 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3068, allocations: 0 / 0.5147 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.3081, allocations: 0.8465 MB / 0.5155 GB, free: 26.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.3083, allocations: 140.5 kB / 0.5156 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.942e-05/0.3084, allocations: 14.44 kB / 0.5156 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.3087, allocations: 9.469 kB / 0.5156 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.3087, allocations: 24.56 kB / 0.5157 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.3088, allocations: 12.86 kB / 0.5157 GB, free: 26.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000602/0.3094, allocations: 476.6 kB / 0.5161 GB, free: 26.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3094, allocations: 0 / 0.5161 GB, free: 26.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006161/0.31, allocations: 192.6 kB / 0.5163 GB, free: 26.73 MB / 398.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.0001657/0.3102, allocations: 119.7 kB / 0.5164 GB, free: 26.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007343/0.3109, allocations: 487.5 kB / 0.5169 GB, free: 26.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3109, allocations: 0 / 0.5169 GB, free: 26.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.3112, allocations: 225.4 kB / 0.5171 GB, free: 26.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005657/0.3118, allocations: 106.7 kB / 0.5172 GB, free: 26.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.3145, allocations: 1.809 MB / 0.519 GB, free: 25.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005628/0.3151, allocations: 1.067 MB / 0.52 GB, free: 25.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3153, allocations: 44.03 kB / 0.5201 GB, free: 25.14 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3153, allocations: 0 / 0.5201 GB, free: 25.14 MB / 398.1 MB Notification: Performance of Templates: time 0.01462/0.3299, allocations: 9.134 MB / 0.529 GB, free: 23.93 MB / 398.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)