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.004729/0.004729, allocations: 98.39 kB / 15.73 MB, free: 6.43 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.001265/0.001265, allocations: 191.8 kB / 16.67 MB, free: 6.336 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3076/0.3076, allocations: 28.8 MB / 319.4 MB, free: 5.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001786, allocations: 67.89 kB / 443.9 MB, free: 36.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08929, allocations: 56.43 MB / 0.4886 GB, free: 8.859 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003546/0.09288, allocations: 3.695 MB / 0.4922 GB, free: 5.891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.09424, allocations: 0.7737 MB / 0.4929 GB, free: 5.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003311/0.0946, allocations: 14.97 kB / 0.493 GB, free: 5.246 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.09496, allocations: 180.7 kB / 0.4931 GB, free: 5.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00028/0.09525, allocations: 138.9 kB / 0.4933 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006131/0.09587, allocations: 379.1 kB / 0.4936 GB, free: 4.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006545/0.09653, allocations: 0.8601 MB / 0.4945 GB, free: 4.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006293/0.09717, allocations: 0.6416 MB / 0.4951 GB, free: 3.605 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.09737, allocations: 346.3 kB / 0.4954 GB, free: 3.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.09761, allocations: 425.6 kB / 0.4958 GB, free: 2.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.09772, allocations: 88 kB / 0.4959 GB, free: 2.762 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.09788, allocations: 116 kB / 0.496 GB, free: 2.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.0981, allocations: 438.5 kB / 0.4964 GB, free: 2.219 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002553/0.09836, allocations: 0.6242 MB / 0.497 GB, free: 1.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008065/0.09918, allocations: 1.282 MB / 0.4983 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09919, allocations: 0 / 0.4983 GB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.0992, allocations: 0 / 0.4983 GB, free: 308 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.09922, allocations: 0 / 0.4983 GB, free: 308 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.002562/0.1018, allocations: 1.857 MB / 0.5001 GB, free: 14.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.1018, allocations: 12.03 kB / 0.5001 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002277/0.1021, allocations: 182.8 kB / 0.5003 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.1023, allocations: 207.6 kB / 0.5005 GB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000948/0.1033, allocations: 0.7876 MB / 0.5013 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/0.1034, allocations: 74.52 kB / 0.5013 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.1035, allocations: 108.4 kB / 0.5014 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.1052, allocations: 1.19 MB / 0.5026 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.1052, allocations: 7.938 kB / 0.5026 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.735e-05/0.1053, allocations: 40 kB / 0.5026 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.1053, allocations: 32 kB / 0.5027 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.1069, allocations: 1.113 MB / 0.5038 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.1119, allocations: 3.699 MB / 0.5074 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.1138, allocations: 1.369 MB / 0.5087 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005854/0.1144, allocations: 490.6 kB / 0.5092 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.572e-05/0.1144, allocations: 28.84 kB / 0.5092 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00075/0.1152, allocations: 0.5511 MB / 0.5097 GB, free: 4.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.756e-06/0.1152, allocations: 4 kB / 0.5097 GB, free: 4.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002103/0.1173, allocations: 1.578 MB / 0.5113 GB, free: 2.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.1174, allocations: 64 kB / 0.5113 GB, free: 2.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.119, allocations: 1.289 MB / 0.5126 GB, free: 1.277 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.119, allocations: 41.7 kB / 0.5126 GB, free: 1.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006695/0.1197, allocations: 0.7883 MB / 0.5134 GB, free: 444 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000229/0.1199, allocations: 261.7 kB / 0.5137 GB, free: 180 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.1201, allocations: 122.7 kB / 0.5138 GB, free: 52 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1203, allocations: 333.9 kB / 0.5141 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005824/0.1209, allocations: 445.8 kB / 0.5145 GB, free: 15.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000679/0.1216, allocations: 0.5601 MB / 0.5151 GB, free: 14.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.123, allocations: 1.035 MB / 0.5161 GB, free: 13.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.123, allocations: 4 kB / 0.5161 GB, free: 13.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001653/0.1247, allocations: 1.234 MB / 0.5173 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1247, allocations: 4 kB / 0.5173 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.1247, allocations: 4 kB / 0.5173 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1247, allocations: 8 kB / 0.5173 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.1252, allocations: 139.8 kB / 0.5174 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1252, allocations: 7.938 kB / 0.5175 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.1255, allocations: 59.86 kB / 0.5175 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.1256, allocations: 32 kB / 0.5175 GB, free: 12.11 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.0005693/0.1262, allocations: 382 kB / 0.5179 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.1263, allocations: 147 kB / 0.518 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.1281, allocations: 1.242 MB / 0.5193 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.1281, allocations: 7.938 kB / 0.5193 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1281, allocations: 8 kB / 0.5193 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.1281, allocations: 3.984 kB / 0.5193 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.1311, allocations: 2.425 MB / 0.5216 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1311, allocations: 0 / 0.5216 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.1316, allocations: 115.8 kB / 0.5218 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.1316, allocations: 3.938 kB / 0.5218 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.1317, allocations: 23.98 kB / 0.5218 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.1317, allocations: 4 kB / 0.5218 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1317, allocations: 0 / 0.5218 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.134, allocations: 1.937 MB / 0.5237 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/0.1343, allocations: 263.9 kB / 0.5239 GB, free: 5.445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.363e-05/0.1344, allocations: 16.12 kB / 0.5239 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.1346, allocations: 12 kB / 0.524 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.1347, allocations: 44.59 kB / 0.524 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.1348, allocations: 16 kB / 0.524 GB, free: 5.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00113/0.1359, allocations: 0.9047 MB / 0.5249 GB, free: 4.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1359, allocations: 0 / 0.5249 GB, free: 4.457 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005868/0.1365, allocations: 219.2 kB / 0.5251 GB, free: 4.242 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.002742/0.1393, allocations: 2.507 MB / 0.5276 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.1407, allocations: 1.028 MB / 0.5286 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1407, allocations: 0 / 0.5286 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006577/0.1414, allocations: 0.5268 MB / 0.5291 GB, free: 152 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.142, allocations: 93.38 kB / 0.5292 GB, free: 56 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.1579, allocations: 11.72 MB / 0.5406 GB, free: 4.145 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.1591, allocations: 1.319 MB / 0.5419 GB, free: 2.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000266/0.1594, allocations: 80.53 kB / 0.542 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006976/0.1601, allocations: 0.5969 MB / 0.5426 GB, free: 2.117 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1601, allocations: 0 / 0.5426 GB, free: 2.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06767/0.2278, allocations: 19.05 MB / 0.5612 GB, free: 15.14 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.65, allocations: 8.062 kB / 0.5612 GB, free: 15.13 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)