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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.002035/0.002035, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 221.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 104.2 kB / 269.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1801/0.1801, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009563/0.0009564, allocations: 55.92 kB / 409.7 MB, free: 47.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.1005, allocations: 53.61 MB / 463.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004834/0.1054, allocations: 3.688 MB / 467 MB, free: 6.598 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.1074, allocations: 0.7481 MB / 467.7 MB, free: 5.848 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003885/0.1078, allocations: 15.94 kB / 467.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.1082, allocations: 131 kB / 467.9 MB, free: 5.703 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002755/0.1085, allocations: 99.42 kB / 468 MB, free: 5.605 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006764/0.1092, allocations: 327.7 kB / 468.3 MB, free: 5.285 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007879/0.11, allocations: 0.8445 MB / 469.1 MB, free: 4.438 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007652/0.1108, allocations: 0.6133 MB / 469.7 MB, free: 3.793 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.1111, allocations: 310.5 kB / 470.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.1115, allocations: 441.4 kB / 470.5 MB, free: 3.055 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1116, allocations: 56 kB / 470.5 MB, free: 3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.1118, allocations: 87.91 kB / 470.6 MB, free: 2.914 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003476/0.1122, allocations: 414.5 kB / 471 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004266/0.1126, allocations: 0.5929 MB / 471.6 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009782/0.1136, allocations: 1.147 MB / 472.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1136, allocations: 0 / 472.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1136, allocations: 0 / 472.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1136, allocations: 0 / 472.8 MB, free: 0.7578 MB / 314.7 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.002216/0.1158, allocations: 1.799 MB / 474.6 MB, free: 14.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1159, allocations: 12.02 kB / 474.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.1161, allocations: 202.4 kB / 474.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008411/0.117, allocations: 0.7434 MB / 475.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.79e-05/0.1171, allocations: 78.47 kB / 475.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.1172, allocations: 112.3 kB / 475.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.1187, allocations: 1.174 MB / 476.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1188, allocations: 192 / 476.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.1188, allocations: 43.94 kB / 476.9 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.1189, allocations: 28 kB / 477 MB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1203, allocations: 1.105 MB / 478.1 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0043/0.1246, allocations: 3.709 MB / 481.8 MB, free: 7.453 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.1263, allocations: 1.381 MB / 483.1 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005861/0.1269, allocations: 490.6 kB / 483.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.964e-05/0.127, allocations: 28.8 kB / 483.7 MB, free: 5.555 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008495/0.1278, allocations: 0.551 MB / 484.2 MB, free: 4.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=72): time 2.585e-06/0.1278, allocations: 0 / 484.2 MB, free: 4.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.002032/0.1299, allocations: 1.57 MB / 485.8 MB, free: 3.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.1299, allocations: 60.06 kB / 485.8 MB, free: 3.344 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.1313, allocations: 1.297 MB / 487.1 MB, free: 2.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.1314, allocations: 41.7 kB / 487.2 MB, free: 1.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005737/0.132, allocations: 0.7639 MB / 487.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.1322, allocations: 248.5 kB / 488.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.1323, allocations: 122.6 kB / 488.3 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1325, allocations: 333.9 kB / 488.6 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005364/0.133, allocations: 449.8 kB / 489.1 MB, free: 76 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1991/0.3322, allocations: 0.5455 MB / 489.6 MB, free: 32.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3336, allocations: 1.045 MB / 490.7 MB, free: 31.94 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3336, allocations: 1.281 kB / 490.7 MB, free: 31.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001813/0.3354, allocations: 1.222 MB / 491.9 MB, free: 31.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.3355, allocations: 7.047 kB / 491.9 MB, free: 31.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3355, allocations: 10.31 kB / 491.9 MB, free: 31.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3355, allocations: 6.312 kB / 491.9 MB, free: 31.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.336, allocations: 135.2 kB / 492 MB, free: 31.63 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.3361, allocations: 6.406 kB / 492 MB, free: 31.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.3364, allocations: 52.69 kB / 492.1 MB, free: 31.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.434e-05/0.3364, allocations: 30.8 kB / 492.1 MB, free: 31.61 MB / 330.7 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.0007277/0.3372, allocations: 386.8 kB / 492.5 MB, free: 31.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.3373, allocations: 143.6 kB / 492.6 MB, free: 31.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.3392, allocations: 1.235 MB / 493.9 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3392, allocations: 9.797 kB / 493.9 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3392, allocations: 0 / 493.9 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.3393, allocations: 5.156 kB / 493.9 MB, free: 31.04 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.3427, allocations: 2.413 MB / 496.3 MB, free: 30.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3427, allocations: 7.578 kB / 496.3 MB, free: 30.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.3432, allocations: 115.6 kB / 496.4 MB, free: 30.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.3432, allocations: 2.75 kB / 496.4 MB, free: 30.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.181e-05/0.3433, allocations: 15.33 kB / 496.4 MB, free: 30.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.3433, allocations: 6.906 kB / 496.4 MB, free: 30.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3433, allocations: 1.672 kB / 496.4 MB, free: 30.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01884/0.3621, allocations: 12.11 MB / 0.4966 GB, free: 25.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/0.3625, allocations: 253.4 kB / 0.4969 GB, free: 25.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.514e-05/0.3626, allocations: 14.48 kB / 0.4969 GB, free: 25.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.3628, allocations: 11.69 kB / 0.4969 GB, free: 25.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.363, allocations: 46.42 kB / 0.4969 GB, free: 25.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.363, allocations: 18.52 kB / 0.497 GB, free: 25.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.364, allocations: 0.8996 MB / 0.4978 GB, free: 25.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.364, allocations: 0 / 0.4978 GB, free: 25.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000859/0.3649, allocations: 306 kB / 0.4981 GB, free: 25.12 MB / 330.7 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.0002093/0.3651, allocations: 129.3 kB / 0.4983 GB, free: 24.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.3662, allocations: 1.024 MB / 0.4993 GB, free: 24.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3662, allocations: 0 / 0.4993 GB, free: 24.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004344/0.3666, allocations: 0.5217 MB / 0.4998 GB, free: 23.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.3672, allocations: 96.53 kB / 0.4999 GB, free: 23.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.3715, allocations: 3.856 MB / 0.5036 GB, free: 19.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/0.3722, allocations: 1.333 MB / 0.5049 GB, free: 18.37 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004514/0.3726, allocations: 146.7 kB / 0.5051 GB, free: 18.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.3729, allocations: 87.41 kB / 0.5052 GB, free: 18.13 MB / 330.7 MB Notification: Performance of SimCode: time 6.62e-07/0.3729, allocations: 4 kB / 0.5052 GB, free: 18.13 MB / 330.7 MB Notification: Performance of Templates: time 0.01494/0.3879, allocations: 9.324 MB / 0.5143 GB, free: 8.801 MB / 330.7 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)