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.008608/0.008608, allocations: 99.86 kB / 15.73 MB, free: 6.004 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.003172/0.003172, allocations: 191 kB / 16.67 MB, free: 5.934 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.32/0.32, allocations: 28.82 MB / 319.4 MB, free: 5.602 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00246/0.00246, allocations: 65.36 kB / 443.9 MB, free: 36.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1246, allocations: 56.43 MB / 0.4886 GB, free: 8.902 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003832/0.1285, allocations: 3.648 MB / 0.4921 GB, free: 5.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.1303, allocations: 0.6763 MB / 0.4928 GB, free: 5.402 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008593/0.1312, allocations: 19.25 kB / 0.4928 GB, free: 5.398 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005961/0.1318, allocations: 177.5 kB / 0.493 GB, free: 5.254 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000596/0.1324, allocations: 139.3 kB / 0.4931 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007322/0.1332, allocations: 356.2 kB / 0.4934 GB, free: 4.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007584/0.134, allocations: 0.8495 MB / 0.4943 GB, free: 4.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006456/0.1346, allocations: 0.6437 MB / 0.4949 GB, free: 3.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.1348, allocations: 338.4 kB / 0.4952 GB, free: 3.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.135, allocations: 413.6 kB / 0.4956 GB, free: 3.047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.1351, allocations: 88 kB / 0.4957 GB, free: 2.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.1353, allocations: 120 kB / 0.4958 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.1355, allocations: 438.4 kB / 0.4962 GB, free: 2.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.1358, allocations: 0.6087 MB / 0.4968 GB, free: 1.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008311/0.1366, allocations: 1.266 MB / 0.4981 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1366, allocations: 0 / 0.4981 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1366, allocations: 0 / 0.4981 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1366, allocations: 0 / 0.4981 GB, free: 0.5273 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.001932/0.1386, allocations: 1.841 MB / 0.4999 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.1386, allocations: 12.03 kB / 0.4999 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002128/0.1388, allocations: 170.8 kB / 0.5 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000227/0.1391, allocations: 211.6 kB / 0.5002 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009914/0.1401, allocations: 0.7757 MB / 0.501 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.888e-05/0.1402, allocations: 78.5 kB / 0.5011 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.1403, allocations: 116.3 kB / 0.5012 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.1419, allocations: 1.178 MB / 0.5023 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.49e-05/0.142, allocations: 3.938 kB / 0.5023 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.1421, allocations: 48 kB / 0.5024 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.1421, allocations: 24 kB / 0.5024 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.1435, allocations: 1.109 MB / 0.5035 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.1477, allocations: 3.683 MB / 0.5071 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.1492, allocations: 1.338 MB / 0.5084 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005128/0.1497, allocations: 482.3 kB / 0.5089 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.818e-05/0.1498, allocations: 32.52 kB / 0.5089 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.1498, allocations: 39.12 kB / 0.5089 GB, free: 5.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 2.334e-06/0.1498, allocations: 0 / 0.5089 GB, free: 5.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.001735/0.1515, allocations: 1.537 MB / 0.5104 GB, free: 3.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.1516, allocations: 63.97 kB / 0.5105 GB, free: 3.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.1528, allocations: 1.28 MB / 0.5117 GB, free: 2.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.1529, allocations: 45.69 kB / 0.5118 GB, free: 2.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005126/0.1534, allocations: 0.7843 MB / 0.5125 GB, free: 1.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.1536, allocations: 241.9 kB / 0.5128 GB, free: 1.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.1537, allocations: 114.6 kB / 0.5129 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1538, allocations: 334 kB / 0.5132 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.1543, allocations: 445.8 kB / 0.5136 GB, free: 204 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000542/0.1549, allocations: 0.5311 MB / 0.5141 GB, free: 15.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.1559, allocations: 1.002 MB / 0.5151 GB, free: 14.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.156, allocations: 0 / 0.5151 GB, free: 14.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001324/0.1573, allocations: 1.195 MB / 0.5163 GB, free: 13.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.1573, allocations: 8.312 kB / 0.5163 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1573, allocations: 4 kB / 0.5163 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.1574, allocations: 11.94 kB / 0.5163 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004597/0.1578, allocations: 131.8 kB / 0.5164 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.1578, allocations: 8 kB / 0.5165 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1581, allocations: 55.52 kB / 0.5165 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.1582, allocations: 31.98 kB / 0.5165 GB, free: 13.15 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.0004405/0.1586, allocations: 369.3 kB / 0.5169 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.1587, allocations: 147 kB / 0.517 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.1602, allocations: 1.209 MB / 0.5182 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.1602, allocations: 15.92 kB / 0.5182 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1602, allocations: 0 / 0.5182 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1602, allocations: 3.984 kB / 0.5182 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.1627, allocations: 2.368 MB / 0.5205 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1627, allocations: 0 / 0.5205 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.1632, allocations: 123.8 kB / 0.5207 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1632, allocations: 0 / 0.5207 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.1632, allocations: 23.98 kB / 0.5207 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1632, allocations: 0 / 0.5207 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1632, allocations: 0 / 0.5207 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.1652, allocations: 1.888 MB / 0.5225 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.1654, allocations: 215.9 kB / 0.5227 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.723e-05/0.1655, allocations: 20.06 kB / 0.5227 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1657, allocations: 12 kB / 0.5228 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.1658, allocations: 40.5 kB / 0.5228 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.1658, allocations: 16 kB / 0.5228 GB, free: 6.602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009441/0.1668, allocations: 0.8926 MB / 0.5237 GB, free: 5.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1668, allocations: 0 / 0.5237 GB, free: 5.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.1673, allocations: 215.2 kB / 0.5239 GB, free: 5.5 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.002193/0.1695, allocations: 2.465 MB / 0.5263 GB, free: 3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.1706, allocations: 0.9963 MB / 0.5273 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1707, allocations: 4.125 kB / 0.5273 GB, free: 2.004 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005264/0.1712, allocations: 0.5107 MB / 0.5278 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.1718, allocations: 86.52 kB / 0.5279 GB, free: 1.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/0.1847, allocations: 11.56 MB / 0.5391 GB, free: 5.668 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008166/0.1856, allocations: 1.307 MB / 0.5404 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002273/0.1858, allocations: 80.62 kB / 0.5405 GB, free: 4.254 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.1864, allocations: 0.5891 MB / 0.5411 GB, free: 3.664 MB / 414.1 MB Notification: Performance of SimCode: time 1.021e-06/0.1864, allocations: 3.938 kB / 0.5411 GB, free: 3.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04074/0.2271, allocations: 18.74 MB / 0.5594 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.89/10.12, allocations: 19.86 kB / 0.5594 GB, free: 0.9648 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)