Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",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.00617/0.006169, 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.001345/0.001345, allocations: 194.8 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.443/1.443, 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.336/0.336, allocations: 28.81 MB / 319.4 MB, free: 5.652 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 63.69 kB / 443.9 MB, free: 36.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1131, allocations: 56.43 MB / 0.4886 GB, free: 8.898 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004324/0.1174, allocations: 3.671 MB / 0.4922 GB, free: 5.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.1197, allocations: 0.6871 MB / 0.4928 GB, free: 5.371 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006546/0.1204, allocations: 19.31 kB / 0.4929 GB, free: 5.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.1209, allocations: 171.8 kB / 0.493 GB, free: 5.227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.1214, allocations: 141.7 kB / 0.4931 GB, free: 5.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007325/0.1221, allocations: 361.6 kB / 0.4935 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009164/0.123, allocations: 0.8549 MB / 0.4943 GB, free: 4.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008546/0.1239, allocations: 0.6419 MB / 0.495 GB, free: 3.742 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.1243, allocations: 342.4 kB / 0.4953 GB, free: 3.406 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.1245, allocations: 421.6 kB / 0.4957 GB, free: 2.992 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.1247, allocations: 84 kB / 0.4958 GB, free: 2.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000219/0.1249, allocations: 119.9 kB / 0.4959 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.1252, allocations: 450.5 kB / 0.4963 GB, free: 2.352 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003065/0.1255, allocations: 0.628 MB / 0.4969 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1266, allocations: 1.301 MB / 0.4982 GB, free: 420 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1266, allocations: 4 kB / 0.4982 GB, free: 416 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1266, allocations: 3.938 kB / 0.4982 GB, free: 412 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.778e-05/0.1267, allocations: 0 / 0.4982 GB, free: 412 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002488/0.1292, allocations: 1.888 MB / 0.5 GB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1292, allocations: 8.031 kB / 0.5001 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002566/0.1295, allocations: 179.5 kB / 0.5002 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002931/0.1298, allocations: 223.5 kB / 0.5004 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.1309, allocations: 0.7756 MB / 0.5012 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.737e-05/0.131, allocations: 82.53 kB / 0.5013 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.1311, allocations: 104.4 kB / 0.5014 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002019/0.1332, allocations: 1.298 MB / 0.5026 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.1332, allocations: 7.938 kB / 0.5026 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.1333, allocations: 44 kB / 0.5027 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-05/0.1334, allocations: 55.97 kB / 0.5027 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001825/0.1352, allocations: 1.23 MB / 0.5039 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00533/0.1405, allocations: 3.918 MB / 0.5078 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.1424, allocations: 1.365 MB / 0.5091 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006515/0.1431, allocations: 499.2 kB / 0.5096 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.952e-05/0.1432, allocations: 32.77 kB / 0.5096 GB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/0.1432, allocations: 43.12 kB / 0.5097 GB, free: 4.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 3.216e-06/0.1432, allocations: 0 / 0.5097 GB, free: 4.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.00221/0.1454, allocations: 1.564 MB / 0.5112 GB, free: 2.746 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.1455, allocations: 85.67 kB / 0.5113 GB, free: 2.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.1472, allocations: 1.374 MB / 0.5126 GB, free: 1.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.82e-05/0.1473, allocations: 41.7 kB / 0.5126 GB, free: 1.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007014/0.148, allocations: 0.8541 MB / 0.5135 GB, free: 360 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.1482, allocations: 257.8 kB / 0.5137 GB, free: 100 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.1485, allocations: 154.6 kB / 0.5139 GB, free: 15.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1486, allocations: 341.9 kB / 0.5142 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006602/0.1493, allocations: 477.8 kB / 0.5147 GB, free: 15.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008471/0.1502, allocations: 0.716 MB / 0.5154 GB, free: 14.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.1517, allocations: 1.237 MB / 0.5166 GB, free: 12.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.1517, allocations: 0 / 0.5166 GB, free: 12.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002007/0.1537, allocations: 1.398 MB / 0.5179 GB, free: 11.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.1538, allocations: 11.94 kB / 0.5179 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.1538, allocations: 8 kB / 0.5179 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.1539, allocations: 12 kB / 0.518 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/0.1544, allocations: 187.7 kB / 0.5181 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.086e-05/0.1545, allocations: 19.92 kB / 0.5182 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.1549, allocations: 83.73 kB / 0.5182 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.25e-05/0.1549, allocations: 47.98 kB / 0.5183 GB, free: 11.19 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0005398/0.1555, allocations: 409.1 kB / 0.5187 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.1557, allocations: 162.9 kB / 0.5188 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.1575, allocations: 1.248 MB / 0.52 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.1575, allocations: 8 kB / 0.5201 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.1575, allocations: 4.031 kB / 0.5201 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.1575, allocations: 3.984 kB / 0.5201 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002991/0.1605, allocations: 2.4 MB / 0.5224 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1605, allocations: 0 / 0.5224 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.161, allocations: 123.8 kB / 0.5225 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.161, allocations: 4 kB / 0.5225 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.852e-05/0.1611, allocations: 15.98 kB / 0.5225 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/0.1611, allocations: 8 kB / 0.5225 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1611, allocations: 0 / 0.5225 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.1635, allocations: 1.993 MB / 0.5245 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.1637, allocations: 224.1 kB / 0.5247 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.572e-05/0.1638, allocations: 19.94 kB / 0.5247 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.1641, allocations: 16 kB / 0.5247 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.1642, allocations: 44.5 kB / 0.5248 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/0.1642, allocations: 23.98 kB / 0.5248 GB, free: 4.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001178/0.1654, allocations: 0.9297 MB / 0.5257 GB, free: 3.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1654, allocations: 0 / 0.5257 GB, free: 3.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000729/0.1662, allocations: 235.2 kB / 0.5259 GB, free: 3.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.002738/0.1689, allocations: 2.57 MB / 0.5284 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.1705, allocations: 1.084 MB / 0.5295 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1705, allocations: 0 / 0.5295 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000653/0.1711, allocations: 0.5187 MB / 0.53 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.1718, allocations: 104.6 kB / 0.5301 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.1886, allocations: 12.43 MB / 0.5423 GB, free: 2.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.1897, allocations: 1.342 MB / 0.5436 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.1901, allocations: 133 kB / 0.5437 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/0.1909, allocations: 0.6187 MB / 0.5443 GB, free: 15.94 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1909, allocations: 0 / 0.5443 GB, free: 15.94 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0534/0.2443, allocations: 19.66 MB / 0.5635 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.76, allocations: 2.812 kB / 0.5635 GB, free: 12.36 MB / 446.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4_res.csv --start-time 1900 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)