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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004801/0.004801, allocations: 101.5 kB / 15.73 MB, free: 6.492 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.001171/0.001171, allocations: 195.7 kB / 16.68 MB, free: 6.375 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3587/0.3587, allocations: 28.81 MB / 319.3 MB, free: 5.641 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 56.16 kB / 444.4 MB, free: 37.26 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1362, allocations: 56.43 MB / 0.4891 GB, free: 8.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004228/0.1405, allocations: 3.243 MB / 0.4922 GB, free: 6.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.1417, allocations: 0.5419 MB / 0.4927 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.142, allocations: 11.47 kB / 0.4928 GB, free: 5.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002732/0.1423, allocations: 148 kB / 0.4929 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002839/0.1426, allocations: 128.7 kB / 0.493 GB, free: 5.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1431, allocations: 277.7 kB / 0.4933 GB, free: 5.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006251/0.1438, allocations: 0.7234 MB / 0.494 GB, free: 4.801 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005206/0.1443, allocations: 481.6 kB / 0.4945 GB, free: 4.344 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.1445, allocations: 302.6 kB / 0.4947 GB, free: 4.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002175/0.1447, allocations: 389.8 kB / 0.4951 GB, free: 3.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.1448, allocations: 76 kB / 0.4952 GB, free: 3.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.145, allocations: 104 kB / 0.4953 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.1452, allocations: 430.5 kB / 0.4957 GB, free: 3.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.1455, allocations: 0.5814 MB / 0.4963 GB, free: 2.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006754/0.1462, allocations: 1.135 MB / 0.4974 GB, free: 1.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1462, allocations: 0 / 0.4974 GB, free: 1.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1462, allocations: 0 / 0.4974 GB, free: 1.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.1462, allocations: 0 / 0.4974 GB, free: 1.34 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.001743/0.1479, allocations: 1.717 MB / 0.4991 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.148, allocations: 12.03 kB / 0.4991 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.1482, allocations: 182.6 kB / 0.4992 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000513/0.1487, allocations: 0.5702 MB / 0.4998 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.078e-05/0.1488, allocations: 74.38 kB / 0.4999 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1489, allocations: 104.4 kB / 0.5 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.1505, allocations: 1.079 MB / 0.501 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.1505, allocations: 192 / 0.501 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.273e-05/0.1506, allocations: 43.94 kB / 0.5011 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.504e-05/0.1507, allocations: 58.11 kB / 0.5011 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.1523, allocations: 1.211 MB / 0.5023 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003703/0.156, allocations: 2.831 MB / 0.5051 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.1573, allocations: 0.9982 MB / 0.506 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.1579, allocations: 0.4944 MB / 0.5065 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.75e-05/0.158, allocations: 36.61 kB / 0.5066 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.158, allocations: 43.12 kB / 0.5066 GB, free: 7.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.184e-06/0.158, allocations: 0 / 0.5066 GB, free: 7.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=66): time 0.002092/0.1601, allocations: 1.579 MB / 0.5081 GB, free: 6.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1602, allocations: 59.97 kB / 0.5082 GB, free: 6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.1615, allocations: 1.262 MB / 0.5094 GB, free: 4.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.1615, allocations: 41.7 kB / 0.5095 GB, free: 4.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005852/0.1621, allocations: 0.7781 MB / 0.5102 GB, free: 3.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.1623, allocations: 228.7 kB / 0.5104 GB, free: 3.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.1625, allocations: 134.5 kB / 0.5106 GB, free: 3.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1626, allocations: 334 kB / 0.5109 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006175/0.1632, allocations: 481.7 kB / 0.5114 GB, free: 2.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007356/0.164, allocations: 0.652 MB / 0.512 GB, free: 1.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003893/0.1679, allocations: 2.128 MB / 0.5141 GB, free: 15.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.1679, allocations: 4 kB / 0.5141 GB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001735/0.1696, allocations: 1.335 MB / 0.5154 GB, free: 14.44 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.1697, allocations: 11.94 kB / 0.5154 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1697, allocations: 4 kB / 0.5154 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.1697, allocations: 8 kB / 0.5154 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005543/0.1703, allocations: 179.7 kB / 0.5156 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.1703, allocations: 11.94 kB / 0.5156 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003328/0.1706, allocations: 83.44 kB / 0.5157 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.907e-05/0.1707, allocations: 40 kB / 0.5157 GB, free: 14.11 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.0006142/0.1713, allocations: 395.2 kB / 0.5161 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.1715, allocations: 142.2 kB / 0.5162 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/0.1732, allocations: 1.251 MB / 0.5174 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.1733, allocations: 4 kB / 0.5174 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1733, allocations: 4 kB / 0.5174 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.1733, allocations: 3.984 kB / 0.5174 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.1763, allocations: 2.374 MB / 0.5198 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1763, allocations: 0 / 0.5198 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.1768, allocations: 131.8 kB / 0.5199 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.101e-05/0.1768, allocations: 4 kB / 0.5199 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.1769, allocations: 12 kB / 0.5199 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.1769, allocations: 4 kB / 0.5199 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1769, allocations: 4 kB / 0.5199 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.1793, allocations: 1.933 MB / 0.5218 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.1795, allocations: 199.2 kB / 0.522 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.15e-05/0.1796, allocations: 8.188 kB / 0.522 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.1799, allocations: 31.97 kB / 0.522 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.18, allocations: 48.5 kB / 0.5221 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.1801, allocations: 20 kB / 0.5221 GB, free: 7.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001057/0.1811, allocations: 0.8715 MB / 0.5229 GB, free: 6.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1811, allocations: 0 / 0.5229 GB, free: 6.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.1818, allocations: 222.9 kB / 0.5232 GB, free: 6.34 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.0002132/0.182, allocations: 107.2 kB / 0.5233 GB, free: 6.227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.1836, allocations: 1.102 MB / 0.5243 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1836, allocations: 0 / 0.5243 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007439/0.1844, allocations: 0.5419 MB / 0.5249 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.1849, allocations: 65.09 kB / 0.5249 GB, free: 4.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004077/0.189, allocations: 2.733 MB / 0.5276 GB, free: 1.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.1901, allocations: 1.299 MB / 0.5289 GB, free: 432 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003287/0.1904, allocations: 116.3 kB / 0.529 GB, free: 312 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.1906, allocations: 55.42 kB / 0.529 GB, free: 256 kB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1906, allocations: 0 / 0.529 GB, free: 256 kB / 398.1 MB Notification: Performance of Templates: time 0.01278/0.2033, allocations: 5.383 MB / 0.5343 GB, free: 10.87 MB / 414.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (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 & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)