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.004969/0.004969, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001163/0.001163, allocations: 194.2 kB / 16.67 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.176/0.176, allocations: 28.77 MB / 319.3 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.91 kB / 443.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 56.41 MB / 0.4885 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.004543/0.1062, allocations: 3.708 MB / 0.4921 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.1079, allocations: 0.8645 MB / 0.4929 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.1083, allocations: 15.94 kB / 0.493 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000393/0.1087, allocations: 162.3 kB / 0.4931 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.109, allocations: 122.9 kB / 0.4932 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007729/0.1098, allocations: 447.6 kB / 0.4937 GB, free: 5.293 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000996/0.1108, allocations: 1.023 MB / 0.4947 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008889/0.1117, allocations: 0.7102 MB / 0.4954 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003278/0.1121, allocations: 374.3 kB / 0.4957 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.1124, allocations: 425.6 kB / 0.4961 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.1125, allocations: 116 kB / 0.4962 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.1128, allocations: 144 kB / 0.4964 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002617/0.113, allocations: 314.9 kB / 0.4967 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000388/0.1134, allocations: 0.5358 MB / 0.4972 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.1147, allocations: 1.275 MB / 0.4984 GB, free: 364 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.1147, allocations: 4 kB / 0.4984 GB, free: 360 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1148, allocations: 0 / 0.4984 GB, free: 360 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.1148, allocations: 3.938 kB / 0.4984 GB, free: 356 kB / 382.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.002005/0.1168, allocations: 1.425 MB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.1169, allocations: 11.89 kB / 0.4998 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002378/0.1171, allocations: 171.3 kB / 0.5 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.1173, allocations: 148 kB / 0.5001 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1184, allocations: 0.7146 MB / 0.5008 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-05/0.1185, allocations: 82.58 kB / 0.5009 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.1186, allocations: 120.3 kB / 0.501 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.1204, allocations: 1.098 MB / 0.5021 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.1205, allocations: 0 / 0.5021 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.1205, allocations: 51.94 kB / 0.5022 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.1206, allocations: 28 kB / 0.5022 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.1218, allocations: 0.7105 MB / 0.5029 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004865/0.1267, allocations: 4.112 MB / 0.5069 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008991/0.1276, allocations: 461.4 kB / 0.5073 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.1279, allocations: 189.3 kB / 0.5075 GB, free: 6.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.297e-05/0.128, allocations: 20.27 kB / 0.5075 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.128, allocations: 34.84 kB / 0.5076 GB, free: 6.621 MB / 398.1 MB Notification: Performance of pre-optimization done (n=34): time 2.325e-06/0.128, allocations: 0 / 0.5076 GB, free: 6.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.001103/0.1291, allocations: 0.6414 MB / 0.5082 GB, free: 5.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.1292, allocations: 59.34 kB / 0.5083 GB, free: 5.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000854/0.1301, allocations: 0.6685 MB / 0.5089 GB, free: 5.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.1301, allocations: 29.7 kB / 0.5089 GB, free: 5.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004442/0.1306, allocations: 0.6088 MB / 0.5095 GB, free: 4.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.1307, allocations: 138.8 kB / 0.5097 GB, free: 4.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.1309, allocations: 106.2 kB / 0.5098 GB, free: 4.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.131, allocations: 322 kB / 0.5101 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.1314, allocations: 201 kB / 0.5103 GB, free: 3.809 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.1318, allocations: 359.5 kB / 0.5106 GB, free: 3.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000854/0.1327, allocations: 0.5835 MB / 0.5112 GB, free: 2.746 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1327, allocations: 0 / 0.5112 GB, free: 2.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009922/0.1337, allocations: 0.6606 MB / 0.5118 GB, free: 2.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.1337, allocations: 8 kB / 0.5118 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1338, allocations: 8.625 kB / 0.5118 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.1338, allocations: 12 kB / 0.5118 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.1342, allocations: 99.83 kB / 0.5119 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.1342, allocations: 8 kB / 0.512 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.1344, allocations: 55.61 kB / 0.512 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.1345, allocations: 27.92 kB / 0.512 GB, free: 1.863 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.0003813/0.1349, allocations: 292.2 kB / 0.5123 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.135, allocations: 71.47 kB / 0.5124 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009087/0.1359, allocations: 0.5279 MB / 0.5129 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.1359, allocations: 4.109 kB / 0.5129 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1359, allocations: 3.938 kB / 0.5129 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.1359, allocations: 3.984 kB / 0.5129 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.137, allocations: 0.8407 MB / 0.5137 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.137, allocations: 0 / 0.5137 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2219/0.3589, allocations: 68.08 kB / 0.5138 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.3589, allocations: 1.688 kB / 0.5138 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.906e-05/0.359, allocations: 12.7 kB / 0.5138 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.359, allocations: 1.891 kB / 0.5138 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.359, allocations: 0.5312 kB / 0.5138 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.3603, allocations: 0.8441 MB / 0.5146 GB, free: 27.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.3604, allocations: 153.8 kB / 0.5148 GB, free: 26.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.044e-05/0.3605, allocations: 10.94 kB / 0.5148 GB, free: 26.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.3607, allocations: 8 kB / 0.5148 GB, free: 26.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/0.3608, allocations: 20.25 kB / 0.5148 GB, free: 26.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.3608, allocations: 10.5 kB / 0.5148 GB, free: 26.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005328/0.3613, allocations: 473.9 kB / 0.5153 GB, free: 26.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3614, allocations: 4.656 kB / 0.5153 GB, free: 26.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005451/0.3619, allocations: 196.7 kB / 0.5155 GB, free: 26.82 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.001164/0.3631, allocations: 1.411 MB / 0.5168 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.3639, allocations: 489 kB / 0.5173 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3639, allocations: 1.438 kB / 0.5173 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.3642, allocations: 225.6 kB / 0.5175 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.3648, allocations: 96.7 kB / 0.5176 GB, free: 26.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00842/0.3732, allocations: 6.687 MB / 0.5242 GB, free: 23.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006373/0.3739, allocations: 1.074 MB / 0.5252 GB, free: 23.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002581/0.3742, allocations: 59.02 kB / 0.5253 GB, free: 23.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.3746, allocations: 412.8 kB / 0.5257 GB, free: 23.06 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3746, allocations: 0 / 0.5257 GB, free: 23.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03921/0.4138, allocations: 12.93 MB / 0.5383 GB, free: 19.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.992/9.406, allocations: 9.891 kB / 0.5383 GB, free: 19.64 MB / 398.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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)