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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006714/0.006714, allocations: 99.67 kB / 15.73 MB, free: 6.039 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.001316/0.001316, allocations: 197.8 kB / 16.68 MB, free: 5.965 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.44/1.44, 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.3479/0.3479, allocations: 28.81 MB / 319.3 MB, free: 5.652 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 66.39 kB / 444.4 MB, free: 36.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1375, allocations: 56.42 MB / 0.489 GB, free: 8.578 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004625/0.1422, allocations: 3.693 MB / 0.4927 GB, free: 5.609 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.1445, allocations: 0.7738 MB / 0.4934 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007626/0.1452, allocations: 14.88 kB / 0.4934 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000577/0.1458, allocations: 175.8 kB / 0.4936 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.1463, allocations: 144.5 kB / 0.4937 GB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1473, allocations: 378.7 kB / 0.4941 GB, free: 4.414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.1484, allocations: 0.8668 MB / 0.4949 GB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006788/0.1491, allocations: 0.6404 MB / 0.4956 GB, free: 3.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002147/0.1493, allocations: 346.3 kB / 0.4959 GB, free: 2.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.1496, allocations: 429.6 kB / 0.4963 GB, free: 2.352 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.1497, allocations: 84 kB / 0.4964 GB, free: 2.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000167/0.1499, allocations: 120 kB / 0.4965 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002516/0.1501, allocations: 438.5 kB / 0.4969 GB, free: 1.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000267/0.1504, allocations: 0.6203 MB / 0.4975 GB, free: 1.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.1514, allocations: 1.278 MB / 0.4988 GB, free: 15.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1515, allocations: 0 / 0.4988 GB, free: 15.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1515, allocations: 0 / 0.4988 GB, free: 15.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.1515, allocations: 3.938 kB / 0.4988 GB, free: 15.81 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002602/0.1541, allocations: 1.864 MB / 0.5006 GB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1542, allocations: 12.03 kB / 0.5006 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.1544, allocations: 207.6 kB / 0.5008 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009016/0.1553, allocations: 0.776 MB / 0.5016 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.464e-05/0.1554, allocations: 86.41 kB / 0.5016 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1555, allocations: 104.4 kB / 0.5017 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.1571, allocations: 1.174 MB / 0.5029 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.1571, allocations: 4.188 kB / 0.5029 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.429e-05/0.1572, allocations: 43.94 kB / 0.5029 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.1572, allocations: 28 kB / 0.503 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.1586, allocations: 1.101 MB / 0.504 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004265/0.1628, allocations: 3.675 MB / 0.5076 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.1644, allocations: 1.373 MB / 0.509 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005046/0.1649, allocations: 494.6 kB / 0.5094 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-05/0.165, allocations: 28.86 kB / 0.5095 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.1657, allocations: 0.551 MB / 0.51 GB, free: 3.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 4.268e-06/0.1657, allocations: 0 / 0.51 GB, free: 3.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002023/0.1678, allocations: 1.571 MB / 0.5115 GB, free: 2.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.1678, allocations: 64.05 kB / 0.5116 GB, free: 2.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.1692, allocations: 1.297 MB / 0.5129 GB, free: 1.027 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.1693, allocations: 41.7 kB / 0.5129 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006542/0.1699, allocations: 0.7728 MB / 0.5137 GB, free: 204 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002499/0.1702, allocations: 257.8 kB / 0.5139 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.1704, allocations: 130.6 kB / 0.514 GB, free: 15.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1705, allocations: 333.9 kB / 0.5143 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005269/0.171, allocations: 445.8 kB / 0.5148 GB, free: 15.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005829/0.1716, allocations: 0.5601 MB / 0.5153 GB, free: 14.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.1729, allocations: 1.038 MB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.1729, allocations: 4 kB / 0.5163 GB, free: 13.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00167/0.1746, allocations: 1.23 MB / 0.5175 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.1746, allocations: 4 kB / 0.5175 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.1746, allocations: 4 kB / 0.5175 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/0.1747, allocations: 8 kB / 0.5176 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/0.1752, allocations: 136.1 kB / 0.5177 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.1752, allocations: 12 kB / 0.5177 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.1755, allocations: 55.56 kB / 0.5177 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.1756, allocations: 24 kB / 0.5178 GB, free: 11.88 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.0006581/0.1762, allocations: 397.8 kB / 0.5181 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.1764, allocations: 147 kB / 0.5183 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.178, allocations: 1.25 MB / 0.5195 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1781, allocations: 8 kB / 0.5195 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1781, allocations: 0 / 0.5195 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1781, allocations: 3.984 kB / 0.5195 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002646/0.1807, allocations: 2.417 MB / 0.5219 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1808, allocations: 3.938 kB / 0.5219 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/0.1812, allocations: 115.9 kB / 0.522 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.984e-06/0.1812, allocations: 0 / 0.522 GB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.1813, allocations: 19.94 kB / 0.522 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.1813, allocations: 4 kB / 0.522 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.1813, allocations: 11.92 kB / 0.522 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.1835, allocations: 1.93 MB / 0.5239 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.1838, allocations: 255.9 kB / 0.5242 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.154e-05/0.1839, allocations: 27.97 kB / 0.5242 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.1841, allocations: 8 kB / 0.5242 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.442e-05/0.1842, allocations: 48.53 kB / 0.5242 GB, free: 5.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.1843, allocations: 20 kB / 0.5243 GB, free: 5.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.1854, allocations: 0.9008 MB / 0.5251 GB, free: 4.219 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1854, allocations: 0 / 0.5251 GB, free: 4.219 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006691/0.186, allocations: 215.2 kB / 0.5253 GB, free: 4.008 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.0003064/0.1864, allocations: 121.2 kB / 0.5255 GB, free: 3.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001478/0.1878, allocations: 1.021 MB / 0.5265 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.1879, allocations: 4.062 kB / 0.5265 GB, free: 2.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006425/0.1885, allocations: 0.523 MB / 0.527 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.1892, allocations: 95.56 kB / 0.5271 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.1934, allocations: 2.832 MB / 0.5298 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009058/0.1943, allocations: 1.315 MB / 0.5311 GB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.1945, allocations: 76.67 kB / 0.5312 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1947, allocations: 55.36 kB / 0.5312 GB, free: 13.89 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1947, allocations: 4 kB / 0.5312 GB, free: 13.88 MB / 414.1 MB Notification: Performance of Templates: time 0.01245/0.2071, allocations: 5.49 MB / 0.5366 GB, free: 8.391 MB / 414.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (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 & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)