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.005465/0.005465, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001183/0.001183, allocations: 189.8 kB / 16.67 MB, free: 5.48 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.224/1.224, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1543/0.1543, allocations: 28.78 MB / 319.3 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 63.89 kB / 444.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.08967, allocations: 56.42 MB / 0.489 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003766/0.09348, allocations: 3.253 MB / 0.4922 GB, free: 6.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.09443, allocations: 0.526 MB / 0.4927 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.09464, allocations: 12 kB / 0.4927 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002547/0.0949, allocations: 142.6 kB / 0.4929 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.09521, allocations: 134.9 kB / 0.493 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.09572, allocations: 275.6 kB / 0.4932 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005688/0.0963, allocations: 0.7278 MB / 0.494 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005492/0.09685, allocations: 481.2 kB / 0.4944 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.09707, allocations: 310.6 kB / 0.4947 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.09734, allocations: 381.8 kB / 0.4951 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.09745, allocations: 76 kB / 0.4952 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.09761, allocations: 99.97 kB / 0.4952 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002926/0.09791, allocations: 434.5 kB / 0.4957 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003382/0.09826, allocations: 0.5737 MB / 0.4962 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008897/0.09915, allocations: 1.138 MB / 0.4973 GB, free: 1.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.09916, allocations: 0 / 0.4973 GB, free: 1.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.09917, allocations: 0 / 0.4973 GB, free: 1.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.09919, allocations: 0 / 0.4973 GB, free: 1.473 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.001807/0.101, allocations: 1.771 MB / 0.4991 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.745e-05/0.101, allocations: 12.03 kB / 0.4991 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.1012, allocations: 195.6 kB / 0.4993 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.1016, allocations: 0.5871 MB / 0.4998 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.698e-05/0.1017, allocations: 82.36 kB / 0.4999 GB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.777e-05/0.1018, allocations: 100.3 kB / 0.5 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.1033, allocations: 1.075 MB / 0.5011 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.1033, allocations: 3.938 kB / 0.5011 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/0.1034, allocations: 40 kB / 0.5011 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.192e-05/0.1034, allocations: 54.12 kB / 0.5012 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.105, allocations: 1.219 MB / 0.5023 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003316/0.1083, allocations: 2.833 MB / 0.5051 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.1095, allocations: 1.002 MB / 0.5061 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005981/0.1101, allocations: 0.4944 MB / 0.5066 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.976e-05/0.1102, allocations: 36.69 kB / 0.5066 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.1102, allocations: 51 kB / 0.5067 GB, free: 7.691 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.603e-06/0.1102, allocations: 0 / 0.5067 GB, free: 7.691 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00198/0.1122, allocations: 1.595 MB / 0.5082 GB, free: 6.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.1122, allocations: 59.97 kB / 0.5083 GB, free: 6.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001191/0.1134, allocations: 1.262 MB / 0.5095 GB, free: 4.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.1135, allocations: 37.7 kB / 0.5095 GB, free: 4.703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004901/0.114, allocations: 0.7834 MB / 0.5103 GB, free: 3.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.1141, allocations: 241.9 kB / 0.5105 GB, free: 3.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.1143, allocations: 138.6 kB / 0.5107 GB, free: 3.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.1144, allocations: 337.9 kB / 0.511 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006074/0.115, allocations: 477.7 kB / 0.5114 GB, free: 2.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.1157, allocations: 0.6481 MB / 0.5121 GB, free: 2.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1868/0.3025, allocations: 2.125 MB / 0.5141 GB, free: 26.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3026, allocations: 4.219 kB / 0.5142 GB, free: 26.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001863/0.3044, allocations: 1.338 MB / 0.5155 GB, free: 26.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.3045, allocations: 9.688 kB / 0.5155 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3045, allocations: 9.625 kB / 0.5155 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.3045, allocations: 9.75 kB / 0.5155 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00052/0.305, allocations: 177.6 kB / 0.5157 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.379e-05/0.3051, allocations: 12.25 kB / 0.5157 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.3054, allocations: 85.48 kB / 0.5158 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.3054, allocations: 36.28 kB / 0.5158 GB, free: 26.39 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.0004761/0.3059, allocations: 395.3 kB / 0.5162 GB, free: 26.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.306, allocations: 140.9 kB / 0.5163 GB, free: 26.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.3075, allocations: 1.254 MB / 0.5175 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3076, allocations: 6.844 kB / 0.5175 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.3076, allocations: 0 / 0.5175 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.3076, allocations: 5.141 kB / 0.5175 GB, free: 26.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/0.3099, allocations: 2.379 MB / 0.5199 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3099, allocations: 0 / 0.5199 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.3104, allocations: 122.8 kB / 0.52 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.3104, allocations: 5.375 kB / 0.52 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.3105, allocations: 18.39 kB / 0.52 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.3105, allocations: 3 kB / 0.52 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3105, allocations: 5.812 kB / 0.52 GB, free: 25.88 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.3126, allocations: 1.939 MB / 0.5219 GB, free: 25.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.3128, allocations: 210.8 kB / 0.5221 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.3128, allocations: 12.78 kB / 0.5221 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.3131, allocations: 24.05 kB / 0.5221 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3132, allocations: 51.02 kB / 0.5222 GB, free: 25.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.3132, allocations: 23.23 kB / 0.5222 GB, free: 25.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009172/0.3142, allocations: 0.8675 MB / 0.5231 GB, free: 25.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3142, allocations: 1.25 kB / 0.5231 GB, free: 25.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005522/0.3147, allocations: 211.3 kB / 0.5233 GB, free: 25.34 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.0001363/0.3149, allocations: 116.1 kB / 0.5234 GB, free: 25.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.3163, allocations: 1.096 MB / 0.5244 GB, free: 25.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3163, allocations: 0 / 0.5244 GB, free: 25.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006345/0.3169, allocations: 0.5448 MB / 0.525 GB, free: 25.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.3173, allocations: 62.58 kB / 0.525 GB, free: 25.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.3206, allocations: 2.786 MB / 0.5277 GB, free: 24.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000731/0.3213, allocations: 1.294 MB / 0.529 GB, free: 23.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003093/0.3217, allocations: 127 kB / 0.5291 GB, free: 23.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.3218, allocations: 52.61 kB / 0.5292 GB, free: 23.45 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3218, allocations: 0 / 0.5292 GB, free: 23.45 MB / 398.1 MB Notification: Performance of Templates: time 0.01176/0.3336, allocations: 5.397 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)