Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 113.3 kB / 16.41 MB, free: 6.465 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.001652/0.001652, allocations: 189.2 kB / 17.34 MB, free: 5.715 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.501/1.501, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1946/0.1946, allocations: 28.79 MB / 320 MB, free: 1.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 63.89 kB / 445 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1089, allocations: 56.42 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005026/0.1139, allocations: 3.674 MB / 0.4933 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1153, allocations: 0.6857 MB / 0.4939 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000299/0.1156, allocations: 19.94 kB / 0.494 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004045/0.116, allocations: 174.3 kB / 0.4941 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.1164, allocations: 142.8 kB / 0.4943 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.1171, allocations: 359.5 kB / 0.4946 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008817/0.1179, allocations: 0.864 MB / 0.4955 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007144/0.1187, allocations: 0.4958 MB / 0.4959 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.1189, allocations: 334.4 kB / 0.4963 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.1193, allocations: 421.6 kB / 0.4967 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.1195, allocations: 88 kB / 0.4967 GB, free: 2.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.1197, allocations: 120 kB / 0.4969 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003962/0.12, allocations: 458.3 kB / 0.4973 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005012/0.1205, allocations: 0.6319 MB / 0.4979 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.1219, allocations: 1.297 MB / 0.4992 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1219, allocations: 0 / 0.4992 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1219, allocations: 0 / 0.4992 GB, free: 256 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.1219, allocations: 0 / 0.4992 GB, free: 256 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002358/0.1242, allocations: 1.88 MB / 0.501 GB, free: 14.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1243, allocations: 12.03 kB / 0.501 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.1245, allocations: 215.5 kB / 0.5012 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.1255, allocations: 0.7756 MB / 0.502 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.738e-05/0.1256, allocations: 82.47 kB / 0.5021 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.1257, allocations: 112.3 kB / 0.5022 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.1275, allocations: 1.278 MB / 0.5034 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1276, allocations: 4.188 kB / 0.5034 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.1276, allocations: 47.94 kB / 0.5035 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.588e-05/0.1277, allocations: 47.98 kB / 0.5035 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.1295, allocations: 1.23 MB / 0.5047 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0049/0.1344, allocations: 3.883 MB / 0.5085 GB, free: 6.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.1361, allocations: 1.338 MB / 0.5098 GB, free: 5.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006253/0.1368, allocations: 475.2 kB / 0.5103 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.352e-05/0.1369, allocations: 32.77 kB / 0.5103 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.1369, allocations: 47.11 kB / 0.5103 GB, free: 4.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.805e-06/0.1369, allocations: 0 / 0.5103 GB, free: 4.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002233/0.1391, allocations: 1.568 MB / 0.5119 GB, free: 2.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1392, allocations: 81.67 kB / 0.512 GB, free: 2.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.1408, allocations: 1.37 MB / 0.5133 GB, free: 1.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.1409, allocations: 37.7 kB / 0.5133 GB, free: 1.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007583/0.1416, allocations: 0.8619 MB / 0.5142 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002277/0.1419, allocations: 253.8 kB / 0.5144 GB, free: 260 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.1421, allocations: 158.6 kB / 0.5146 GB, free: 96 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.1873/0.3294, allocations: 331 kB / 0.5149 GB, free: 27.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/0.3303, allocations: 476.5 kB / 0.5153 GB, free: 27.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007004/0.331, allocations: 0.7157 MB / 0.516 GB, free: 26.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.3321, allocations: 1.235 MB / 0.5172 GB, free: 26.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3321, allocations: 5.781 kB / 0.5172 GB, free: 26.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001676/0.3338, allocations: 1.399 MB / 0.5186 GB, free: 26.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3338, allocations: 9.844 kB / 0.5186 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3338, allocations: 9.312 kB / 0.5186 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.3338, allocations: 12.06 kB / 0.5186 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/0.3344, allocations: 180.2 kB / 0.5188 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.3345, allocations: 20.08 kB / 0.5188 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.3348, allocations: 93.3 kB / 0.5189 GB, free: 26.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.3349, allocations: 41.47 kB / 0.519 GB, free: 26.63 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0004571/0.3353, allocations: 400.9 kB / 0.5193 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.3355, allocations: 153.7 kB / 0.5195 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/0.337, allocations: 1.244 MB / 0.5207 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3371, allocations: 11.53 kB / 0.5207 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3371, allocations: 11.84 kB / 0.5207 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.3371, allocations: 1.094 kB / 0.5207 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.3398, allocations: 2.396 MB / 0.5231 GB, free: 26.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3398, allocations: 0 / 0.5231 GB, free: 26.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000498/0.3403, allocations: 123 kB / 0.5232 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.3403, allocations: 11.02 kB / 0.5232 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.3404, allocations: 20.34 kB / 0.5232 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3404, allocations: 3.375 kB / 0.5232 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3404, allocations: 1.156 kB / 0.5232 GB, free: 26.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.3425, allocations: 1.996 MB / 0.5252 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3427, allocations: 217.2 kB / 0.5254 GB, free: 25.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.479e-05/0.3428, allocations: 15.69 kB / 0.5254 GB, free: 25.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/0.3431, allocations: 20.42 kB / 0.5254 GB, free: 25.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.3432, allocations: 43.7 kB / 0.5254 GB, free: 25.6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.3432, allocations: 24.41 kB / 0.5255 GB, free: 25.6 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00115/0.3444, allocations: 0.9323 MB / 0.5264 GB, free: 25.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3444, allocations: 1.156 kB / 0.5264 GB, free: 25.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00071/0.3451, allocations: 228.4 kB / 0.5266 GB, free: 25.29 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001519/0.3452, allocations: 124.4 kB / 0.5267 GB, free: 25.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.3467, allocations: 1.057 MB / 0.5278 GB, free: 24.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3467, allocations: 0 / 0.5278 GB, free: 24.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007071/0.3474, allocations: 0.5093 MB / 0.5283 GB, free: 24.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.3481, allocations: 96.56 kB / 0.5283 GB, free: 24.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.3516, allocations: 2.904 MB / 0.5312 GB, free: 23.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008007/0.3524, allocations: 1.329 MB / 0.5325 GB, free: 22.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003906/0.3528, allocations: 133.1 kB / 0.5326 GB, free: 22.65 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.353, allocations: 57.45 kB / 0.5327 GB, free: 22.64 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.353, allocations: 5.875 kB / 0.5327 GB, free: 22.64 MB / 398.1 MB Notification: Performance of Templates: time 0.01402/0.367, allocations: 5.831 MB / 0.5384 GB, free: 21.75 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)