Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",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.004822/0.004822, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001167/0.001167, allocations: 196.6 kB / 16.67 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.334/1.334, 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.2751/0.2751, allocations: 28.81 MB / 319.3 MB, free: 5.629 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 65.17 kB / 443.9 MB, free: 36.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09803, allocations: 56.43 MB / 0.4886 GB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003445/0.1015, allocations: 3.247 MB / 0.4917 GB, free: 6.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.103, allocations: 0.5376 MB / 0.4923 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003611/0.1034, allocations: 11.97 kB / 0.4923 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.1037, allocations: 143.2 kB / 0.4924 GB, free: 5.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.104, allocations: 125 kB / 0.4925 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005125/0.1045, allocations: 286.5 kB / 0.4928 GB, free: 5.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005628/0.1051, allocations: 0.7276 MB / 0.4935 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005351/0.1056, allocations: 478.2 kB / 0.494 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.1059, allocations: 303 kB / 0.4943 GB, free: 4.391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.1061, allocations: 388.7 kB / 0.4946 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.1062, allocations: 74.44 kB / 0.4947 GB, free: 4.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.1064, allocations: 108 kB / 0.4948 GB, free: 3.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002282/0.1066, allocations: 430.5 kB / 0.4952 GB, free: 3.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.1069, allocations: 0.5736 MB / 0.4958 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008168/0.1077, allocations: 1.146 MB / 0.4969 GB, free: 1.746 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1077, allocations: 4 kB / 0.4969 GB, free: 1.742 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1077, allocations: 0 / 0.4969 GB, free: 1.742 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.1078, allocations: 0 / 0.4969 GB, free: 1.742 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001594/0.1094, allocations: 1.771 MB / 0.4986 GB, free: 15.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1094, allocations: 12.03 kB / 0.4986 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002482/0.1097, allocations: 178.8 kB / 0.4988 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002501/0.1099, allocations: 203.6 kB / 0.499 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004961/0.1104, allocations: 0.5832 MB / 0.4996 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/0.1105, allocations: 78.33 kB / 0.4997 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.1106, allocations: 100.4 kB / 0.4997 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.1122, allocations: 1.094 MB / 0.5008 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.1123, allocations: 4 kB / 0.5008 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.916e-05/0.1123, allocations: 40 kB / 0.5009 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-05/0.1124, allocations: 54.17 kB / 0.5009 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.114, allocations: 1.223 MB / 0.5021 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.1178, allocations: 2.878 MB / 0.5049 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1191, allocations: 0.9905 MB / 0.5059 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006138/0.1197, allocations: 0.5022 MB / 0.5064 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.674e-05/0.1198, allocations: 32.69 kB / 0.5064 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1198, allocations: 39.06 kB / 0.5064 GB, free: 7.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.485e-06/0.1198, allocations: 0 / 0.5064 GB, free: 7.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.002059/0.1219, allocations: 1.591 MB / 0.508 GB, free: 6.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.1219, allocations: 59.97 kB / 0.5081 GB, free: 6.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.1232, allocations: 1.258 MB / 0.5093 GB, free: 4.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.1233, allocations: 33.7 kB / 0.5093 GB, free: 4.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/0.1238, allocations: 0.799 MB / 0.5101 GB, free: 3.922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.124, allocations: 249.8 kB / 0.5103 GB, free: 3.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.1241, allocations: 130.6 kB / 0.5105 GB, free: 3.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1243, allocations: 341.9 kB / 0.5108 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006236/0.1249, allocations: 473.7 kB / 0.5112 GB, free: 2.738 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007218/0.1256, allocations: 0.6559 MB / 0.5119 GB, free: 2.008 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.1296, allocations: 2.128 MB / 0.514 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.1296, allocations: 4 kB / 0.514 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001729/0.1313, allocations: 1.344 MB / 0.5153 GB, free: 14.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.1314, allocations: 8 kB / 0.5153 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1314, allocations: 4 kB / 0.5153 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.1314, allocations: 8 kB / 0.5153 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005439/0.132, allocations: 179.7 kB / 0.5155 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.132, allocations: 11.94 kB / 0.5155 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.1323, allocations: 83.48 kB / 0.5155 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.1324, allocations: 36 kB / 0.5156 GB, free: 14.12 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0005824/0.133, allocations: 391.3 kB / 0.516 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.1331, allocations: 155 kB / 0.5161 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.1348, allocations: 1.251 MB / 0.5173 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.1348, allocations: 4 kB / 0.5173 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.1348, allocations: 7.984 kB / 0.5173 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1348, allocations: 3.984 kB / 0.5173 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.1375, allocations: 2.382 MB / 0.5197 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.1375, allocations: 0 / 0.5197 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.138, allocations: 127.8 kB / 0.5198 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.138, allocations: 4 kB / 0.5198 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.1381, allocations: 12 kB / 0.5198 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.1381, allocations: 4 kB / 0.5198 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1381, allocations: 0 / 0.5198 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.1404, allocations: 1.95 MB / 0.5217 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.1406, allocations: 204 kB / 0.5219 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.181e-05/0.1407, allocations: 12.06 kB / 0.5219 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.141, allocations: 27.97 kB / 0.5219 GB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.542e-05/0.1411, allocations: 44.5 kB / 0.522 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.1411, allocations: 23.94 kB / 0.522 GB, free: 7.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009902/0.1421, allocations: 0.8677 MB / 0.5229 GB, free: 6.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1421, allocations: 0 / 0.5229 GB, free: 6.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.1428, allocations: 223.2 kB / 0.5231 GB, free: 6.328 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.002705/0.1455, allocations: 2.515 MB / 0.5255 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.147, allocations: 1.091 MB / 0.5266 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1471, allocations: 0 / 0.5266 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006485/0.1477, allocations: 0.5458 MB / 0.5271 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.1482, allocations: 65.09 kB / 0.5272 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/0.1644, allocations: 11.7 MB / 0.5386 GB, free: 6.125 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008071/0.1653, allocations: 1.291 MB / 0.5399 GB, free: 4.809 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.1656, allocations: 128.6 kB / 0.54 GB, free: 4.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005804/0.1662, allocations: 0.5775 MB / 0.5406 GB, free: 4.102 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1662, allocations: 3.938 kB / 0.5406 GB, free: 4.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04183/0.2081, allocations: 18.3 MB / 0.5584 GB, free: 1.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.37, allocations: 18.22 kB / 0.5584 GB, free: 1.836 MB / 430.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5_res.csv --start-time 0 --stop-time 233 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0932 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)