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.001364/0.001364, allocations: 113.1 kB / 17.6 MB, free: 4.703 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.001293/0.001293, allocations: 186.7 kB / 20.78 MB, free: 1.547 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.5/1.5, allocations: 225.6 MB / 249.4 MB, free: 3.156 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.2404/0.2404, allocations: 29.23 MB / 333.7 MB, free: 256 kB / 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.001921/0.001921, allocations: 66.97 kB / 468 MB, free: 35.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1402, allocations: 59.57 MB / 0.5152 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005764/0.146, allocations: 3.698 MB / 0.5189 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1485, allocations: 0.7791 MB / 0.5196 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005671/0.1491, allocations: 19.94 kB / 0.5196 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004735/0.1495, allocations: 166.4 kB / 0.5198 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003476/0.1499, allocations: 146.7 kB / 0.5199 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008732/0.1508, allocations: 379.4 kB / 0.5203 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009234/0.1517, allocations: 0.864 MB / 0.5211 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007622/0.1524, allocations: 0.5075 MB / 0.5216 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003278/0.1528, allocations: 338.4 kB / 0.522 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004305/0.1532, allocations: 453.4 kB / 0.5224 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.1533, allocations: 88 kB / 0.5225 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.1535, allocations: 112 kB / 0.5226 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004172/0.154, allocations: 454.3 kB / 0.523 GB, free: 5.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.1545, allocations: 0.6203 MB / 0.5236 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.156, allocations: 1.27 MB / 0.5249 GB, free: 3.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.156, allocations: 0 / 0.5249 GB, free: 3.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.156, allocations: 0 / 0.5249 GB, free: 3.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.156, allocations: 0 / 0.5249 GB, free: 3.246 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.002585/0.1586, allocations: 1.864 MB / 0.5267 GB, free: 1.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1586, allocations: 8.031 kB / 0.5267 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.1589, allocations: 215.6 kB / 0.5269 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.16, allocations: 0.7837 MB / 0.5277 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.151e-05/0.1601, allocations: 78.47 kB / 0.5277 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1602, allocations: 108.4 kB / 0.5278 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.162, allocations: 1.174 MB / 0.529 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.162, allocations: 4.125 kB / 0.529 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.445e-05/0.1621, allocations: 51.94 kB / 0.529 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.644e-05/0.1621, allocations: 24 kB / 0.5291 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0017/0.1638, allocations: 1.109 MB / 0.5301 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005405/0.1692, allocations: 3.679 MB / 0.5337 GB, free: 9.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.171, allocations: 1.334 MB / 0.535 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.1717, allocations: 474.6 kB / 0.5355 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.737e-05/0.1718, allocations: 28.86 kB / 0.5355 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000815/0.1726, allocations: 0.5471 MB / 0.5361 GB, free: 7.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.827e-06/0.1726, allocations: 0 / 0.5361 GB, free: 7.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002208/0.1748, allocations: 1.578 MB / 0.5376 GB, free: 5.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.1749, allocations: 60.06 kB / 0.5377 GB, free: 5.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.1765, allocations: 1.293 MB / 0.5389 GB, free: 4.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.982e-05/0.1766, allocations: 45.69 kB / 0.539 GB, free: 4.453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007324/0.1773, allocations: 0.7728 MB / 0.5397 GB, free: 3.672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002481/0.1776, allocations: 253.8 kB / 0.54 GB, free: 3.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.1778, allocations: 126.6 kB / 0.5401 GB, free: 3.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.1779, allocations: 337.9 kB / 0.5404 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.1785, allocations: 441.8 kB / 0.5408 GB, free: 2.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006745/0.1792, allocations: 0.5523 MB / 0.5414 GB, free: 1.926 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.1806, allocations: 1.046 MB / 0.5424 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1806, allocations: 0 / 0.5424 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001666/0.1823, allocations: 1.234 MB / 0.5436 GB, free: 15.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.1823, allocations: 8 kB / 0.5436 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1823, allocations: 4 kB / 0.5436 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.1823, allocations: 4 kB / 0.5436 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/0.1828, allocations: 135.8 kB / 0.5437 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.1828, allocations: 8.344 kB / 0.5437 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002717/0.1831, allocations: 59.56 kB / 0.5438 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/0.1831, allocations: 27.94 kB / 0.5438 GB, free: 15.35 MB / 414.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.0006302/0.1838, allocations: 397.8 kB / 0.5442 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.1839, allocations: 151 kB / 0.5443 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00175/0.1857, allocations: 1.231 MB / 0.5455 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.1857, allocations: 12 kB / 0.5456 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1857, allocations: 3.938 kB / 0.5456 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1857, allocations: 3.984 kB / 0.5456 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.1887, allocations: 2.417 MB / 0.5479 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1887, allocations: 0 / 0.5479 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.1892, allocations: 123.8 kB / 0.548 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1892, allocations: 0 / 0.548 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.1892, allocations: 16 kB / 0.5481 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1892, allocations: 0 / 0.5481 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.1892, allocations: 7.938 kB / 0.5481 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.1916, allocations: 1.945 MB / 0.55 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.1919, allocations: 251.9 kB / 0.5502 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.366e-05/0.192, allocations: 16 kB / 0.5502 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.1922, allocations: 15.98 kB / 0.5502 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.1923, allocations: 40.55 kB / 0.5503 GB, free: 8.625 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.942e-05/0.1923, allocations: 23.98 kB / 0.5503 GB, free: 8.602 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.1935, allocations: 0.9047 MB / 0.5512 GB, free: 7.699 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1935, allocations: 3.938 kB / 0.5512 GB, free: 7.695 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006379/0.1942, allocations: 215.2 kB / 0.5514 GB, free: 7.484 MB / 414.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.0002336/0.1944, allocations: 127 kB / 0.5515 GB, free: 7.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.1959, allocations: 0.9861 MB / 0.5525 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.1959, allocations: 4.062 kB / 0.5525 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006639/0.1966, allocations: 0.5073 MB / 0.553 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.1972, allocations: 99.52 kB / 0.5531 GB, free: 5.762 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.2021, allocations: 2.844 MB / 0.5558 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.2034, allocations: 1.315 MB / 0.5571 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.2037, allocations: 72.8 kB / 0.5572 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.2039, allocations: 55.42 kB / 0.5573 GB, free: 1.406 MB / 414.1 MB Notification: Performance of SimCode: time 1.563e-06/0.2039, allocations: 0 / 0.5573 GB, free: 1.406 MB / 414.1 MB Notification: Performance of Templates: time 0.01569/0.2196, allocations: 5.691 MB / 0.5628 GB, free: 11.71 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: 5.192100801505148]