Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.004552/0.004552, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001065/0.001065, allocations: 187.3 kB / 16.67 MB, free: 5.465 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.284/0.284, allocations: 28.8 MB / 319.4 MB, free: 5.551 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 65.41 kB / 443.9 MB, free: 36.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08028/0.08144, allocations: 56.43 MB / 0.4886 GB, free: 8.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003489/0.08496, allocations: 3.676 MB / 0.4922 GB, free: 5.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.08633, allocations: 0.7668 MB / 0.4929 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003145/0.08666, allocations: 21.97 kB / 0.4929 GB, free: 5.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.087, allocations: 181.4 kB / 0.4931 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002939/0.08732, allocations: 144.1 kB / 0.4932 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.08798, allocations: 371.5 kB / 0.4936 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006991/0.08869, allocations: 0.8687 MB / 0.4944 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006396/0.08934, allocations: 0.6388 MB / 0.4951 GB, free: 3.602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.08953, allocations: 350.4 kB / 0.4954 GB, free: 3.258 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.08977, allocations: 433.5 kB / 0.4958 GB, free: 2.832 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.08989, allocations: 88 kB / 0.4959 GB, free: 2.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.09005, allocations: 119.9 kB / 0.496 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.09028, allocations: 426.5 kB / 0.4964 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.09054, allocations: 0.6242 MB / 0.497 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008214/0.09137, allocations: 1.286 MB / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.09138, allocations: 0 / 0.4983 GB, free: 296 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.09139, allocations: 3.938 kB / 0.4983 GB, free: 292 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.09141, allocations: 0 / 0.4983 GB, free: 292 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002324/0.09374, allocations: 1.864 MB / 0.5001 GB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.09379, allocations: 8.031 kB / 0.5001 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001965/0.09399, allocations: 178.8 kB / 0.5003 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/0.09431, allocations: 211.6 kB / 0.5005 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008678/0.09519, allocations: 0.776 MB / 0.5012 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.008e-05/0.09526, allocations: 82.52 kB / 0.5013 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.09538, allocations: 108.4 kB / 0.5014 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.09685, allocations: 1.186 MB / 0.5026 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.09689, allocations: 3.938 kB / 0.5026 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.09696, allocations: 48 kB / 0.5026 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.09699, allocations: 27.98 kB / 0.5027 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.09837, allocations: 1.117 MB / 0.5038 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/0.1024, allocations: 3.699 MB / 0.5074 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.1039, allocations: 1.362 MB / 0.5087 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005344/0.1044, allocations: 498.9 kB / 0.5092 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-05/0.1045, allocations: 24.62 kB / 0.5092 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006559/0.1051, allocations: 0.5432 MB / 0.5097 GB, free: 4.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.174e-06/0.1052, allocations: 0 / 0.5097 GB, free: 4.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.001808/0.107, allocations: 1.586 MB / 0.5113 GB, free: 2.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.107, allocations: 67.98 kB / 0.5113 GB, free: 2.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.1083, allocations: 1.293 MB / 0.5126 GB, free: 1.266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.1084, allocations: 37.7 kB / 0.5126 GB, free: 1.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005489/0.1089, allocations: 0.7922 MB / 0.5134 GB, free: 432 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.1091, allocations: 253.8 kB / 0.5137 GB, free: 176 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.1093, allocations: 118.7 kB / 0.5138 GB, free: 52 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1094, allocations: 334 kB / 0.5141 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/0.1099, allocations: 441.8 kB / 0.5145 GB, free: 15.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005748/0.1105, allocations: 0.5562 MB / 0.5151 GB, free: 14.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.1117, allocations: 1.046 MB / 0.5161 GB, free: 13.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1117, allocations: 3.984 kB / 0.5161 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001396/0.1131, allocations: 1.23 MB / 0.5173 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.1132, allocations: 8 kB / 0.5173 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1132, allocations: 4 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.1132, allocations: 4 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1137, allocations: 143.8 kB / 0.5174 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.1137, allocations: 8 kB / 0.5174 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.1139, allocations: 67.44 kB / 0.5175 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.114, allocations: 24 kB / 0.5175 GB, free: 12.1 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0004806/0.1145, allocations: 394 kB / 0.5179 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.1146, allocations: 151 kB / 0.518 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001514/0.1161, allocations: 1.231 MB / 0.5192 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.1162, allocations: 15.88 kB / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1162, allocations: 0 / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1162, allocations: 3.984 kB / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.1188, allocations: 2.433 MB / 0.5216 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1188, allocations: 0 / 0.5216 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.1193, allocations: 115.8 kB / 0.5218 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.83e-06/0.1193, allocations: 7.938 kB / 0.5218 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.763e-05/0.1193, allocations: 16 kB / 0.5218 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.1193, allocations: 0 / 0.5218 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1193, allocations: 0 / 0.5218 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.1214, allocations: 1.945 MB / 0.5237 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.1217, allocations: 259.9 kB / 0.5239 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.1218, allocations: 12 kB / 0.5239 GB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.122, allocations: 15.98 kB / 0.524 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.07e-05/0.1221, allocations: 40.61 kB / 0.524 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.1222, allocations: 23.98 kB / 0.524 GB, free: 5.344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009528/0.1231, allocations: 0.8969 MB / 0.5249 GB, free: 4.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1231, allocations: 4 kB / 0.5249 GB, free: 4.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005202/0.1237, allocations: 219.2 kB / 0.5251 GB, free: 4.23 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002313/0.126, allocations: 2.512 MB / 0.5276 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.1272, allocations: 1.021 MB / 0.5286 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1272, allocations: 4.125 kB / 0.5286 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005608/0.1278, allocations: 0.5268 MB / 0.5291 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.1283, allocations: 86.14 kB / 0.5292 GB, free: 52 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.142, allocations: 11.72 MB / 0.5406 GB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008727/0.1429, allocations: 1.319 MB / 0.5419 GB, free: 2.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002272/0.1431, allocations: 72.8 kB / 0.542 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005722/0.1437, allocations: 0.593 MB / 0.5425 GB, free: 2.117 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1437, allocations: 4 kB / 0.5425 GB, free: 2.113 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04161/0.1853, allocations: 19.06 MB / 0.5612 GB, free: 15.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.34, allocations: 7.125 kB / 0.5612 GB, free: 15.12 MB / 446.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6_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_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)