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.001588/0.001589, allocations: 112.6 kB / 16.37 MB, free: 6 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.001845/0.001845, allocations: 196 kB / 17.31 MB, free: 5.613 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1844/0.1844, allocations: 28.78 MB / 319.9 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 55.22 kB / 388 MB, free: 40.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.116, allocations: 56.45 MB / 444.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004971/0.121, allocations: 3.671 MB / 448.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.1227, allocations: 0.7752 MB / 448.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003638/0.1231, allocations: 15.94 kB / 448.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.1235, allocations: 174.3 kB / 449.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.1238, allocations: 142.7 kB / 449.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000732/0.1245, allocations: 375.5 kB / 449.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007592/0.1253, allocations: 0.864 MB / 450.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007931/0.1261, allocations: 0.6365 MB / 451.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.1264, allocations: 346.3 kB / 451.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003518/0.1267, allocations: 433.6 kB / 451.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.1269, allocations: 84 kB / 451.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.1271, allocations: 112 kB / 452 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003533/0.1274, allocations: 446.4 kB / 452.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004288/0.1279, allocations: 0.6242 MB / 453.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.129, allocations: 1.26 MB / 454.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.129, allocations: 7.938 kB / 454.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.129, allocations: 0 / 454.4 MB, free: 9.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.129, allocations: 4 kB / 454.4 MB, free: 9.066 MB / 334.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.002332/0.1314, allocations: 1.798 MB / 456.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1314, allocations: 8.031 kB / 456.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.1316, allocations: 198.4 kB / 456.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009974/0.1327, allocations: 0.7629 MB / 457.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.941e-05/0.1327, allocations: 78.47 kB / 457.2 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.1329, allocations: 104.4 kB / 457.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.1344, allocations: 1.178 MB / 458.5 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.1345, allocations: 4.125 kB / 458.5 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.1345, allocations: 47.94 kB / 458.6 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.1345, allocations: 24 kB / 458.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.1359, allocations: 1.101 MB / 459.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004209/0.1401, allocations: 3.682 MB / 463.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.1417, allocations: 1.369 MB / 464.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005399/0.1422, allocations: 494.6 kB / 465.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.977e-05/0.1423, allocations: 24.7 kB / 465.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006889/0.143, allocations: 0.5511 MB / 465.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.124e-06/0.143, allocations: 0 / 465.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.001896/0.1449, allocations: 1.566 MB / 467.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.145, allocations: 60.06 kB / 467.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/0.1464, allocations: 1.297 MB / 468.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.1464, allocations: 37.64 kB / 468.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.1471, allocations: 0.7794 MB / 469.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.1473, allocations: 240.6 kB / 469.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.1474, allocations: 126.6 kB / 469.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1476, allocations: 337.8 kB / 470.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.1481, allocations: 449.8 kB / 470.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.1487, allocations: 0.5523 MB / 471.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.1499, allocations: 1.038 MB / 472.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1499, allocations: 4 kB / 472.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001453/0.1514, allocations: 1.225 MB / 473.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1514, allocations: 8 kB / 473.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1514, allocations: 4.062 kB / 473.5 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1515, allocations: 8.344 kB / 473.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.1519, allocations: 139.8 kB / 473.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.152, allocations: 7.984 kB / 473.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.1522, allocations: 55.44 kB / 473.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/0.1523, allocations: 24 kB / 473.7 MB, free: 5.262 MB / 350.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.0004863/0.1527, allocations: 393.8 kB / 474.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.1529, allocations: 142.1 kB / 474.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.1544, allocations: 1.238 MB / 475.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.1544, allocations: 8 kB / 475.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1545, allocations: 0 / 475.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.1545, allocations: 3.984 kB / 475.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.1571, allocations: 2.409 MB / 477.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1571, allocations: 4 kB / 477.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.1576, allocations: 115.8 kB / 478 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.1576, allocations: 4 kB / 478 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.1576, allocations: 20 kB / 478 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.1576, allocations: 4 kB / 478 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1576, allocations: 7.922 kB / 478 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.1597, allocations: 1.925 MB / 480 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.1601, allocations: 255 kB / 480.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.307e-05/0.1601, allocations: 12 kB / 480.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.1604, allocations: 19.94 kB / 480.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.437e-05/0.1605, allocations: 48.53 kB / 480.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.1605, allocations: 23.98 kB / 480.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001013/0.1615, allocations: 0.893 MB / 481.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1616, allocations: 0 / 481.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.1621, allocations: 215 kB / 481.4 MB, free: 13.43 MB / 366.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.0001906/0.1623, allocations: 125.9 kB / 481.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.1636, allocations: 1.021 MB / 482.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1636, allocations: 0 / 482.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005914/0.1642, allocations: 0.5229 MB / 483.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005676/0.1648, allocations: 93.33 kB / 483.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.1682, allocations: 2.79 MB / 486 MB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/0.1691, allocations: 1.307 MB / 487.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002116/0.1693, allocations: 80.55 kB / 487.4 MB, free: 7.414 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1694, allocations: 43.44 kB / 487.4 MB, free: 7.371 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1694, allocations: 0 / 487.4 MB, free: 7.371 MB / 366.1 MB Notification: Performance of Templates: time 0.0119/0.1813, allocations: 5.399 MB / 492.8 MB, free: 1.977 MB / 366.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 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)