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.00709/0.00709, allocations: 97.94 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.001394/0.001394, allocations: 192.6 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2821/0.2821, allocations: 28.81 MB / 319.4 MB, free: 5.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.38 kB / 443.9 MB, free: 36.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09679, allocations: 56.42 MB / 0.4886 GB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003758/0.1006, allocations: 3.674 MB / 0.4922 GB, free: 5.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1019, allocations: 0.6786 MB / 0.4928 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003131/0.1022, allocations: 23.41 kB / 0.4928 GB, free: 5.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003434/0.1025, allocations: 173.2 kB / 0.493 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002934/0.1028, allocations: 142.4 kB / 0.4931 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005849/0.1034, allocations: 365.4 kB / 0.4935 GB, free: 4.773 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1041, allocations: 0.8521 MB / 0.4943 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006175/0.1047, allocations: 0.6354 MB / 0.4949 GB, free: 3.738 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.1049, allocations: 342.4 kB / 0.4953 GB, free: 3.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1051, allocations: 429.6 kB / 0.4957 GB, free: 2.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.51e-05/0.1052, allocations: 84 kB / 0.4958 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.1053, allocations: 116 kB / 0.4959 GB, free: 2.785 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.1056, allocations: 450.4 kB / 0.4963 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.1058, allocations: 0.6358 MB / 0.4969 GB, free: 1.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007974/0.1066, allocations: 1.301 MB / 0.4982 GB, free: 404 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1066, allocations: 0 / 0.4982 GB, free: 404 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1067, allocations: 0 / 0.4982 GB, free: 404 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1067, allocations: 0 / 0.4982 GB, free: 404 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.002015/0.1087, allocations: 1.884 MB / 0.5 GB, free: 14.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1087, allocations: 8.031 kB / 0.5 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002047/0.1089, allocations: 187.5 kB / 0.5002 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.1092, allocations: 219.5 kB / 0.5004 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008875/0.1101, allocations: 0.7795 MB / 0.5012 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.535e-05/0.1101, allocations: 82.53 kB / 0.5013 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1103, allocations: 100.4 kB / 0.5014 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1119, allocations: 1.298 MB / 0.5026 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.112, allocations: 7.875 kB / 0.5026 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.315e-05/0.112, allocations: 44 kB / 0.5027 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/0.1121, allocations: 51.98 kB / 0.5027 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.1137, allocations: 1.234 MB / 0.5039 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00412/0.1178, allocations: 3.918 MB / 0.5078 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.1193, allocations: 1.372 MB / 0.5091 GB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.1198, allocations: 495.2 kB / 0.5096 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.387e-05/0.1199, allocations: 36.75 kB / 0.5096 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.12, allocations: 43.12 kB / 0.5097 GB, free: 4.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.164e-06/0.12, allocations: 0 / 0.5097 GB, free: 4.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.001839/0.1218, allocations: 1.564 MB / 0.5112 GB, free: 2.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.1219, allocations: 85.67 kB / 0.5113 GB, free: 2.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.1232, allocations: 1.374 MB / 0.5126 GB, free: 1.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.1233, allocations: 37.83 kB / 0.5126 GB, free: 1.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005659/0.1238, allocations: 0.8619 MB / 0.5135 GB, free: 344 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.124, allocations: 257.8 kB / 0.5137 GB, free: 84 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.1242, allocations: 154.6 kB / 0.5139 GB, free: 15.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1243, allocations: 337.9 kB / 0.5142 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.1249, allocations: 473.8 kB / 0.5147 GB, free: 15.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007385/0.1257, allocations: 0.72 MB / 0.5154 GB, free: 14.29 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.127, allocations: 1.241 MB / 0.5166 GB, free: 12.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1271, allocations: 0 / 0.5166 GB, free: 12.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00174/0.1288, allocations: 1.399 MB / 0.5179 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.1288, allocations: 11.94 kB / 0.5179 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.1289, allocations: 8 kB / 0.518 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.1289, allocations: 12 kB / 0.518 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000576/0.1295, allocations: 187.7 kB / 0.5181 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.1295, allocations: 19.92 kB / 0.5182 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.1299, allocations: 83.36 kB / 0.5182 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/0.1299, allocations: 40 kB / 0.5183 GB, free: 11.18 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.0004707/0.1304, allocations: 417.2 kB / 0.5187 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.1306, allocations: 154.9 kB / 0.5188 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.1321, allocations: 1.245 MB / 0.52 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.1322, allocations: 4 kB / 0.52 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1322, allocations: 4 kB / 0.52 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1322, allocations: 3.984 kB / 0.52 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.1348, allocations: 2.408 MB / 0.5224 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.1348, allocations: 0 / 0.5224 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.1353, allocations: 127.8 kB / 0.5225 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.1353, allocations: 4 kB / 0.5225 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/0.1354, allocations: 12 kB / 0.5225 GB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.1354, allocations: 7.984 kB / 0.5225 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1354, allocations: 0 / 0.5225 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.1374, allocations: 1.993 MB / 0.5245 GB, free: 4.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.1377, allocations: 219.9 kB / 0.5247 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.409e-05/0.1378, allocations: 19.94 kB / 0.5247 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.138, allocations: 16 kB / 0.5247 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.522e-05/0.1381, allocations: 52.44 kB / 0.5248 GB, free: 4.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.1382, allocations: 20 kB / 0.5248 GB, free: 4.375 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.1392, allocations: 0.9336 MB / 0.5257 GB, free: 3.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1392, allocations: 0 / 0.5257 GB, free: 3.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006704/0.1399, allocations: 227.2 kB / 0.5259 GB, free: 3.223 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.002457/0.1423, allocations: 2.566 MB / 0.5284 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.1437, allocations: 1.086 MB / 0.5295 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1437, allocations: 3.938 kB / 0.5295 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.1443, allocations: 0.5238 MB / 0.53 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/0.145, allocations: 97.53 kB / 0.5301 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.1593, allocations: 12.44 MB / 0.5423 GB, free: 2.047 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000879/0.1602, allocations: 1.338 MB / 0.5436 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.1605, allocations: 133 kB / 0.5437 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006282/0.1612, allocations: 0.6165 MB / 0.5443 GB, free: 15.93 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1612, allocations: 4 kB / 0.5443 GB, free: 15.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04412/0.2053, allocations: 19.65 MB / 0.5635 GB, free: 12.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.42, allocations: 8.062 kB / 0.5635 GB, free: 12.33 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)