Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005836/0.005836, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001232/0.001232, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.404/1.404, 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.1964/0.1964, allocations: 28.79 MB / 319.3 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002223/0.002223, allocations: 59.91 kB / 444.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1607, allocations: 56.41 MB / 0.489 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005/0.1657, allocations: 3.646 MB / 0.4926 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.1678, allocations: 0.6857 MB / 0.4932 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008824/0.1687, allocations: 19.94 kB / 0.4933 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006908/0.1694, allocations: 170.3 kB / 0.4934 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008179/0.1703, allocations: 142.8 kB / 0.4936 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1714, allocations: 355.5 kB / 0.4939 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.1728, allocations: 0.8561 MB / 0.4947 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.174, allocations: 0.6286 MB / 0.4953 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.1744, allocations: 338.4 kB / 0.4957 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004508/0.1749, allocations: 425.6 kB / 0.4961 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002003/0.1751, allocations: 88 kB / 0.4962 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002695/0.1754, allocations: 116 kB / 0.4963 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003865/0.1758, allocations: 426.5 kB / 0.4967 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00061/0.1764, allocations: 0.6164 MB / 0.4973 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.178, allocations: 1.274 MB / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1781, allocations: 0 / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1781, allocations: 0 / 0.4985 GB, free: 252 kB / 382.1 MB Notification: Performance of Transformations before backend: time 5.727e-05/0.1781, 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.00228/0.1804, allocations: 1.837 MB / 0.5003 GB, free: 14.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1805, allocations: 8.031 kB / 0.5003 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.1807, allocations: 207.6 kB / 0.5005 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.1818, allocations: 0.7796 MB / 0.5013 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.1818, allocations: 78.45 kB / 0.5014 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001137/0.182, allocations: 104.4 kB / 0.5015 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.1836, allocations: 1.158 MB / 0.5026 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.1837, allocations: 192 / 0.5026 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.1837, allocations: 55.92 kB / 0.5026 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.1838, allocations: 24 kB / 0.5027 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1852, allocations: 1.097 MB / 0.5037 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00456/0.1898, allocations: 3.651 MB / 0.5073 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.1915, allocations: 1.342 MB / 0.5086 GB, free: 5.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005605/0.1921, allocations: 490.3 kB / 0.5091 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.129e-05/0.1922, allocations: 32.75 kB / 0.5091 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.1922, allocations: 39.12 kB / 0.5091 GB, free: 5.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.174e-06/0.1922, allocations: 0 / 0.5091 GB, free: 5.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001843/0.1941, allocations: 1.533 MB / 0.5106 GB, free: 3.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.1942, allocations: 59.97 kB / 0.5107 GB, free: 3.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.1958, allocations: 1.288 MB / 0.512 GB, free: 2.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.652e-05/0.1959, allocations: 45.7 kB / 0.512 GB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006962/0.1966, allocations: 0.7765 MB / 0.5128 GB, free: 1.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002931/0.1969, allocations: 241.9 kB / 0.513 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.197, allocations: 118.6 kB / 0.5131 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1972, allocations: 337.9 kB / 0.5134 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005576/0.1978, allocations: 433.8 kB / 0.5138 GB, free: 192 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2564/0.4541, allocations: 0.5349 MB / 0.5144 GB, free: 27.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.4558, allocations: 1.001 MB / 0.5153 GB, free: 27.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.4559, allocations: 0.6875 kB / 0.5153 GB, free: 27.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001617/0.4575, allocations: 1.201 MB / 0.5165 GB, free: 27.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.4575, allocations: 5.594 kB / 0.5165 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4575, allocations: 2.781 kB / 0.5165 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.931e-05/0.4576, allocations: 6.188 kB / 0.5165 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004566/0.458, allocations: 133.7 kB / 0.5167 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.4581, allocations: 5.844 kB / 0.5167 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.4583, allocations: 54.36 kB / 0.5167 GB, free: 27.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.4584, allocations: 25.62 kB / 0.5167 GB, free: 27.32 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 (83): * Single equations (assignments): 83 * 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.0005183/0.4589, allocations: 382 kB / 0.5171 GB, free: 27.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002103/0.4591, allocations: 147.1 kB / 0.5172 GB, free: 27.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.4609, allocations: 1.203 MB / 0.5184 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4609, allocations: 6.469 kB / 0.5184 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.4609, allocations: 3.234 kB / 0.5184 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.4609, allocations: 2.344 kB / 0.5184 GB, free: 27.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.464, allocations: 2.367 MB / 0.5207 GB, free: 26.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.464, allocations: 1.25 kB / 0.5207 GB, free: 26.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/0.4645, allocations: 116.4 kB / 0.5209 GB, free: 26.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.4645, allocations: 3.031 kB / 0.5209 GB, free: 26.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.4646, allocations: 18.88 kB / 0.5209 GB, free: 26.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.515e-06/0.4646, allocations: 6.859 kB / 0.5209 GB, free: 26.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4646, allocations: 0 / 0.5209 GB, free: 26.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.4669, allocations: 1.893 MB / 0.5227 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.4671, allocations: 211.5 kB / 0.5229 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.874e-05/0.4672, allocations: 11.83 kB / 0.5229 GB, free: 26.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.4674, allocations: 15.94 kB / 0.523 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.783e-05/0.4675, allocations: 39.59 kB / 0.523 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.4675, allocations: 23.19 kB / 0.523 GB, free: 26.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.4687, allocations: 0.8894 MB / 0.5239 GB, free: 26.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4687, allocations: 0 / 0.5239 GB, free: 26.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006003/0.4693, allocations: 214.5 kB / 0.5241 GB, free: 26.27 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 (68): * Single equations (assignments): 68 * 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.0001753/0.4695, allocations: 121.2 kB / 0.5242 GB, free: 26.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.471, allocations: 0.996 MB / 0.5252 GB, free: 26.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.471, allocations: 1.656 kB / 0.5252 GB, free: 26.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007248/0.4718, allocations: 0.51 MB / 0.5257 GB, free: 25.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.4724, allocations: 86.69 kB / 0.5258 GB, free: 25.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003944/0.4763, allocations: 2.816 MB / 0.5285 GB, free: 24.62 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000867/0.4772, allocations: 1.309 MB / 0.5298 GB, free: 23.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.4774, allocations: 75.42 kB / 0.5299 GB, free: 23.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4776, allocations: 48.77 kB / 0.5299 GB, free: 23.84 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4776, allocations: 0 / 0.5299 GB, free: 23.84 MB / 398.1 MB Notification: Performance of Templates: time 0.01421/0.4918, allocations: 5.315 MB / 0.5351 GB, free: 23.39 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)