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.001193/0.001193, allocations: 106.3 kB / 16.41 MB, free: 6.508 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.001177/0.001177, allocations: 187 kB / 17.34 MB, free: 5.742 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.237/1.237, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1591/0.1591, allocations: 28.78 MB / 320 MB, free: 1.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 63.91 kB / 445 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1127, allocations: 56.41 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004557/0.1173, allocations: 3.68 MB / 0.4933 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.1191, allocations: 0.7752 MB / 0.494 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005967/0.1198, allocations: 19.94 kB / 0.494 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005557/0.1203, allocations: 170.3 kB / 0.4942 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005472/0.1209, allocations: 134.8 kB / 0.4943 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008797/0.1218, allocations: 383.5 kB / 0.4947 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.1229, allocations: 0.8601 MB / 0.4955 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008886/0.1238, allocations: 0.6521 MB / 0.4962 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000357/0.1241, allocations: 342.4 kB / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004477/0.1246, allocations: 429.5 kB / 0.4969 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.1248, allocations: 88 kB / 0.497 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.125, allocations: 116 kB / 0.4971 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003654/0.1254, allocations: 446.4 kB / 0.4975 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005318/0.1259, allocations: 0.6242 MB / 0.4981 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1271, allocations: 1.264 MB / 0.4994 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1271, allocations: 0 / 0.4994 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1271, allocations: 0 / 0.4994 GB, free: 44 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.1271, allocations: 4 kB / 0.4994 GB, free: 40 kB / 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.002113/0.1292, allocations: 1.799 MB / 0.5011 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.1293, allocations: 12.03 kB / 0.5012 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.1295, allocations: 198.4 kB / 0.5013 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008405/0.1303, allocations: 0.759 MB / 0.5021 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.946e-05/0.1304, allocations: 82.45 kB / 0.5022 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.1305, allocations: 108.3 kB / 0.5023 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.132, allocations: 1.174 MB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.132, allocations: 192 / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.1321, allocations: 51.88 kB / 0.5035 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.1321, allocations: 28 kB / 0.5035 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1334, allocations: 1.105 MB / 0.5046 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.1373, allocations: 3.662 MB / 0.5081 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.1388, allocations: 1.369 MB / 0.5095 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005012/0.1393, allocations: 498.6 kB / 0.51 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-05/0.1394, allocations: 24.86 kB / 0.51 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006483/0.14, allocations: 0.5432 MB / 0.5105 GB, free: 4.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.515e-06/0.14, allocations: 4 kB / 0.5105 GB, free: 4.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.0018/0.1419, allocations: 1.57 MB / 0.512 GB, free: 2.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.1419, allocations: 64 kB / 0.5121 GB, free: 2.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.1432, allocations: 1.301 MB / 0.5134 GB, free: 1.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.1432, allocations: 33.7 kB / 0.5134 GB, free: 1.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005274/0.1438, allocations: 0.7678 MB / 0.5142 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.144, allocations: 240.4 kB / 0.5144 GB, free: 308 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.1441, allocations: 126.6 kB / 0.5145 GB, free: 176 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.186/0.3301, allocations: 337.9 kB / 0.5148 GB, free: 27.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007947/0.331, allocations: 444.8 kB / 0.5153 GB, free: 27.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005865/0.3315, allocations: 0.5477 MB / 0.5158 GB, free: 27.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.3327, allocations: 1.043 MB / 0.5168 GB, free: 27.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.3327, allocations: 1.219 kB / 0.5168 GB, free: 27.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001546/0.3342, allocations: 1.224 MB / 0.518 GB, free: 27.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3343, allocations: 7.219 kB / 0.518 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3343, allocations: 3.156 kB / 0.518 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3343, allocations: 7.5 kB / 0.518 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.3348, allocations: 140.4 kB / 0.5182 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.3348, allocations: 10.97 kB / 0.5182 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.335, allocations: 54.53 kB / 0.5182 GB, free: 27.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.3351, allocations: 33.83 kB / 0.5183 GB, free: 27.36 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.0005296/0.3356, allocations: 384.9 kB / 0.5186 GB, free: 27.24 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.3358, allocations: 143.2 kB / 0.5188 GB, free: 27.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.3372, allocations: 1.24 MB / 0.52 GB, free: 27.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3373, allocations: 8.312 kB / 0.52 GB, free: 27.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3373, allocations: 6.719 kB / 0.52 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.3373, allocations: 4.922 kB / 0.52 GB, free: 27.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.3403, allocations: 2.407 MB / 0.5223 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3403, allocations: 0 / 0.5223 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004773/0.3408, allocations: 120.3 kB / 0.5225 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.3408, allocations: 7.578 kB / 0.5225 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.3409, allocations: 18.23 kB / 0.5225 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.3409, allocations: 3.438 kB / 0.5225 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3409, allocations: 0.75 kB / 0.5225 GB, free: 26.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.3431, allocations: 1.93 MB / 0.5244 GB, free: 26.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002988/0.3434, allocations: 248.2 kB / 0.5246 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.578e-05/0.3435, allocations: 17.72 kB / 0.5246 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.3437, allocations: 16.5 kB / 0.5246 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.943e-05/0.3438, allocations: 41.56 kB / 0.5247 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-05/0.3439, allocations: 20.47 kB / 0.5247 GB, free: 26.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.3451, allocations: 0.9015 MB / 0.5256 GB, free: 26.2 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3451, allocations: 0 / 0.5256 GB, free: 26.2 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006202/0.3457, allocations: 214.5 kB / 0.5258 GB, free: 26.15 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.0001686/0.3459, allocations: 121.4 kB / 0.5259 GB, free: 26.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.3472, allocations: 1.023 MB / 0.5269 GB, free: 25.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3472, allocations: 0 / 0.5269 GB, free: 25.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005755/0.3478, allocations: 0.5251 MB / 0.5274 GB, free: 25.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000575/0.3484, allocations: 93.92 kB / 0.5275 GB, free: 25.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.3522, allocations: 2.875 MB / 0.5303 GB, free: 24.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008561/0.353, allocations: 1.316 MB / 0.5316 GB, free: 23.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.3532, allocations: 60.92 kB / 0.5316 GB, free: 23.62 MB / 398.1 MB Notification: Performance of SimCode: time 1.833e-06/0.3532, allocations: 0 / 0.5316 GB, free: 23.62 MB / 398.1 MB Notification: Performance of Templates: time 0.01629/0.3695, allocations: 11.52 MB / 0.5429 GB, free: 19.49 MB / 398.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)