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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005734/0.005734, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001507/0.001507, allocations: 201.4 kB / 16.68 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2849/0.2849, allocations: 28.81 MB / 319.3 MB, free: 5.629 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 70.5 kB / 443.8 MB, free: 37.33 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08304, allocations: 56.43 MB / 0.4885 GB, free: 9.117 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003574/0.08665, allocations: 3.709 MB / 0.4921 GB, free: 6.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.08784, allocations: 0.8692 MB / 0.493 GB, free: 5.398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002893/0.08814, allocations: 17.56 kB / 0.493 GB, free: 5.395 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.08846, allocations: 164.7 kB / 0.4932 GB, free: 5.242 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.08872, allocations: 103.7 kB / 0.4933 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.08931, allocations: 448.6 kB / 0.4937 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007053/0.09003, allocations: 1.023 MB / 0.4947 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009411/0.09098, allocations: 0.7226 MB / 0.4954 GB, free: 3.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.09118, allocations: 362.4 kB / 0.4957 GB, free: 3.043 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.09139, allocations: 425.5 kB / 0.4961 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.777e-05/0.09149, allocations: 116 kB / 0.4963 GB, free: 2.512 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.09165, allocations: 148 kB / 0.4964 GB, free: 2.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.09182, allocations: 310.9 kB / 0.4967 GB, free: 2.062 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002259/0.09205, allocations: 0.5436 MB / 0.4972 GB, free: 1.516 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007379/0.09279, allocations: 1.271 MB / 0.4985 GB, free: 244 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.09281, allocations: 0 / 0.4985 GB, free: 244 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09281, allocations: 0 / 0.4985 GB, free: 244 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.09283, allocations: 0 / 0.4985 GB, free: 244 kB / 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.001789/0.09462, allocations: 1.429 MB / 0.4999 GB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.09467, allocations: 8.031 kB / 0.4999 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000224/0.0949, allocations: 167.3 kB / 0.5 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.09509, allocations: 148 kB / 0.5002 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009521/0.09605, allocations: 0.7146 MB / 0.5009 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.09613, allocations: 86.58 kB / 0.501 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.09627, allocations: 116.3 kB / 0.5011 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.09791, allocations: 1.098 MB / 0.5021 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.09795, allocations: 0 / 0.5021 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.09803, allocations: 52 kB / 0.5022 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.09806, allocations: 28 kB / 0.5022 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.09927, allocations: 0.7105 MB / 0.5029 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004247/0.1035, allocations: 4.108 MB / 0.5069 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000811/0.1043, allocations: 459.1 kB / 0.5074 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.1046, allocations: 193.3 kB / 0.5075 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.1047, allocations: 24.25 kB / 0.5076 GB, free: 6.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.1047, allocations: 30.84 kB / 0.5076 GB, free: 6.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 1.683e-06/0.1048, allocations: 0 / 0.5076 GB, free: 6.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.001055/0.1058, allocations: 0.6437 MB / 0.5082 GB, free: 5.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1059, allocations: 59.34 kB / 0.5083 GB, free: 5.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000803/0.1067, allocations: 0.6724 MB / 0.5089 GB, free: 5.109 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.1067, allocations: 29.7 kB / 0.509 GB, free: 5.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004302/0.1072, allocations: 0.6049 MB / 0.5096 GB, free: 4.461 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.1073, allocations: 138.8 kB / 0.5097 GB, free: 4.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.1074, allocations: 102.2 kB / 0.5098 GB, free: 4.219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1076, allocations: 326 kB / 0.5101 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.108, allocations: 213.1 kB / 0.5103 GB, free: 3.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.1084, allocations: 359.4 kB / 0.5106 GB, free: 3.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007967/0.1092, allocations: 0.5874 MB / 0.5112 GB, free: 2.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1092, allocations: 3.938 kB / 0.5112 GB, free: 2.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009893/0.1102, allocations: 0.6648 MB / 0.5119 GB, free: 1.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1102, allocations: 10.19 kB / 0.5119 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.1103, allocations: 4 kB / 0.5119 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.1103, allocations: 8 kB / 0.5119 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.1107, allocations: 99.83 kB / 0.512 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1107, allocations: 8 kB / 0.512 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002245/0.1109, allocations: 55.98 kB / 0.512 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/0.111, allocations: 24 kB / 0.5121 GB, free: 1.742 MB / 382.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.0003516/0.1113, allocations: 280.3 kB / 0.5123 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.804e-05/0.1114, allocations: 71.53 kB / 0.5124 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009028/0.1123, allocations: 0.5355 MB / 0.5129 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1123, allocations: 4 kB / 0.5129 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1123, allocations: 0 / 0.5129 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1124, allocations: 7.984 kB / 0.5129 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009834/0.1133, allocations: 0.8368 MB / 0.5138 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1134, allocations: 0 / 0.5138 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003309/0.1137, allocations: 67.91 kB / 0.5138 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1137, allocations: 0 / 0.5138 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.1137, allocations: 15.98 kB / 0.5138 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1138, allocations: 0 / 0.5138 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1138, allocations: 4 kB / 0.5138 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.1149, allocations: 0.84 MB / 0.5147 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1151, allocations: 152.5 kB / 0.5148 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.1151, allocations: 12 kB / 0.5148 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.1153, allocations: 11.98 kB / 0.5148 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.1154, allocations: 19.97 kB / 0.5148 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.1154, allocations: 12 kB / 0.5149 GB, free: 14.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005451/0.1159, allocations: 475 kB / 0.5153 GB, free: 14.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.116, allocations: 0 / 0.5153 GB, free: 14.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005266/0.1165, allocations: 203 kB / 0.5155 GB, free: 14.12 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.001494/0.118, allocations: 1.418 MB / 0.5169 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007627/0.1188, allocations: 488.6 kB / 0.5174 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1188, allocations: 3.938 kB / 0.5174 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003129/0.1191, allocations: 223.8 kB / 0.5176 GB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.1197, allocations: 97.59 kB / 0.5177 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008712/0.1284, allocations: 6.693 MB / 0.5242 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007657/0.1292, allocations: 1.065 MB / 0.5252 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.1294, allocations: 60.19 kB / 0.5253 GB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.1299, allocations: 411.3 kB / 0.5257 GB, free: 3.426 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1299, allocations: 0 / 0.5257 GB, free: 3.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.398/2.528, allocations: 12.92 MB / 0.5383 GB, free: 6.598 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/15.74, allocations: 13.16 kB / 0.5383 GB, free: 6.586 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)