Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",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.004839/0.004839, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.001291/0.001291, allocations: 200.8 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3427/0.3427, allocations: 28.81 MB / 319.4 MB, free: 5.664 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 63.17 kB / 443.9 MB, free: 36.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1034, allocations: 56.42 MB / 0.4886 GB, free: 8.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004151/0.1076, allocations: 3.654 MB / 0.4921 GB, free: 5.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1091, allocations: 0.6814 MB / 0.4928 GB, free: 5.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003555/0.1094, allocations: 22.09 kB / 0.4928 GB, free: 5.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.1098, allocations: 173.2 kB / 0.493 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002901/0.1101, allocations: 135.1 kB / 0.4931 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.1108, allocations: 360.4 kB / 0.4935 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006764/0.1115, allocations: 0.8509 MB / 0.4943 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006594/0.1121, allocations: 0.6378 MB / 0.4949 GB, free: 3.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1123, allocations: 338.4 kB / 0.4952 GB, free: 3.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.1125, allocations: 417.6 kB / 0.4956 GB, free: 3.027 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1127, allocations: 84 kB / 0.4957 GB, free: 2.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.1128, allocations: 116 kB / 0.4958 GB, free: 2.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.1131, allocations: 434.5 kB / 0.4962 GB, free: 2.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002685/0.1134, allocations: 0.6164 MB / 0.4968 GB, free: 1.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008793/0.1142, allocations: 1.262 MB / 0.4981 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1143, allocations: 0 / 0.4981 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1143, allocations: 0 / 0.4981 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.852e-05/0.1143, allocations: 0 / 0.4981 GB, free: 0.5156 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002113/0.1164, allocations: 1.845 MB / 0.4999 GB, free: 14.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1165, allocations: 12.03 kB / 0.4999 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002195/0.1167, allocations: 174.8 kB / 0.5 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.1169, allocations: 207.6 kB / 0.5002 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009699/0.1179, allocations: 0.768 MB / 0.501 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.249e-05/0.118, allocations: 78.5 kB / 0.5011 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.1181, allocations: 108.3 kB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.1198, allocations: 1.186 MB / 0.5023 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.1199, allocations: 7.938 kB / 0.5023 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.1199, allocations: 43.98 kB / 0.5024 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.12, allocations: 28 kB / 0.5024 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.1215, allocations: 1.113 MB / 0.5035 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004457/0.126, allocations: 3.683 MB / 0.5071 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.1277, allocations: 1.334 MB / 0.5084 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006082/0.1284, allocations: 486.3 kB / 0.5089 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.137e-05/0.1285, allocations: 28.77 kB / 0.5089 GB, free: 5.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.1285, allocations: 39.12 kB / 0.5089 GB, free: 5.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 2.866e-06/0.1285, allocations: 0 / 0.5089 GB, free: 5.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.002132/0.1307, allocations: 1.533 MB / 0.5104 GB, free: 3.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.1307, allocations: 67.89 kB / 0.5105 GB, free: 3.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.1323, allocations: 1.284 MB / 0.5117 GB, free: 2.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.1324, allocations: 37.7 kB / 0.5118 GB, free: 2.105 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006549/0.133, allocations: 0.7843 MB / 0.5125 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.1333, allocations: 249.8 kB / 0.5128 GB, free: 1.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.1334, allocations: 118.6 kB / 0.5129 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1336, allocations: 334 kB / 0.5132 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005829/0.1342, allocations: 437.7 kB / 0.5136 GB, free: 188 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006927/0.1349, allocations: 0.5428 MB / 0.5142 GB, free: 15.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.1362, allocations: 0.9978 MB / 0.5151 GB, free: 14.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1362, allocations: 0 / 0.5151 GB, free: 14.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001535/0.1378, allocations: 1.199 MB / 0.5163 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1378, allocations: 4 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1378, allocations: 4 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.1378, allocations: 4 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.1383, allocations: 135.8 kB / 0.5164 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.1384, allocations: 7.938 kB / 0.5165 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.1386, allocations: 63.52 kB / 0.5165 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.1387, allocations: 20.31 kB / 0.5165 GB, free: 13.13 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 (83): * Single equations (assignments): 83 * 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.0004967/0.1392, allocations: 383.9 kB / 0.5169 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.1393, allocations: 147 kB / 0.517 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.141, allocations: 1.205 MB / 0.5182 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.141, allocations: 7.938 kB / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.141, allocations: 0 / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.141, allocations: 3.984 kB / 0.5182 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.1439, allocations: 2.372 MB / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1439, allocations: 0 / 0.5205 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.1444, allocations: 111.8 kB / 0.5207 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.1444, allocations: 7.938 kB / 0.5207 GB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.75e-05/0.1445, allocations: 12 kB / 0.5207 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/0.1445, allocations: 7.984 kB / 0.5207 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1445, allocations: 0 / 0.5207 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.1469, allocations: 1.895 MB / 0.5225 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.1471, allocations: 211.8 kB / 0.5227 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.1472, allocations: 16.05 kB / 0.5227 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.1474, allocations: 12 kB / 0.5228 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-05/0.1475, allocations: 40.52 kB / 0.5228 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.1475, allocations: 19.98 kB / 0.5228 GB, free: 6.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.1486, allocations: 0.8887 MB / 0.5237 GB, free: 5.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1486, allocations: 4 kB / 0.5237 GB, free: 5.695 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000581/0.1492, allocations: 211.3 kB / 0.5239 GB, free: 5.488 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 (68): * Single equations (assignments): 68 * 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.002678/0.1519, allocations: 2.465 MB / 0.5263 GB, free: 2.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.1533, allocations: 0.9958 MB / 0.5273 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1533, allocations: 0 / 0.5273 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006344/0.154, allocations: 0.5107 MB / 0.5278 GB, free: 1.484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.1546, allocations: 93.47 kB / 0.5279 GB, free: 1.398 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.1701, allocations: 11.56 MB / 0.5391 GB, free: 5.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.1712, allocations: 1.315 MB / 0.5404 GB, free: 4.312 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002469/0.1714, allocations: 76.64 kB / 0.5405 GB, free: 4.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.1721, allocations: 0.5891 MB / 0.5411 GB, free: 3.648 MB / 414.1 MB Notification: Performance of SimCode: time 1.293e-06/0.1721, allocations: 3.938 kB / 0.5411 GB, free: 3.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04789/0.22, allocations: 18.74 MB / 0.5594 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.76, allocations: 14.61 kB / 0.5594 GB, free: 0.9531 MB / 430.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3_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_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)