Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.005889/0.005889, allocations: 96.7 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.001964/0.001964, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3213/0.3213, allocations: 28.81 MB / 319.4 MB, free: 5.648 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 56.84 kB / 443.9 MB, free: 36.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09634, allocations: 56.44 MB / 0.4886 GB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004297/0.1007, allocations: 3.625 MB / 0.4921 GB, free: 5.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.102, allocations: 0.674 MB / 0.4928 GB, free: 5.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003592/0.1024, allocations: 17.94 kB / 0.4928 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.1028, allocations: 168.4 kB / 0.493 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.1031, allocations: 124.7 kB / 0.4931 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.1037, allocations: 348.4 kB / 0.4934 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007148/0.1045, allocations: 0.8501 MB / 0.4942 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007525/0.1052, allocations: 0.6445 MB / 0.4949 GB, free: 3.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1054, allocations: 334.4 kB / 0.4952 GB, free: 3.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.1056, allocations: 425.6 kB / 0.4956 GB, free: 3.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.726e-05/0.1057, allocations: 84 kB / 0.4957 GB, free: 2.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001618/0.1059, allocations: 120 kB / 0.4958 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.1061, allocations: 422.5 kB / 0.4962 GB, free: 2.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.1064, allocations: 0.6087 MB / 0.4968 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008653/0.1073, allocations: 1.231 MB / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1073, allocations: 0 / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.1073, allocations: 0 / 0.498 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.1073, allocations: 0 / 0.498 GB, free: 0.6094 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002084/0.1094, allocations: 1.794 MB / 0.4997 GB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1095, allocations: 12.03 kB / 0.4997 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002394/0.1097, allocations: 158.7 kB / 0.4999 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.11, allocations: 203.6 kB / 0.5001 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.111, allocations: 0.7554 MB / 0.5008 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.572e-05/0.1111, allocations: 78.47 kB / 0.5009 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.1112, allocations: 112.3 kB / 0.501 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.113, allocations: 1.154 MB / 0.5021 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.113, allocations: 4 kB / 0.5021 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.816e-05/0.1131, allocations: 40 kB / 0.5022 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.1132, allocations: 28 kB / 0.5022 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.1146, allocations: 1.058 MB / 0.5032 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004463/0.1191, allocations: 3.607 MB / 0.5068 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.1207, allocations: 1.275 MB / 0.508 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005542/0.1213, allocations: 454.4 kB / 0.5084 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.742e-05/0.1214, allocations: 32.75 kB / 0.5085 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.1214, allocations: 43.06 kB / 0.5085 GB, free: 5.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.1214, allocations: 0 / 0.5085 GB, free: 5.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.001846/0.1233, allocations: 1.451 MB / 0.5099 GB, free: 4.035 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.1234, allocations: 67.91 kB / 0.51 GB, free: 3.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.1249, allocations: 1.223 MB / 0.5112 GB, free: 2.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.1249, allocations: 41.7 kB / 0.5112 GB, free: 2.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006604/0.1256, allocations: 0.7683 MB / 0.512 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.1258, allocations: 238 kB / 0.5122 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.126, allocations: 110.3 kB / 0.5123 GB, free: 1.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1261, allocations: 330 kB / 0.5126 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.1267, allocations: 413.1 kB / 0.513 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.1273, allocations: 0.5198 MB / 0.5135 GB, free: 272 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1284, allocations: 0.9432 MB / 0.5145 GB, free: 15.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.1284, allocations: 8 kB / 0.5145 GB, free: 15.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001434/0.1299, allocations: 1.133 MB / 0.5156 GB, free: 14.14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1299, allocations: 4 kB / 0.5156 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.1299, allocations: 7.984 kB / 0.5156 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.1299, allocations: 4 kB / 0.5156 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.1304, allocations: 127.8 kB / 0.5157 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.1304, allocations: 12.25 kB / 0.5157 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.1307, allocations: 55.56 kB / 0.5158 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/0.1307, allocations: 27.98 kB / 0.5158 GB, free: 13.9 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 (81): * Single equations (assignments): 81 * 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.0004807/0.1312, allocations: 365.3 kB / 0.5161 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.1314, allocations: 143 kB / 0.5163 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.1329, allocations: 1.138 MB / 0.5174 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.1329, allocations: 8 kB / 0.5174 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.133, allocations: 3.938 kB / 0.5174 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.133, allocations: 3.984 kB / 0.5174 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.1358, allocations: 2.285 MB / 0.5196 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1358, allocations: 0 / 0.5196 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004364/0.1362, allocations: 111.8 kB / 0.5197 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.1362, allocations: 7.938 kB / 0.5198 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.1363, allocations: 16 kB / 0.5198 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1363, allocations: 0 / 0.5198 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1363, allocations: 3.984 kB / 0.5198 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002125/0.1384, allocations: 1.794 MB / 0.5215 GB, free: 7.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.1386, allocations: 212 kB / 0.5217 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.89e-05/0.1387, allocations: 19.92 kB / 0.5217 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.1389, allocations: 12 kB / 0.5218 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.556e-05/0.139, allocations: 36.52 kB / 0.5218 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.139, allocations: 16 kB / 0.5218 GB, free: 7.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.1401, allocations: 0.8596 MB / 0.5226 GB, free: 6.766 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1401, allocations: 0 / 0.5226 GB, free: 6.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00055/0.1407, allocations: 203.3 kB / 0.5228 GB, free: 6.566 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 (66): * Single equations (assignments): 66 * 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.002497/0.1432, allocations: 2.368 MB / 0.5251 GB, free: 4.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.1445, allocations: 0.9411 MB / 0.5261 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1445, allocations: 0 / 0.5261 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005992/0.1451, allocations: 499.6 kB / 0.5265 GB, free: 2.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.1457, allocations: 91.31 kB / 0.5266 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.1601, allocations: 11.09 MB / 0.5375 GB, free: 7.383 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.1612, allocations: 1.291 MB / 0.5387 GB, free: 6.066 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002405/0.1614, allocations: 68.36 kB / 0.5388 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006663/0.1621, allocations: 0.5735 MB / 0.5393 GB, free: 5.422 MB / 414.1 MB Notification: Performance of SimCode: time 2.485e-06/0.1621, allocations: 0 / 0.5393 GB, free: 5.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0492/0.2113, allocations: 18.11 MB / 0.557 GB, free: 3.371 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.55, allocations: 11.86 kB / 0.557 GB, free: 3.359 MB / 430.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1_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_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)