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.001087/0.001087, allocations: 104.5 kB / 16.4 MB, free: 6.508 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.0009766/0.0009767, allocations: 187 kB / 17.34 MB, free: 5.742 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.226/1.226, allocations: 222.9 MB / 241 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.1572/0.1572, allocations: 28.79 MB / 320 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.89 kB / 445 MB, free: 2.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09552, allocations: 56.42 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003943/0.0995, allocations: 3.257 MB / 0.4929 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.1008, allocations: 0.526 MB / 0.4934 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.1012, allocations: 12 kB / 0.4934 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003023/0.1015, allocations: 146.6 kB / 0.4935 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.1019, allocations: 122.9 kB / 0.4936 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005521/0.1024, allocations: 291.6 kB / 0.4939 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.103, allocations: 0.7239 MB / 0.4946 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005477/0.1036, allocations: 469.2 kB / 0.4951 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.1038, allocations: 310.5 kB / 0.4954 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.1041, allocations: 385.8 kB / 0.4957 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1042, allocations: 76 kB / 0.4958 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.1044, allocations: 104 kB / 0.4959 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003049/0.1047, allocations: 430.5 kB / 0.4963 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003501/0.105, allocations: 0.5775 MB / 0.4969 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008904/0.1059, allocations: 1.131 MB / 0.498 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1059, allocations: 0 / 0.498 GB, free: 1.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1059, allocations: 0 / 0.498 GB, free: 1.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.106, allocations: 0 / 0.498 GB, free: 1.496 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.001891/0.1079, allocations: 1.721 MB / 0.4997 GB, free: 15.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.1079, allocations: 8.031 kB / 0.4997 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.1081, allocations: 186.6 kB / 0.4999 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004625/0.1086, allocations: 0.5702 MB / 0.5004 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.763e-05/0.1086, allocations: 74.38 kB / 0.5005 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.1087, allocations: 96.38 kB / 0.5006 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1102, allocations: 1.082 MB / 0.5016 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.1102, allocations: 192 / 0.5016 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.1103, allocations: 47.92 kB / 0.5017 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.689e-05/0.1104, allocations: 62.11 kB / 0.5017 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.1119, allocations: 1.211 MB / 0.5029 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003449/0.1153, allocations: 2.839 MB / 0.5057 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.1165, allocations: 0.9867 MB / 0.5067 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006026/0.1171, allocations: 0.5022 MB / 0.5071 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.507e-05/0.1172, allocations: 32.67 kB / 0.5072 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.1173, allocations: 43.06 kB / 0.5072 GB, free: 7.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.934e-06/0.1173, allocations: 0 / 0.5072 GB, free: 7.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00199/0.1193, allocations: 1.583 MB / 0.5088 GB, free: 6.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.1193, allocations: 59.97 kB / 0.5088 GB, free: 6.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.1205, allocations: 1.262 MB / 0.5101 GB, free: 4.871 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.1206, allocations: 33.7 kB / 0.5101 GB, free: 4.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004985/0.1211, allocations: 0.7742 MB / 0.5108 GB, free: 4.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.1212, allocations: 236.6 kB / 0.5111 GB, free: 3.812 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.1214, allocations: 134.6 kB / 0.5112 GB, free: 3.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1215, allocations: 334 kB / 0.5115 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006099/0.1221, allocations: 477.7 kB / 0.512 GB, free: 2.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006974/0.1228, allocations: 0.6559 MB / 0.5126 GB, free: 2.145 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1909/0.3138, allocations: 2.113 MB / 0.5147 GB, free: 26.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.3138, allocations: 1.938 kB / 0.5147 GB, free: 26.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001781/0.3156, allocations: 1.336 MB / 0.516 GB, free: 26.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.3156, allocations: 12.09 kB / 0.516 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3157, allocations: 6.312 kB / 0.516 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3157, allocations: 14.94 kB / 0.516 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.3162, allocations: 173.2 kB / 0.5162 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.3162, allocations: 14.41 kB / 0.5162 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.3165, allocations: 87.27 kB / 0.5163 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.3166, allocations: 32.83 kB / 0.5163 GB, free: 26.55 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.0005197/0.3171, allocations: 405.3 kB / 0.5167 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3172, allocations: 133.2 kB / 0.5168 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.3187, allocations: 1.253 MB / 0.518 GB, free: 26.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3187, allocations: 6.906 kB / 0.5181 GB, free: 26.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3187, allocations: 0 / 0.5181 GB, free: 26.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.3187, allocations: 3.281 kB / 0.5181 GB, free: 26.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/0.3211, allocations: 2.37 MB / 0.5204 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3211, allocations: 1.156 kB / 0.5204 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.3215, allocations: 125.7 kB / 0.5205 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3216, allocations: 6.516 kB / 0.5205 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.3216, allocations: 19.23 kB / 0.5205 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3216, allocations: 2.188 kB / 0.5205 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3216, allocations: 5.781 kB / 0.5205 GB, free: 26.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.3237, allocations: 1.93 MB / 0.5224 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.3239, allocations: 202.8 kB / 0.5226 GB, free: 25.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.846e-05/0.3239, allocations: 11.45 kB / 0.5226 GB, free: 25.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.3242, allocations: 26.66 kB / 0.5226 GB, free: 25.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.3243, allocations: 52.62 kB / 0.5227 GB, free: 25.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.3243, allocations: 23.19 kB / 0.5227 GB, free: 25.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008944/0.3252, allocations: 0.8674 MB / 0.5236 GB, free: 25.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3252, allocations: 0 / 0.5236 GB, free: 25.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005355/0.3258, allocations: 212.9 kB / 0.5238 GB, free: 25.5 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.0001389/0.3259, allocations: 120.7 kB / 0.5239 GB, free: 25.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.3273, allocations: 1.092 MB / 0.5249 GB, free: 25.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3273, allocations: 1.531 kB / 0.5249 GB, free: 25.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006209/0.3279, allocations: 0.5464 MB / 0.5255 GB, free: 25.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.3283, allocations: 62.66 kB / 0.5255 GB, free: 25.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.3317, allocations: 2.824 MB / 0.5283 GB, free: 24.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007741/0.3325, allocations: 1.295 MB / 0.5296 GB, free: 23.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.3327, allocations: 68.5 kB / 0.5296 GB, free: 23.67 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3327, allocations: 0 / 0.5296 GB, free: 23.67 MB / 398.1 MB Notification: Performance of Templates: time 0.01545/0.3481, allocations: 10.84 MB / 0.5402 GB, free: 20.2 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)