Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005958/0.005958, allocations: 99.86 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.0012/0.0012, allocations: 192.7 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2044/0.2044, allocations: 28.79 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 55.91 kB / 444.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1139, allocations: 56.41 MB / 0.489 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004541/0.1185, allocations: 3.646 MB / 0.4926 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1199, allocations: 0.6779 MB / 0.4932 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.1202, allocations: 27.88 kB / 0.4933 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004142/0.1207, allocations: 170.3 kB / 0.4934 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.121, allocations: 134.8 kB / 0.4936 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.1216, allocations: 355.6 kB / 0.4939 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007852/0.1224, allocations: 0.8521 MB / 0.4947 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007654/0.1232, allocations: 0.6403 MB / 0.4953 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.1235, allocations: 334.4 kB / 0.4957 GB, free: 3.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1238, allocations: 421.6 kB / 0.4961 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1239, allocations: 84 kB / 0.4961 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.1241, allocations: 116 kB / 0.4963 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003892/0.1245, allocations: 430.5 kB / 0.4967 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003856/0.1249, allocations: 0.6203 MB / 0.4973 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1262, allocations: 1.266 MB / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1262, allocations: 0 / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1262, allocations: 0 / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.1263, allocations: 0 / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002868/0.1291, allocations: 1.837 MB / 0.5003 GB, free: 14.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1292, allocations: 16.02 kB / 0.5003 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1294, allocations: 203.6 kB / 0.5005 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008454/0.1302, allocations: 0.772 MB / 0.5013 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.742e-05/0.1303, allocations: 78.42 kB / 0.5013 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.1304, allocations: 104.4 kB / 0.5014 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.132, allocations: 1.158 MB / 0.5026 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1321, allocations: 192 / 0.5026 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.165e-05/0.1321, allocations: 43.94 kB / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.101e-05/0.1322, allocations: 28 kB / 0.5026 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.1336, allocations: 1.093 MB / 0.5037 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004306/0.1379, allocations: 3.651 MB / 0.5073 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1398, allocations: 1.334 MB / 0.5086 GB, free: 5.637 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006055/0.1404, allocations: 478.3 kB / 0.509 GB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.869e-05/0.1405, allocations: 24.77 kB / 0.5091 GB, free: 5.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.319e-05/0.1405, allocations: 47.12 kB / 0.5091 GB, free: 5.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.184e-06/0.1406, allocations: 0 / 0.5091 GB, free: 5.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001883/0.1424, allocations: 1.521 MB / 0.5106 GB, free: 3.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.1425, allocations: 59.97 kB / 0.5106 GB, free: 3.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.1438, allocations: 1.292 MB / 0.5119 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.1439, allocations: 37.7 kB / 0.5119 GB, free: 2.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005484/0.1444, allocations: 0.7766 MB / 0.5127 GB, free: 1.363 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.1446, allocations: 245.9 kB / 0.5129 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.1448, allocations: 114.3 kB / 0.513 GB, free: 1.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1449, allocations: 333.9 kB / 0.5134 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/0.1454, allocations: 433.1 kB / 0.5138 GB, free: 256 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2928/0.4382, allocations: 0.5242 MB / 0.5143 GB, free: 26.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.44, allocations: 1.002 MB / 0.5153 GB, free: 26.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.44, allocations: 0.5312 kB / 0.5153 GB, free: 26.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001869/0.4419, allocations: 1.191 MB / 0.5164 GB, free: 26.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.4419, allocations: 6.969 kB / 0.5164 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.4419, allocations: 1.375 kB / 0.5164 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.442, allocations: 7.531 kB / 0.5164 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004847/0.4425, allocations: 125.9 kB / 0.5166 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.4425, allocations: 9.219 kB / 0.5166 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.4429, allocations: 59.56 kB / 0.5166 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.4429, allocations: 27.19 kB / 0.5167 GB, free: 26.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (82): * Single equations (assignments): 82 * 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.000654/0.4436, allocations: 376.7 kB / 0.517 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003235/0.4439, allocations: 149.5 kB / 0.5172 GB, free: 26.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.4461, allocations: 1.191 MB / 0.5183 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.4461, allocations: 7.344 kB / 0.5183 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4461, allocations: 2.188 kB / 0.5183 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.4462, allocations: 4.453 kB / 0.5183 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004006/0.4502, allocations: 2.359 MB / 0.5206 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.4502, allocations: 0 / 0.5206 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004773/0.4507, allocations: 112 kB / 0.5207 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.221e-05/0.4507, allocations: 3.922 kB / 0.5208 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.742e-05/0.4508, allocations: 17.73 kB / 0.5208 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.726e-06/0.4508, allocations: 6.125 kB / 0.5208 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4508, allocations: 1.094 kB / 0.5208 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.4533, allocations: 1.882 MB / 0.5226 GB, free: 25.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.4536, allocations: 209 kB / 0.5228 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.4537, allocations: 17.23 kB / 0.5228 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.454, allocations: 12.47 kB / 0.5228 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.4541, allocations: 41.98 kB / 0.5229 GB, free: 25.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/0.4542, allocations: 17.75 kB / 0.5229 GB, free: 25.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.4555, allocations: 0.8993 MB / 0.5238 GB, free: 25.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.4555, allocations: 0 / 0.5238 GB, free: 25.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007591/0.4563, allocations: 208 kB / 0.524 GB, free: 25.62 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.0001927/0.4565, allocations: 121.2 kB / 0.5241 GB, free: 25.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.4579, allocations: 0.9871 MB / 0.5251 GB, free: 25.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4579, allocations: 1.125 kB / 0.5251 GB, free: 25.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/0.4585, allocations: 0.5122 MB / 0.5256 GB, free: 25.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006207/0.4592, allocations: 96.86 kB / 0.5256 GB, free: 25.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/0.4632, allocations: 2.797 MB / 0.5284 GB, free: 24.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009708/0.4642, allocations: 1.308 MB / 0.5297 GB, free: 23.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00023/0.4644, allocations: 78.47 kB / 0.5297 GB, free: 23.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.4646, allocations: 49.72 kB / 0.5298 GB, free: 23.56 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4646, allocations: 0 / 0.5298 GB, free: 23.56 MB / 398.1 MB Notification: Performance of Templates: time 0.01389/0.4785, allocations: 5.295 MB / 0.535 GB, free: 23.11 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)