Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00767/0.00767, allocations: 101 kB / 15.73 MB, free: 6.004 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.00161/0.00161, allocations: 187 kB / 16.67 MB, free: 5.922 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1881/0.1881, allocations: 28.78 MB / 319.3 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 63.91 kB / 444.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1389, allocations: 56.42 MB / 0.489 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004782/0.1437, allocations: 3.635 MB / 0.4926 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1456, allocations: 0.6701 MB / 0.4932 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009545/0.1466, allocations: 19.94 kB / 0.4932 GB, free: 5.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00071/0.1474, allocations: 162.3 kB / 0.4934 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006438/0.1481, allocations: 130.8 kB / 0.4935 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.1492, allocations: 355.5 kB / 0.4939 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1504, allocations: 0.8483 MB / 0.4947 GB, free: 4.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008532/0.1512, allocations: 0.6363 MB / 0.4953 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.1516, allocations: 334.4 kB / 0.4956 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.1519, allocations: 425.5 kB / 0.496 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1521, allocations: 88 kB / 0.4961 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.1523, allocations: 120 kB / 0.4962 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003399/0.1526, allocations: 422.5 kB / 0.4966 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004666/0.1531, allocations: 0.597 MB / 0.4972 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.1544, allocations: 1.231 MB / 0.4984 GB, free: 368 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1545, allocations: 0 / 0.4984 GB, free: 368 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1545, allocations: 4 kB / 0.4984 GB, free: 364 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.504e-05/0.1545, allocations: 0 / 0.4984 GB, free: 364 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002189/0.1567, allocations: 1.794 MB / 0.5002 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1567, allocations: 8.031 kB / 0.5002 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.157, allocations: 207.6 kB / 0.5004 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.1579, allocations: 0.7438 MB / 0.5011 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.158, allocations: 78.42 kB / 0.5012 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1581, allocations: 96.38 kB / 0.5013 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.1597, allocations: 1.138 MB / 0.5024 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.1598, allocations: 192 / 0.5024 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.355e-05/0.1599, allocations: 43.94 kB / 0.5024 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.1599, allocations: 24 kB / 0.5024 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.1612, allocations: 1.054 MB / 0.5035 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004685/0.1659, allocations: 3.599 MB / 0.507 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.1675, allocations: 1.264 MB / 0.5082 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004776/0.168, allocations: 466.3 kB / 0.5087 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.257e-05/0.1681, allocations: 24.77 kB / 0.5087 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.1681, allocations: 39.12 kB / 0.5087 GB, free: 5.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.615e-06/0.1681, allocations: 0 / 0.5087 GB, free: 5.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001798/0.1699, allocations: 1.459 MB / 0.5102 GB, free: 4.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.17, allocations: 59.97 kB / 0.5102 GB, free: 3.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.1714, allocations: 1.23 MB / 0.5114 GB, free: 2.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.796e-05/0.1715, allocations: 33.7 kB / 0.5114 GB, free: 2.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005768/0.1721, allocations: 0.7645 MB / 0.5122 GB, free: 1.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.1723, allocations: 233.9 kB / 0.5124 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.1725, allocations: 110.3 kB / 0.5125 GB, free: 1.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1726, allocations: 333.9 kB / 0.5128 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.1731, allocations: 417.1 kB / 0.5132 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.1736, allocations: 0.5004 MB / 0.5137 GB, free: 284 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2793/0.4529, allocations: 0.9519 MB / 0.5147 GB, free: 26.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.453, allocations: 1.531 kB / 0.5147 GB, free: 26.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001401/0.4544, allocations: 1.146 MB / 0.5158 GB, free: 26.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.4544, allocations: 6.438 kB / 0.5158 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4544, allocations: 4.781 kB / 0.5158 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.4545, allocations: 3.531 kB / 0.5158 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.4549, allocations: 126.1 kB / 0.5159 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.4549, allocations: 9.094 kB / 0.5159 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.4552, allocations: 56.64 kB / 0.516 GB, free: 26.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.4553, allocations: 21.78 kB / 0.516 GB, free: 26.61 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 (81): * Single equations (assignments): 81 * 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.000526/0.4558, allocations: 368.5 kB / 0.5163 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.4559, allocations: 141.9 kB / 0.5165 GB, free: 26.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4573, allocations: 1.142 MB / 0.5176 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.4574, allocations: 7.25 kB / 0.5176 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4574, allocations: 1.688 kB / 0.5176 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4574, allocations: 5.812 kB / 0.5176 GB, free: 26.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.4598, allocations: 2.278 MB / 0.5198 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4598, allocations: 1.062 kB / 0.5198 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.4602, allocations: 109.6 kB / 0.5199 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.4602, allocations: 2.625 kB / 0.5199 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.4603, allocations: 18.42 kB / 0.52 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.4603, allocations: 2.375 kB / 0.52 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.4603, allocations: 3.938 kB / 0.52 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.4622, allocations: 1.794 MB / 0.5217 GB, free: 25.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.4624, allocations: 208.1 kB / 0.5219 GB, free: 25.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.4625, allocations: 10.69 kB / 0.5219 GB, free: 25.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.4627, allocations: 13.75 kB / 0.5219 GB, free: 25.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.4628, allocations: 42.03 kB / 0.522 GB, free: 25.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.4629, allocations: 20.14 kB / 0.522 GB, free: 25.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001166/0.464, allocations: 0.8545 MB / 0.5228 GB, free: 25.6 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.464, allocations: 0 / 0.5228 GB, free: 25.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005938/0.4647, allocations: 204 kB / 0.523 GB, free: 25.57 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 (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.0001809/0.4648, allocations: 127.9 kB / 0.5231 GB, free: 25.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.466, allocations: 0.9399 MB / 0.5241 GB, free: 25.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4661, allocations: 0 / 0.5241 GB, free: 25.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.4666, allocations: 496.3 kB / 0.5245 GB, free: 25.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005905/0.4672, allocations: 90.44 kB / 0.5246 GB, free: 25.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.4707, allocations: 2.701 MB / 0.5273 GB, free: 24.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009403/0.4716, allocations: 1.286 MB / 0.5285 GB, free: 23.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.4719, allocations: 78.25 kB / 0.5286 GB, free: 23.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.472, allocations: 46.23 kB / 0.5286 GB, free: 23.71 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.472, allocations: 4.625 kB / 0.5286 GB, free: 23.71 MB / 398.1 MB Notification: Performance of Templates: time 0.01797/0.49, allocations: 5.192 MB / 0.5337 GB, free: 23.29 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)