Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.005897/0.005897, allocations: 102 kB / 15.73 MB, free: 5.551 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.001437/0.001437, allocations: 196.2 kB / 16.67 MB, free: 5.477 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.479/1.479, allocations: 222.9 MB / 240.4 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.2013/0.2013, allocations: 28.79 MB / 319.3 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.89 kB / 443.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.111, allocations: 56.4 MB / 0.4885 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005517/0.1165, allocations: 3.654 MB / 0.4921 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.1187, allocations: 0.6818 MB / 0.4928 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005851/0.1193, allocations: 15.94 kB / 0.4928 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005171/0.1199, allocations: 174.3 kB / 0.4929 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004202/0.1204, allocations: 134.8 kB / 0.4931 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008824/0.1213, allocations: 355.5 kB / 0.4934 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.1224, allocations: 0.8483 MB / 0.4942 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1235, allocations: 0.6325 MB / 0.4949 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004397/0.1239, allocations: 338.4 kB / 0.4952 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.1244, allocations: 417.6 kB / 0.4956 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.1246, allocations: 88 kB / 0.4957 GB, free: 3.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.1249, allocations: 116 kB / 0.4958 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004724/0.1254, allocations: 434.5 kB / 0.4962 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005942/0.126, allocations: 0.6203 MB / 0.4968 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001602/0.1276, allocations: 1.262 MB / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1276, allocations: 0 / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1277, allocations: 0 / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.1277, allocations: 0 / 0.498 GB, free: 0.7695 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002591/0.1303, allocations: 1.849 MB / 0.4998 GB, free: 14.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.1303, allocations: 8.031 kB / 0.4998 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002764/0.1306, allocations: 170.7 kB / 0.5 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/0.131, allocations: 207.6 kB / 0.5002 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.1322, allocations: 0.7759 MB / 0.501 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.076e-05/0.1323, allocations: 82.48 kB / 0.501 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1325, allocations: 104.4 kB / 0.5011 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.1344, allocations: 1.166 MB / 0.5023 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.1344, allocations: 11.88 kB / 0.5023 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-05/0.1345, allocations: 44 kB / 0.5023 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.1346, allocations: 28 kB / 0.5024 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.1363, allocations: 1.101 MB / 0.5034 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005478/0.1418, allocations: 3.671 MB / 0.507 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.1437, allocations: 1.334 MB / 0.5083 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006244/0.1443, allocations: 486.3 kB / 0.5088 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-05/0.1444, allocations: 28.75 kB / 0.5088 GB, free: 5.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.1444, allocations: 43.12 kB / 0.5088 GB, free: 5.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.256e-06/0.1444, allocations: 0 / 0.5088 GB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.002129/0.1466, allocations: 1.521 MB / 0.5103 GB, free: 3.824 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.1466, allocations: 63.91 kB / 0.5104 GB, free: 3.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.1483, allocations: 1.292 MB / 0.5117 GB, free: 2.449 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.1484, allocations: 37.7 kB / 0.5117 GB, free: 2.406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.1491, allocations: 0.7843 MB / 0.5125 GB, free: 1.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.1493, allocations: 249.8 kB / 0.5127 GB, free: 1.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.1495, allocations: 110.3 kB / 0.5128 GB, free: 1.254 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1497, allocations: 330 kB / 0.5131 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/0.1503, allocations: 437.1 kB / 0.5135 GB, free: 0.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2422/0.3925, allocations: 0.5258 MB / 0.514 GB, free: 26.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001464/0.394, allocations: 0.9963 MB / 0.515 GB, free: 26.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3941, allocations: 3.406 kB / 0.515 GB, free: 26.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001439/0.3955, allocations: 1.189 MB / 0.5162 GB, free: 26.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.3956, allocations: 6.969 kB / 0.5162 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3956, allocations: 3.656 kB / 0.5162 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/0.3956, allocations: 5.344 kB / 0.5162 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.3961, allocations: 129.5 kB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.3961, allocations: 6.969 kB / 0.5163 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003241/0.3965, allocations: 51.8 kB / 0.5164 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.3965, allocations: 25.17 kB / 0.5164 GB, free: 26.48 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * 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.0005562/0.3971, allocations: 378.3 kB / 0.5168 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3972, allocations: 150.2 kB / 0.5169 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.3988, allocations: 1.193 MB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.3988, allocations: 8.203 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.3988, allocations: 4.125 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.3988, allocations: 2.859 kB / 0.5181 GB, free: 26.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002604/0.4014, allocations: 2.366 MB / 0.5204 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4014, allocations: 0 / 0.5204 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.4019, allocations: 111.7 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.4019, allocations: 2.25 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.402, allocations: 17.66 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.402, allocations: 7.156 kB / 0.5205 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.402, allocations: 4.969 kB / 0.5205 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.4042, allocations: 1.878 MB / 0.5224 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.4044, allocations: 211.2 kB / 0.5226 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.286e-05/0.4045, allocations: 10.5 kB / 0.5226 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.4047, allocations: 17.81 kB / 0.5226 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.4048, allocations: 42.09 kB / 0.5226 GB, free: 25.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.4049, allocations: 18.61 kB / 0.5227 GB, free: 25.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.4061, allocations: 0.8966 MB / 0.5235 GB, free: 25.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4061, allocations: 1.5 kB / 0.5235 GB, free: 25.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006317/0.4068, allocations: 212.1 kB / 0.5237 GB, free: 25.44 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.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 (67): * Single equations (assignments): 67 * 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.002314/0.4091, allocations: 2.449 MB / 0.5261 GB, free: 24.69 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.4105, allocations: 0.9871 MB / 0.5271 GB, free: 24.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4105, allocations: 2.906 kB / 0.5271 GB, free: 24.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007377/0.4113, allocations: 0.5078 MB / 0.5276 GB, free: 24.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006865/0.412, allocations: 94.89 kB / 0.5277 GB, free: 24.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/0.4277, allocations: 11.56 MB / 0.539 GB, free: 19.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.4287, allocations: 1.315 MB / 0.5403 GB, free: 19.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.429, allocations: 71.19 kB / 0.5403 GB, free: 19.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005194/0.4295, allocations: 0.5914 MB / 0.5409 GB, free: 18.51 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4295, allocations: 0 / 0.5409 GB, free: 18.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04569/0.4752, allocations: 18.75 MB / 0.5592 GB, free: 3.156 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.95, allocations: 11.36 kB / 0.5592 GB, free: 3.148 MB / 398.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)