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.007267/0.007267, allocations: 99.89 kB / 15.73 MB, free: 6.016 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.001844/0.001844, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1969/0.1969, allocations: 28.79 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 59.91 kB / 443.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1102, allocations: 56.41 MB / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004854/0.1151, allocations: 3.261 MB / 0.4917 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1169, allocations: 0.5298 MB / 0.4922 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006271/0.1176, allocations: 12 kB / 0.4922 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005316/0.1182, allocations: 154.5 kB / 0.4924 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006854/0.1189, allocations: 119 kB / 0.4925 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008792/0.1198, allocations: 283.6 kB / 0.4928 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1208, allocations: 0.724 MB / 0.4935 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007735/0.1216, allocations: 481.2 kB / 0.4939 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.122, allocations: 302.6 kB / 0.4942 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.1225, allocations: 389.8 kB / 0.4946 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.1226, allocations: 76 kB / 0.4947 GB, free: 4.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.1229, allocations: 103.9 kB / 0.4948 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004336/0.1233, allocations: 426.5 kB / 0.4952 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005719/0.1239, allocations: 0.5775 MB / 0.4957 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.1253, allocations: 1.142 MB / 0.4969 GB, free: 1.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1253, allocations: 0 / 0.4969 GB, free: 1.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1253, allocations: 0 / 0.4969 GB, free: 1.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.525e-05/0.1254, allocations: 0 / 0.4969 GB, free: 1.961 MB / 382.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.002714/0.1281, allocations: 1.775 MB / 0.4986 GB, free: 128 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.1282, allocations: 11.97 kB / 0.4986 GB, free: 116 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002792/0.1285, allocations: 174.9 kB / 0.4988 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.1288, allocations: 199.6 kB / 0.499 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.1294, allocations: 0.5793 MB / 0.4995 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.136e-05/0.1295, allocations: 78.39 kB / 0.4996 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1297, allocations: 96.38 kB / 0.4997 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/0.1315, allocations: 1.102 MB / 0.5008 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.1316, allocations: 7.938 kB / 0.5008 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.704e-05/0.1316, allocations: 40 kB / 0.5008 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.661e-05/0.1317, allocations: 58.16 kB / 0.5009 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001882/0.1336, allocations: 1.219 MB / 0.5021 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004629/0.1382, allocations: 2.878 MB / 0.5049 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.1398, allocations: 0.9944 MB / 0.5058 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007593/0.1406, allocations: 0.4944 MB / 0.5063 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-05/0.1407, allocations: 28.69 kB / 0.5064 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.1407, allocations: 43.12 kB / 0.5064 GB, free: 7.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.996e-06/0.1408, allocations: 0 / 0.5064 GB, free: 7.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002488/0.1432, allocations: 1.583 MB / 0.5079 GB, free: 6.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.1433, allocations: 59.97 kB / 0.508 GB, free: 6.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.145, allocations: 1.27 MB / 0.5092 GB, free: 4.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.1451, allocations: 37.7 kB / 0.5093 GB, free: 4.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006829/0.1458, allocations: 0.7951 MB / 0.5101 GB, free: 4.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.146, allocations: 249.8 kB / 0.5103 GB, free: 3.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.1462, allocations: 134.6 kB / 0.5104 GB, free: 3.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1464, allocations: 330 kB / 0.5107 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00073/0.1471, allocations: 481.7 kB / 0.5112 GB, free: 2.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008777/0.148, allocations: 0.652 MB / 0.5118 GB, free: 2.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/0.1524, allocations: 2.128 MB / 0.5139 GB, free: 28 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1524, allocations: 0 / 0.5139 GB, free: 28 kB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.214/0.3664, allocations: 1.337 MB / 0.5152 GB, free: 26.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3665, allocations: 7.188 kB / 0.5152 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.3665, allocations: 8.156 kB / 0.5152 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.3665, allocations: 10.06 kB / 0.5152 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.367, allocations: 180.4 kB / 0.5154 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.3671, allocations: 13.52 kB / 0.5154 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.3674, allocations: 87.94 kB / 0.5155 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.3674, allocations: 32 kB / 0.5155 GB, free: 26.7 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.0005437/0.368, allocations: 396.5 kB / 0.5159 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.3681, allocations: 140.8 kB / 0.5161 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.3699, allocations: 1.256 MB / 0.5173 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.37, allocations: 6.656 kB / 0.5173 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.37, allocations: 0.875 kB / 0.5173 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.37, allocations: 5.531 kB / 0.5173 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.3734, allocations: 2.379 MB / 0.5196 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.3735, allocations: 1.062 kB / 0.5196 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/0.3741, allocations: 125.4 kB / 0.5197 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/0.3741, allocations: 8.078 kB / 0.5197 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/0.3741, allocations: 18.58 kB / 0.5198 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.707e-06/0.3742, allocations: 3.672 kB / 0.5198 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3742, allocations: 3.938 kB / 0.5198 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00291/0.3771, allocations: 1.946 MB / 0.5217 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.3773, allocations: 202.7 kB / 0.5219 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.3774, allocations: 13.75 kB / 0.5219 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.3777, allocations: 27.61 kB / 0.5219 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.3779, allocations: 51.64 kB / 0.5219 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.512e-05/0.378, allocations: 22.98 kB / 0.522 GB, free: 25.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001537/0.3795, allocations: 0.8657 MB / 0.5228 GB, free: 25.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3795, allocations: 1.281 kB / 0.5228 GB, free: 25.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008985/0.3804, allocations: 223 kB / 0.523 GB, free: 25.65 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.002911/0.3833, allocations: 2.511 MB / 0.5255 GB, free: 24.9 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.3852, allocations: 1.092 MB / 0.5265 GB, free: 24.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3852, allocations: 1.156 kB / 0.5266 GB, free: 24.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.3859, allocations: 0.5452 MB / 0.5271 GB, free: 24.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005389/0.3865, allocations: 69.22 kB / 0.5271 GB, free: 24.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.402, allocations: 11.7 MB / 0.5386 GB, free: 20.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008367/0.4029, allocations: 1.296 MB / 0.5398 GB, free: 19.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003518/0.4033, allocations: 123.8 kB / 0.54 GB, free: 19.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/0.4037, allocations: 0.5841 MB / 0.5405 GB, free: 18.77 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4037, allocations: 0 / 0.5405 GB, free: 18.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04014/0.4439, allocations: 18.3 MB / 0.5584 GB, free: 3.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.8, allocations: 22.31 kB / 0.5584 GB, free: 3.816 MB / 398.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)