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.008552/0.008552, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001266/0.001267, allocations: 193.7 kB / 16.67 MB, free: 5.977 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3658/0.3658, allocations: 28.81 MB / 319.3 MB, free: 5.613 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 65.39 kB / 444.4 MB, free: 37.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1445, allocations: 56.41 MB / 0.489 GB, free: 8.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004615/0.1491, allocations: 3.686 MB / 0.4926 GB, free: 5.664 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002142/0.1513, allocations: 0.7781 MB / 0.4934 GB, free: 5.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005234/0.1519, allocations: 15.03 kB / 0.4934 GB, free: 5.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004719/0.1523, allocations: 176.8 kB / 0.4936 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.1527, allocations: 144.8 kB / 0.4937 GB, free: 4.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008207/0.1536, allocations: 378.7 kB / 0.4941 GB, free: 4.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.1544, allocations: 0.8635 MB / 0.4949 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006861/0.1551, allocations: 0.6404 MB / 0.4956 GB, free: 3.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.1553, allocations: 350.3 kB / 0.4959 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.1556, allocations: 433.6 kB / 0.4963 GB, free: 2.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1558, allocations: 84 kB / 0.4964 GB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.1559, allocations: 112 kB / 0.4965 GB, free: 2.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002782/0.1562, allocations: 442.5 kB / 0.4969 GB, free: 1.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003141/0.1565, allocations: 0.6203 MB / 0.4975 GB, free: 1.191 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.1576, allocations: 1.278 MB / 0.4988 GB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1576, allocations: 0 / 0.4988 GB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1576, allocations: 0 / 0.4988 GB, free: 15.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.1576, allocations: 0 / 0.4988 GB, free: 15.91 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.002273/0.1599, allocations: 1.868 MB / 0.5006 GB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.1599, allocations: 8.031 kB / 0.5006 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.1602, allocations: 211.6 kB / 0.5008 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009471/0.1611, allocations: 0.7759 MB / 0.5016 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.949e-05/0.1612, allocations: 86.41 kB / 0.5016 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.1614, allocations: 100.4 kB / 0.5017 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.163, allocations: 1.174 MB / 0.5029 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.163, allocations: 4.188 kB / 0.5029 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.917e-05/0.1631, allocations: 51.94 kB / 0.5029 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.1631, allocations: 24 kB / 0.503 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.1645, allocations: 1.105 MB / 0.504 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004169/0.1687, allocations: 3.675 MB / 0.5076 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.1703, allocations: 1.366 MB / 0.509 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005705/0.1709, allocations: 494.6 kB / 0.5094 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.028e-05/0.1709, allocations: 28.64 kB / 0.5095 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000732/0.1717, allocations: 0.555 MB / 0.51 GB, free: 4.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.767e-06/0.1717, allocations: 0 / 0.51 GB, free: 4.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002011/0.1737, allocations: 1.571 MB / 0.5115 GB, free: 2.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1738, allocations: 60.06 kB / 0.5116 GB, free: 2.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.1752, allocations: 1.297 MB / 0.5129 GB, free: 1.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.217e-05/0.1752, allocations: 41.7 kB / 0.5129 GB, free: 1.078 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005925/0.1758, allocations: 0.7767 MB / 0.5137 GB, free: 300 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.1761, allocations: 253.8 kB / 0.5139 GB, free: 44 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.1762, allocations: 122.7 kB / 0.514 GB, free: 15.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1764, allocations: 337.9 kB / 0.5143 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005223/0.1769, allocations: 445.8 kB / 0.5148 GB, free: 15.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.1775, allocations: 0.5601 MB / 0.5153 GB, free: 14.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.1788, allocations: 1.042 MB / 0.5163 GB, free: 13.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1788, allocations: 0 / 0.5163 GB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001503/0.1803, allocations: 1.23 MB / 0.5175 GB, free: 12.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.1803, allocations: 8 kB / 0.5175 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1804, allocations: 4 kB / 0.5175 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.816e-05/0.1804, allocations: 4 kB / 0.5175 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.1809, allocations: 139.8 kB / 0.5177 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.1809, allocations: 8.344 kB / 0.5177 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.1812, allocations: 63.55 kB / 0.5177 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.1812, allocations: 24.06 kB / 0.5178 GB, free: 11.97 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.000606/0.1818, allocations: 393.9 kB / 0.5181 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.182, allocations: 151 kB / 0.5183 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.1836, allocations: 1.235 MB / 0.5195 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1836, allocations: 12 kB / 0.5195 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1836, allocations: 0 / 0.5195 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1836, allocations: 3.984 kB / 0.5195 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002706/0.1863, allocations: 2.425 MB / 0.5219 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1864, allocations: 7.875 kB / 0.5219 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.1868, allocations: 119.8 kB / 0.522 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1868, allocations: 4 kB / 0.522 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.1869, allocations: 16 kB / 0.522 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.1869, allocations: 0 / 0.522 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1869, allocations: 3.938 kB / 0.522 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.1891, allocations: 1.937 MB / 0.5239 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002818/0.1893, allocations: 255.9 kB / 0.5242 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.1894, allocations: 16 kB / 0.5242 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.1897, allocations: 12 kB / 0.5242 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1898, allocations: 44.53 kB / 0.5242 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/0.1898, allocations: 23.98 kB / 0.5243 GB, free: 5.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.1908, allocations: 0.8969 MB / 0.5251 GB, free: 4.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1909, allocations: 4 kB / 0.5251 GB, free: 4.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006226/0.1915, allocations: 219.2 kB / 0.5253 GB, free: 4.105 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.0002043/0.1917, allocations: 119.1 kB / 0.5255 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.193, allocations: 1.017 MB / 0.5264 GB, free: 2.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.193, allocations: 4.062 kB / 0.5265 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005714/0.1936, allocations: 0.5268 MB / 0.527 GB, free: 2.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.1941, allocations: 93.66 kB / 0.5271 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.1979, allocations: 2.837 MB / 0.5298 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009187/0.1989, allocations: 1.319 MB / 0.5311 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.1991, allocations: 72.55 kB / 0.5312 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.1993, allocations: 51.42 kB / 0.5312 GB, free: 13.99 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.1993, allocations: 0 / 0.5312 GB, free: 13.99 MB / 414.1 MB Notification: Performance of Templates: time 0.01286/0.2121, allocations: 5.501 MB / 0.5366 GB, free: 8.488 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)