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.001865/0.001865, allocations: 108.8 kB / 16.41 MB, free: 6.449 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.001824/0.001824, allocations: 189.2 kB / 17.34 MB, free: 5.703 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.515/1.515, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1936/0.1936, allocations: 28.78 MB / 320 MB, free: 1.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.89 kB / 445 MB, free: 2.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1075, allocations: 56.42 MB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.005143/0.1127, allocations: 3.257 MB / 0.4929 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.1141, allocations: 0.5299 MB / 0.4934 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.1144, allocations: 12 kB / 0.4934 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.1147, allocations: 138.6 kB / 0.4935 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.115, allocations: 138.9 kB / 0.4937 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006296/0.1156, allocations: 279.6 kB / 0.4939 GB, free: 5.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007643/0.1164, allocations: 0.724 MB / 0.4946 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005718/0.1169, allocations: 381.2 kB / 0.495 GB, free: 4.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.1172, allocations: 310.6 kB / 0.4953 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003593/0.1176, allocations: 385.8 kB / 0.4957 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.1177, allocations: 76 kB / 0.4957 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.1179, allocations: 99.97 kB / 0.4958 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.1183, allocations: 434.4 kB / 0.4963 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004715/0.1188, allocations: 0.5737 MB / 0.4968 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.1201, allocations: 1.142 MB / 0.4979 GB, free: 1.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1201, allocations: 0 / 0.4979 GB, free: 1.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1201, allocations: 0 / 0.4979 GB, free: 1.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.1201, allocations: 0 / 0.4979 GB, free: 1.523 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.002404/0.1225, allocations: 1.779 MB / 0.4997 GB, free: 15.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1225, allocations: 12.03 kB / 0.4997 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.1228, allocations: 199.6 kB / 0.4999 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006189/0.1234, allocations: 0.5793 MB / 0.5004 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.484e-05/0.1235, allocations: 74.38 kB / 0.5005 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.1236, allocations: 108.2 kB / 0.5006 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/0.1253, allocations: 1.075 MB / 0.5017 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.1253, allocations: 3.938 kB / 0.5017 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.895e-05/0.1254, allocations: 44 kB / 0.5017 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.992e-05/0.1255, allocations: 54.12 kB / 0.5018 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.1273, allocations: 1.215 MB / 0.5029 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004167/0.1315, allocations: 2.844 MB / 0.5057 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.133, allocations: 0.9632 MB / 0.5067 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007153/0.1337, allocations: 498.2 kB / 0.5071 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.067e-05/0.1338, allocations: 28.69 kB / 0.5072 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.1338, allocations: 47.06 kB / 0.5072 GB, free: 7.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.494e-06/0.1338, allocations: 0 / 0.5072 GB, free: 7.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002443/0.1362, allocations: 1.595 MB / 0.5088 GB, free: 6.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.1363, allocations: 55.97 kB / 0.5088 GB, free: 6.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.1378, allocations: 1.262 MB / 0.51 GB, free: 4.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.1379, allocations: 37.7 kB / 0.5101 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006748/0.1385, allocations: 0.7912 MB / 0.5109 GB, free: 4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.1387, allocations: 245.9 kB / 0.5111 GB, free: 3.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.1389, allocations: 130.6 kB / 0.5112 GB, free: 3.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1391, allocations: 337.9 kB / 0.5115 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007227/0.1398, allocations: 477.7 kB / 0.512 GB, free: 2.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008776/0.1407, allocations: 0.652 MB / 0.5126 GB, free: 2.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2087/0.3494, allocations: 2.12 MB / 0.5147 GB, free: 26.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.3494, allocations: 1.469 kB / 0.5147 GB, free: 26.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001946/0.3513, allocations: 1.344 MB / 0.516 GB, free: 26.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3513, allocations: 8.5 kB / 0.516 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3513, allocations: 6.531 kB / 0.516 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.3514, allocations: 10.62 kB / 0.516 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.3519, allocations: 179 kB / 0.5162 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.3519, allocations: 16.03 kB / 0.5162 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.3523, allocations: 79.25 kB / 0.5163 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.3523, allocations: 39 kB / 0.5163 GB, free: 26.45 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.0005313/0.3529, allocations: 395.4 kB / 0.5167 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.353, allocations: 141.7 kB / 0.5168 GB, free: 26.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001872/0.3549, allocations: 1.251 MB / 0.5181 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3549, allocations: 11.28 kB / 0.5181 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.3549, allocations: 5.125 kB / 0.5181 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3549, allocations: 4.172 kB / 0.5181 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.3583, allocations: 2.367 MB / 0.5204 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3583, allocations: 1.859 kB / 0.5204 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005826/0.3589, allocations: 125.3 kB / 0.5205 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/0.3589, allocations: 4.438 kB / 0.5205 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.878e-05/0.3589, allocations: 15.67 kB / 0.5205 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.333e-06/0.3589, allocations: 4.594 kB / 0.5205 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3589, allocations: 4.688 kB / 0.5206 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002492/0.3614, allocations: 1.941 MB / 0.5224 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.3616, allocations: 204.3 kB / 0.5226 GB, free: 25.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.3617, allocations: 15.14 kB / 0.5227 GB, free: 25.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.3619, allocations: 26.77 kB / 0.5227 GB, free: 25.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.3621, allocations: 47.83 kB / 0.5227 GB, free: 25.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.753e-05/0.3621, allocations: 26.66 kB / 0.5228 GB, free: 25.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.3632, allocations: 0.8712 MB / 0.5236 GB, free: 25.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3632, allocations: 1.281 kB / 0.5236 GB, free: 25.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006361/0.3639, allocations: 212 kB / 0.5238 GB, free: 25.39 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.0001659/0.364, allocations: 118.8 kB / 0.5239 GB, free: 25.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.3656, allocations: 1.06 MB / 0.525 GB, free: 25.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3656, allocations: 0 / 0.525 GB, free: 25.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007236/0.3664, allocations: 0.5306 MB / 0.5255 GB, free: 25.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000483/0.3669, allocations: 63.41 kB / 0.5255 GB, free: 25.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004028/0.3709, allocations: 2.792 MB / 0.5283 GB, free: 24.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009988/0.3719, allocations: 1.294 MB / 0.5295 GB, free: 23.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003856/0.3723, allocations: 123 kB / 0.5296 GB, free: 23.51 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3724, allocations: 57.27 kB / 0.5297 GB, free: 23.5 MB / 398.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3724, allocations: 0 / 0.5297 GB, free: 23.5 MB / 398.1 MB Notification: Performance of Templates: time 0.0144/0.3868, allocations: 5.418 MB / 0.535 GB, free: 23.1 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)