Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 114.6 kB / 17.08 MB, free: 5.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 191.7 kB / 20.02 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 222.9 MB / 245.7 MB, free: 4.23 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3531/0.3531, allocations: 28.8 MB / 326.7 MB, free: 5.141 MB / 254.1 MB " [Timeout remaining time 180] 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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 68.67 kB / 453.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1239, allocations: 56.41 MB / 0.4982 GB, free: 6.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005336/0.1293, allocations: 3.685 MB / 0.5018 GB, free: 3.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1314, allocations: 0.7752 MB / 0.5026 GB, free: 2.398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.1318, allocations: 19.94 kB / 0.5026 GB, free: 2.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004644/0.1323, allocations: 174.3 kB / 0.5028 GB, free: 2.207 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000336/0.1327, allocations: 138.7 kB / 0.5029 GB, free: 2.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.1335, allocations: 375.5 kB / 0.5032 GB, free: 1.703 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009276/0.1344, allocations: 0.864 MB / 0.5041 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008731/0.1353, allocations: 0.6442 MB / 0.5047 GB, free: 156 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000356/0.1357, allocations: 350.4 kB / 0.5051 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004159/0.1361, allocations: 429.5 kB / 0.5055 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.1363, allocations: 88 kB / 0.5055 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.1365, allocations: 116 kB / 0.5057 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004112/0.1369, allocations: 434.5 kB / 0.5061 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005136/0.1374, allocations: 0.6242 MB / 0.5067 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.1389, allocations: 1.274 MB / 0.5079 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1389, allocations: 0 / 0.5079 GB, free: 12.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1389, allocations: 0 / 0.5079 GB, free: 12.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.1389, allocations: 4 kB / 0.5079 GB, free: 12.85 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002515/0.1415, allocations: 1.862 MB / 0.5097 GB, free: 10.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1415, allocations: 12.03 kB / 0.5098 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002475/0.1418, allocations: 207.6 kB / 0.51 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1428, allocations: 0.7759 MB / 0.5107 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.291e-05/0.1429, allocations: 82.47 kB / 0.5108 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.143, allocations: 104.4 kB / 0.5109 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.1448, allocations: 1.182 MB / 0.512 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.1448, allocations: 192 / 0.512 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.1449, allocations: 47.92 kB / 0.5121 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.1449, allocations: 31.94 kB / 0.5121 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.1465, allocations: 1.101 MB / 0.5132 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004695/0.1512, allocations: 3.683 MB / 0.5168 GB, free: 3.465 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.153, allocations: 1.358 MB / 0.5181 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006138/0.1536, allocations: 494.6 kB / 0.5186 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-05/0.1537, allocations: 28.86 kB / 0.5186 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000783/0.1545, allocations: 0.5471 MB / 0.5192 GB, free: 1.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 5.741e-06/0.1545, allocations: 3.984 kB / 0.5192 GB, free: 1.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.002176/0.1567, allocations: 1.575 MB / 0.5207 GB, free: 15.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.1567, allocations: 67.94 kB / 0.5208 GB, free: 15.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.1583, allocations: 1.293 MB / 0.522 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.1584, allocations: 37.7 kB / 0.5221 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007174/0.1591, allocations: 0.7806 MB / 0.5228 GB, free: 13.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002385/0.1594, allocations: 257.8 kB / 0.5231 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.1596, allocations: 126.6 kB / 0.5232 GB, free: 12.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1597, allocations: 333.9 kB / 0.5235 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.1603, allocations: 445.8 kB / 0.5239 GB, free: 12.08 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000688/0.161, allocations: 0.5523 MB / 0.5245 GB, free: 11.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.1624, allocations: 1.046 MB / 0.5255 GB, free: 10.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.1624, allocations: 8 kB / 0.5255 GB, free: 10.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001681/0.1641, allocations: 1.222 MB / 0.5267 GB, free: 9.156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.1642, allocations: 7.938 kB / 0.5267 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1642, allocations: 11.92 kB / 0.5267 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.1642, allocations: 8.344 kB / 0.5267 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.1647, allocations: 131.8 kB / 0.5268 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.1647, allocations: 11.98 kB / 0.5269 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.165, allocations: 55.56 kB / 0.5269 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.1651, allocations: 28 kB / 0.5269 GB, free: 8.906 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0006556/0.1657, allocations: 405.6 kB / 0.5273 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.1659, allocations: 147 kB / 0.5275 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.1676, allocations: 1.235 MB / 0.5287 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1677, allocations: 8 kB / 0.5287 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1677, allocations: 0 / 0.5287 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.1677, allocations: 3.984 kB / 0.5287 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003061/0.1708, allocations: 2.421 MB / 0.531 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1708, allocations: 0 / 0.531 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004867/0.1713, allocations: 115.8 kB / 0.5312 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/0.1713, allocations: 3.984 kB / 0.5312 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.1714, allocations: 20 kB / 0.5312 GB, free: 4.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.574e-06/0.1714, allocations: 4 kB / 0.5312 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1714, allocations: 3.938 kB / 0.5312 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.1738, allocations: 1.933 MB / 0.5331 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003428/0.1742, allocations: 259.9 kB / 0.5333 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.199e-05/0.1743, allocations: 15.94 kB / 0.5333 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.1745, allocations: 8 kB / 0.5333 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.706e-05/0.1746, allocations: 56.53 kB / 0.5334 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.1746, allocations: 19.98 kB / 0.5334 GB, free: 2.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001197/0.1758, allocations: 0.8969 MB / 0.5343 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1758, allocations: 0 / 0.5343 GB, free: 1.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006241/0.1765, allocations: 219.2 kB / 0.5345 GB, free: 1.043 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00022/0.1767, allocations: 115.3 kB / 0.5346 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.1781, allocations: 1.029 MB / 0.5356 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.1782, allocations: 0 / 0.5356 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006525/0.1788, allocations: 0.5268 MB / 0.5361 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006003/0.1794, allocations: 92.8 kB / 0.5362 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004266/0.1837, allocations: 2.928 MB / 0.5391 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.1848, allocations: 1.319 MB / 0.5404 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.185, allocations: 59.42 kB / 0.5404 GB, free: 10.89 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.185, allocations: 0 / 0.5404 GB, free: 10.89 MB / 414.1 MB Notification: Performance of Templates: time 0.01961/0.2046, allocations: 11.27 MB / 0.5514 GB, free: 15.6 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.097947238013148] Failed to read output from testmodel.py, exit status != 0: 0.21171693899668753 0.22567198300000002 0.084150025 Calling exit ...