Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006899/0.0069, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001307/0.001307, allocations: 192.3 kB / 16.67 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1957/0.1957, allocations: 28.79 MB / 319.3 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 444.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1134, allocations: 56.41 MB / 0.489 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004354/0.1178, allocations: 3.261 MB / 0.4922 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1191, allocations: 0.5299 MB / 0.4927 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.1194, allocations: 12 kB / 0.4927 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002754/0.1196, allocations: 146.5 kB / 0.4929 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000293/0.1199, allocations: 127 kB / 0.493 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.1205, allocations: 283.6 kB / 0.4933 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006286/0.1212, allocations: 0.724 MB / 0.494 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006142/0.1218, allocations: 477.2 kB / 0.4944 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002521/0.122, allocations: 310.5 kB / 0.4947 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.1224, allocations: 377.9 kB / 0.4951 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.1226, allocations: 76 kB / 0.4952 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.1228, allocations: 107.9 kB / 0.4953 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.1231, allocations: 430.5 kB / 0.4957 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004014/0.1235, allocations: 0.5814 MB / 0.4962 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.1246, allocations: 1.134 MB / 0.4973 GB, free: 1.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1246, allocations: 0 / 0.4973 GB, free: 1.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1246, allocations: 0 / 0.4973 GB, free: 1.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.1246, allocations: 0 / 0.4973 GB, free: 1.48 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002134/0.1268, allocations: 1.775 MB / 0.4991 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.1268, allocations: 12.03 kB / 0.4991 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.1271, allocations: 199.6 kB / 0.4993 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.1276, allocations: 0.5832 MB / 0.4998 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/0.1276, allocations: 74.38 kB / 0.4999 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1278, allocations: 100.3 kB / 0.5 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.1293, allocations: 1.075 MB / 0.5011 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.1294, allocations: 3.938 kB / 0.5011 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.109e-05/0.1295, allocations: 43.94 kB / 0.5011 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-05/0.1295, allocations: 58.11 kB / 0.5012 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.1312, allocations: 1.219 MB / 0.5024 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003671/0.1349, allocations: 2.833 MB / 0.5051 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.1362, allocations: 0.9983 MB / 0.5061 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006239/0.1368, allocations: 0.4944 MB / 0.5066 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.607e-05/0.1369, allocations: 32.67 kB / 0.5066 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.377e-05/0.137, allocations: 55.05 kB / 0.5067 GB, free: 7.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.815e-06/0.137, allocations: 0 / 0.5067 GB, free: 7.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002066/0.1391, allocations: 1.595 MB / 0.5082 GB, free: 6.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.1391, allocations: 59.97 kB / 0.5083 GB, free: 6.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.1404, allocations: 1.262 MB / 0.5095 GB, free: 4.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.1404, allocations: 37.7 kB / 0.5095 GB, free: 4.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005553/0.141, allocations: 0.7795 MB / 0.5103 GB, free: 3.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.1412, allocations: 249.9 kB / 0.5105 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.1414, allocations: 138.6 kB / 0.5107 GB, free: 3.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1415, allocations: 334 kB / 0.511 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006257/0.1421, allocations: 481.7 kB / 0.5115 GB, free: 2.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007733/0.1429, allocations: 0.6559 MB / 0.5121 GB, free: 2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2322/0.3751, allocations: 2.113 MB / 0.5142 GB, free: 26.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3752, allocations: 1.906 kB / 0.5142 GB, free: 26.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001946/0.3771, allocations: 1.346 MB / 0.5155 GB, free: 26.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3772, allocations: 10 kB / 0.5155 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.3772, allocations: 7.031 kB / 0.5155 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3772, allocations: 9.125 kB / 0.5155 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.3778, allocations: 175.3 kB / 0.5157 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.3778, allocations: 11.73 kB / 0.5157 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.3781, allocations: 82.17 kB / 0.5158 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.3782, allocations: 38.12 kB / 0.5158 GB, free: 26.41 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0005446/0.3787, allocations: 395.9 kB / 0.5162 GB, free: 26.29 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3788, allocations: 143.6 kB / 0.5163 GB, free: 26.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/0.3804, allocations: 1.253 MB / 0.5175 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3804, allocations: 7.344 kB / 0.5175 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3804, allocations: 1.188 kB / 0.5175 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.3805, allocations: 4.641 kB / 0.5175 GB, free: 26.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.383, allocations: 2.368 MB / 0.5199 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.383, allocations: 0.5625 kB / 0.5199 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/0.3835, allocations: 131.5 kB / 0.52 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.3835, allocations: 2.625 kB / 0.52 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.322e-05/0.3835, allocations: 15.53 kB / 0.52 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3835, allocations: 2.25 kB / 0.52 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3836, allocations: 5.75 kB / 0.52 GB, free: 25.9 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.3859, allocations: 1.941 MB / 0.5219 GB, free: 25.67 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.386, allocations: 208.6 kB / 0.5221 GB, free: 25.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-05/0.3861, allocations: 12.06 kB / 0.5221 GB, free: 25.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.3864, allocations: 25.52 kB / 0.5221 GB, free: 25.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.3865, allocations: 52.45 kB / 0.5222 GB, free: 25.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.09e-05/0.3866, allocations: 22.38 kB / 0.5222 GB, free: 25.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.3876, allocations: 0.8689 MB / 0.5231 GB, free: 25.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3876, allocations: 1.844 kB / 0.5231 GB, free: 25.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005834/0.3882, allocations: 210.4 kB / 0.5233 GB, free: 25.36 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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 Backend phase and start with SimCode phase: time 0.0001462/0.3884, allocations: 115.2 kB / 0.5234 GB, free: 25.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.3898, allocations: 1.096 MB / 0.5244 GB, free: 25.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3898, allocations: 0 / 0.5244 GB, free: 25.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006855/0.3905, allocations: 0.5448 MB / 0.525 GB, free: 25.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/0.391, allocations: 65.03 kB / 0.525 GB, free: 25.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3945, allocations: 2.794 MB / 0.5278 GB, free: 24.21 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008409/0.3954, allocations: 1.295 MB / 0.529 GB, free: 23.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.3957, allocations: 122.9 kB / 0.5291 GB, free: 23.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3959, allocations: 52.94 kB / 0.5292 GB, free: 23.46 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3959, allocations: 0 / 0.5292 GB, free: 23.46 MB / 398.1 MB Notification: Performance of Templates: time 0.01276/0.4086, allocations: 5.39 MB / 0.5345 GB, free: 23.04 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)