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.001678/0.001678, allocations: 113.6 kB / 16.4 MB, free: 6.383 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.001838/0.001838, allocations: 191.7 kB / 17.33 MB, free: 5.844 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.196/0.196, allocations: 28.78 MB / 320 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 63.91 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1106, allocations: 56.41 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005274/0.1159, allocations: 3.693 MB / 0.4933 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1177, allocations: 0.7713 MB / 0.494 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.1181, allocations: 19.94 kB / 0.494 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000477/0.1185, allocations: 178.3 kB / 0.4942 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003269/0.1189, allocations: 142.7 kB / 0.4944 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007846/0.1197, allocations: 371.5 kB / 0.4947 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009189/0.1206, allocations: 0.8678 MB / 0.4956 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007173/0.1213, allocations: 0.492 MB / 0.496 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.1216, allocations: 346.4 kB / 0.4964 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004018/0.122, allocations: 433.5 kB / 0.4968 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.1221, allocations: 84 kB / 0.4969 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.1223, allocations: 119.9 kB / 0.497 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003819/0.1227, allocations: 446.4 kB / 0.4974 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004832/0.1232, allocations: 0.6203 MB / 0.498 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.1246, allocations: 1.282 MB / 0.4993 GB, free: 176 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1246, allocations: 0 / 0.4993 GB, free: 176 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1246, allocations: 0 / 0.4993 GB, free: 176 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.1246, allocations: 4 kB / 0.4993 GB, free: 172 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.002445/0.127, allocations: 1.861 MB / 0.5011 GB, free: 14.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1271, allocations: 12.03 kB / 0.5011 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002451/0.1273, allocations: 207.6 kB / 0.5013 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.1283, allocations: 0.7721 MB / 0.502 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.067e-05/0.1284, allocations: 82.47 kB / 0.5021 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.1285, allocations: 104.4 kB / 0.5022 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.1302, allocations: 1.178 MB / 0.5034 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1303, allocations: 4.188 kB / 0.5034 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.1303, allocations: 43.94 kB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.1304, allocations: 28 kB / 0.5034 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.132, allocations: 1.101 MB / 0.5045 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004764/0.1367, allocations: 3.687 MB / 0.5081 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.1385, allocations: 1.326 MB / 0.5094 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005962/0.1391, allocations: 474.6 kB / 0.5099 GB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.872e-05/0.1391, allocations: 28.86 kB / 0.5099 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000779/0.1399, allocations: 0.5471 MB / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.226e-06/0.1399, allocations: 0 / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002158/0.1421, allocations: 1.578 MB / 0.512 GB, free: 2.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.1421, allocations: 60.06 kB / 0.512 GB, free: 2.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00157/0.1437, allocations: 1.301 MB / 0.5133 GB, free: 1.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.845e-05/0.1438, allocations: 37.7 kB / 0.5133 GB, free: 1.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006883/0.1444, allocations: 0.7883 MB / 0.5141 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.1447, allocations: 253.8 kB / 0.5143 GB, free: 360 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.1448, allocations: 126.6 kB / 0.5145 GB, free: 228 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.207/0.3518, allocations: 329.5 kB / 0.5148 GB, free: 26.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008252/0.3527, allocations: 444.9 kB / 0.5152 GB, free: 26.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006108/0.3533, allocations: 0.5502 MB / 0.5157 GB, free: 26.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.3544, allocations: 1.041 MB / 0.5168 GB, free: 26.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3544, allocations: 5.219 kB / 0.5168 GB, free: 26.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001541/0.3559, allocations: 1.226 MB / 0.518 GB, free: 26.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.3559, allocations: 8.109 kB / 0.518 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.356, allocations: 3.094 kB / 0.518 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.356, allocations: 10.66 kB / 0.518 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.3565, allocations: 140.3 kB / 0.5181 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3565, allocations: 10.5 kB / 0.5181 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.3568, allocations: 63.89 kB / 0.5182 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.3568, allocations: 23.09 kB / 0.5182 GB, free: 26.6 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.000514/0.3573, allocations: 385.7 kB / 0.5186 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3575, allocations: 152.9 kB / 0.5187 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.359, allocations: 1.236 MB / 0.5199 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/0.359, allocations: 8.828 kB / 0.5199 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.359, allocations: 5.125 kB / 0.5199 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.359, allocations: 3.75 kB / 0.5199 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.3617, allocations: 2.412 MB / 0.5223 GB, free: 26.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3617, allocations: 5.766 kB / 0.5223 GB, free: 26.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/0.3622, allocations: 114.8 kB / 0.5224 GB, free: 26.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.3622, allocations: 7.125 kB / 0.5224 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.3622, allocations: 14.67 kB / 0.5224 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3622, allocations: 6.062 kB / 0.5224 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3622, allocations: 1.672 kB / 0.5224 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.3643, allocations: 1.932 MB / 0.5243 GB, free: 25.87 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.3645, allocations: 261.1 kB / 0.5246 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.312e-05/0.3646, allocations: 20.59 kB / 0.5246 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.3649, allocations: 11.31 kB / 0.5246 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.461e-05/0.365, allocations: 42.56 kB / 0.5247 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.365, allocations: 24.41 kB / 0.5247 GB, free: 25.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001171/0.3662, allocations: 0.8946 MB / 0.5255 GB, free: 25.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3662, allocations: 2.344 kB / 0.5255 GB, free: 25.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006194/0.3668, allocations: 221.4 kB / 0.5258 GB, free: 25.55 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.0001724/0.367, allocations: 121.7 kB / 0.5259 GB, free: 25.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.3682, allocations: 0.989 MB / 0.5268 GB, free: 25.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3682, allocations: 3.844 kB / 0.5268 GB, free: 25.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006223/0.3689, allocations: 0.5077 MB / 0.5273 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006177/0.3695, allocations: 93.69 kB / 0.5274 GB, free: 25.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003747/0.3732, allocations: 2.837 MB / 0.5302 GB, free: 24.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000828/0.3741, allocations: 1.313 MB / 0.5315 GB, free: 23.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.3743, allocations: 80.17 kB / 0.5316 GB, free: 23.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.3744, allocations: 54.92 kB / 0.5316 GB, free: 23.23 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3744, allocations: 0 / 0.5316 GB, free: 23.23 MB / 398.1 MB Notification: Performance of Templates: time 0.0139/0.3883, allocations: 5.539 MB / 0.537 GB, free: 22.63 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)