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.003633/0.003633, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.0009338/0.0009338, allocations: 201.9 kB / 16.68 MB, free: 5.969 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.248/1.248, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2487/0.2487, allocations: 28.82 MB / 319.3 MB, free: 5.578 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 62.5 kB / 444.4 MB, free: 36.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.08316, allocations: 56.44 MB / 0.4891 GB, free: 8.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003513/0.08671, allocations: 3.673 MB / 0.4926 GB, free: 5.602 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.08839, allocations: 0.7704 MB / 0.4934 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003596/0.08877, allocations: 21.16 kB / 0.4934 GB, free: 4.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003486/0.08912, allocations: 181.8 kB / 0.4936 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002723/0.08941, allocations: 131.2 kB / 0.4937 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.08998, allocations: 382 kB / 0.4941 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005458/0.09054, allocations: 0.8631 MB / 0.4949 GB, free: 3.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005429/0.09109, allocations: 0.6404 MB / 0.4955 GB, free: 3.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.09126, allocations: 346.3 kB / 0.4959 GB, free: 2.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.09148, allocations: 433.6 kB / 0.4963 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.687e-05/0.09158, allocations: 88 kB / 0.4964 GB, free: 2.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.09173, allocations: 116 kB / 0.4965 GB, free: 2.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.09193, allocations: 438.4 kB / 0.4969 GB, free: 1.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.09217, allocations: 0.6242 MB / 0.4975 GB, free: 1.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007597/0.09294, allocations: 1.282 MB / 0.4988 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.09295, allocations: 3.938 kB / 0.4988 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09296, allocations: 0 / 0.4988 GB, free: 15.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.09297, allocations: 0 / 0.4988 GB, free: 15.79 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.001861/0.09484, allocations: 1.853 MB / 0.5006 GB, free: 13.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.761e-05/0.09487, allocations: 8.031 kB / 0.5006 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.09508, allocations: 211.6 kB / 0.5008 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.09584, allocations: 0.7876 MB / 0.5016 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.0959, allocations: 78.47 kB / 0.5016 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.09601, allocations: 104.4 kB / 0.5017 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.09743, allocations: 1.174 MB / 0.5029 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.09746, allocations: 192 / 0.5029 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.09752, allocations: 47.94 kB / 0.5029 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.09755, allocations: 24 kB / 0.5029 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.09884, allocations: 1.105 MB / 0.504 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003596/0.1025, allocations: 3.675 MB / 0.5076 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.1039, allocations: 1.365 MB / 0.5089 GB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004852/0.1044, allocations: 494.6 kB / 0.5094 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.371e-05/0.1044, allocations: 28.86 kB / 0.5094 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000621/0.1051, allocations: 0.5471 MB / 0.51 GB, free: 3.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 1.833e-06/0.1051, allocations: 0 / 0.51 GB, free: 3.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.001686/0.1068, allocations: 1.575 MB / 0.5115 GB, free: 2.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.1068, allocations: 60.05 kB / 0.5116 GB, free: 2.328 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.108, allocations: 1.304 MB / 0.5129 GB, free: 1.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.1081, allocations: 41.7 kB / 0.5129 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004968/0.1086, allocations: 0.7689 MB / 0.5136 GB, free: 196 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.1087, allocations: 261.9 kB / 0.5139 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.1089, allocations: 126.6 kB / 0.514 GB, free: 15.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.109, allocations: 333.9 kB / 0.5143 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.1095, allocations: 445.7 kB / 0.5148 GB, free: 15.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/0.11, allocations: 0.5562 MB / 0.5153 GB, free: 14.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.1112, allocations: 1.05 MB / 0.5163 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1112, allocations: 0 / 0.5163 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001284/0.1125, allocations: 1.227 MB / 0.5175 GB, free: 12.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1125, allocations: 12.06 kB / 0.5175 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1125, allocations: 0 / 0.5175 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1126, allocations: 8 kB / 0.5175 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004375/0.113, allocations: 143.8 kB / 0.5177 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.113, allocations: 4 kB / 0.5177 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.1132, allocations: 59.56 kB / 0.5177 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.1133, allocations: 27.98 kB / 0.5178 GB, free: 11.86 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.0004362/0.1137, allocations: 397.8 kB / 0.5181 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.1139, allocations: 151 kB / 0.5183 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.1153, allocations: 1.242 MB / 0.5195 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1153, allocations: 8 kB / 0.5195 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1153, allocations: 0 / 0.5195 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1153, allocations: 3.984 kB / 0.5195 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.1177, allocations: 2.417 MB / 0.5219 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1177, allocations: 4 kB / 0.5219 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004213/0.1181, allocations: 119.8 kB / 0.522 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.1181, allocations: 4 kB / 0.522 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-05/0.1182, allocations: 15.98 kB / 0.522 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.1182, allocations: 4 kB / 0.522 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1182, allocations: 3.938 kB / 0.522 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.1201, allocations: 1.93 MB / 0.5239 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.1203, allocations: 263.9 kB / 0.5242 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.594e-05/0.1204, allocations: 16 kB / 0.5242 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1206, allocations: 12 kB / 0.5242 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.1207, allocations: 44.53 kB / 0.5242 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.1208, allocations: 20 kB / 0.5242 GB, free: 5.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009014/0.1217, allocations: 0.8969 MB / 0.5251 GB, free: 4.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.993e-06/0.1217, allocations: 0 / 0.5251 GB, free: 4.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.1221, allocations: 223.2 kB / 0.5253 GB, free: 3.992 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.0001474/0.1223, allocations: 121.2 kB / 0.5254 GB, free: 3.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.1234, allocations: 1.024 MB / 0.5264 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1234, allocations: 0 / 0.5264 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/0.124, allocations: 0.5268 MB / 0.527 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.1245, allocations: 95.3 kB / 0.5271 GB, free: 2.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.1276, allocations: 2.837 MB / 0.5298 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000794/0.1284, allocations: 1.303 MB / 0.5311 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.1287, allocations: 80.55 kB / 0.5312 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.1288, allocations: 51.42 kB / 0.5312 GB, free: 13.88 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1288, allocations: 0 / 0.5312 GB, free: 13.88 MB / 414.1 MB Notification: Performance of Templates: time 0.01077/0.1396, allocations: 5.501 MB / 0.5366 GB, free: 8.379 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)