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.008268/0.008268, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.002363/0.002363, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3061/0.3061, allocations: 28.81 MB / 319.3 MB, free: 5.652 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 64.52 kB / 444.4 MB, free: 36.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1222, allocations: 56.43 MB / 0.489 GB, free: 8.617 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004922/0.1272, allocations: 3.68 MB / 0.4926 GB, free: 5.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.1296, allocations: 0.6884 MB / 0.4933 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.1308, allocations: 18.47 kB / 0.4933 GB, free: 5.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007247/0.1315, allocations: 172.5 kB / 0.4935 GB, free: 4.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009687/0.1325, allocations: 141.9 kB / 0.4936 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.1337, allocations: 371 kB / 0.494 GB, free: 4.539 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.1353, allocations: 0.8482 MB / 0.4948 GB, free: 3.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.1363, allocations: 0.6364 MB / 0.4954 GB, free: 3.242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004381/0.1368, allocations: 350.3 kB / 0.4958 GB, free: 2.898 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004369/0.1372, allocations: 421.6 kB / 0.4962 GB, free: 2.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002029/0.1375, allocations: 88 kB / 0.4963 GB, free: 2.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002719/0.1377, allocations: 116 kB / 0.4964 GB, free: 2.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003361/0.1381, allocations: 450.4 kB / 0.4968 GB, free: 1.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004466/0.1385, allocations: 0.6319 MB / 0.4974 GB, free: 1.207 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.1398, allocations: 1.287 MB / 0.4987 GB, free: 15.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1398, allocations: 7.938 kB / 0.4987 GB, free: 15.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1398, allocations: 0 / 0.4987 GB, free: 15.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.912e-05/0.1399, allocations: 0 / 0.4987 GB, free: 15.9 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002881/0.1427, allocations: 1.819 MB / 0.5005 GB, free: 14.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1428, allocations: 12.03 kB / 0.5005 GB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.1431, allocations: 206.3 kB / 0.5007 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.144, allocations: 0.7625 MB / 0.5014 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.113e-05/0.1441, allocations: 78.48 kB / 0.5015 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.1442, allocations: 108.4 kB / 0.5016 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.1459, allocations: 1.274 MB / 0.5028 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1459, allocations: 4.188 kB / 0.5028 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/0.146, allocations: 47.94 kB / 0.5029 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.577e-05/0.146, allocations: 47.98 kB / 0.5029 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1475, allocations: 1.226 MB / 0.5041 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004287/0.1518, allocations: 3.885 MB / 0.5079 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1534, allocations: 1.362 MB / 0.5092 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006185/0.154, allocations: 495.2 kB / 0.5097 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.1541, allocations: 36.77 kB / 0.5098 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.1542, allocations: 39.12 kB / 0.5098 GB, free: 4.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.886e-06/0.1542, allocations: 0 / 0.5098 GB, free: 4.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.002072/0.1563, allocations: 1.555 MB / 0.5113 GB, free: 2.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.177e-05/0.1564, allocations: 89.8 kB / 0.5114 GB, free: 2.512 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001459/0.1578, allocations: 1.37 MB / 0.5127 GB, free: 1.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1579, allocations: 33.7 kB / 0.5128 GB, free: 1.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005878/0.1585, allocations: 0.8448 MB / 0.5136 GB, free: 244 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.1587, allocations: 248.5 kB / 0.5138 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.1589, allocations: 158.5 kB / 0.514 GB, free: 15.83 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.159, allocations: 338 kB / 0.5143 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005512/0.1595, allocations: 481.8 kB / 0.5148 GB, free: 15.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007194/0.1603, allocations: 0.7121 MB / 0.5155 GB, free: 14.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.1616, allocations: 1.241 MB / 0.5167 GB, free: 12.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1616, allocations: 4 kB / 0.5167 GB, free: 12.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001598/0.1632, allocations: 1.382 MB / 0.518 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1632, allocations: 8 kB / 0.518 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1633, allocations: 8 kB / 0.518 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.1633, allocations: 19.94 kB / 0.5181 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.1639, allocations: 183.7 kB / 0.5182 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.1639, allocations: 15.94 kB / 0.5182 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.1642, allocations: 95.52 kB / 0.5183 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/0.1643, allocations: 40 kB / 0.5184 GB, free: 11.09 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.0004529/0.1647, allocations: 409.1 kB / 0.5188 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.1649, allocations: 150 kB / 0.5189 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.1664, allocations: 1.245 MB / 0.5201 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.1665, allocations: 4 kB / 0.5201 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1665, allocations: 4 kB / 0.5201 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.1665, allocations: 11.95 kB / 0.5201 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002642/0.1691, allocations: 2.396 MB / 0.5225 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1692, allocations: 0 / 0.5225 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.1696, allocations: 119.8 kB / 0.5226 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.1696, allocations: 4 kB / 0.5226 GB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.1697, allocations: 19.92 kB / 0.5226 GB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.1697, allocations: 4 kB / 0.5226 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1697, allocations: 4 kB / 0.5226 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.1717, allocations: 1.984 MB / 0.5246 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002049/0.1719, allocations: 210.9 kB / 0.5248 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.67e-05/0.172, allocations: 20.12 kB / 0.5248 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.1723, allocations: 20 kB / 0.5248 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.909e-05/0.1724, allocations: 44.5 kB / 0.5248 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.1724, allocations: 27.92 kB / 0.5249 GB, free: 4.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001039/0.1734, allocations: 0.9336 MB / 0.5258 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1734, allocations: 0 / 0.5258 GB, free: 3.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006481/0.1741, allocations: 223 kB / 0.526 GB, free: 3.168 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.0001911/0.1743, allocations: 123.1 kB / 0.5261 GB, free: 3.035 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.1756, allocations: 1.087 MB / 0.5272 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1757, allocations: 0.5625 kB / 0.5272 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005963/0.1763, allocations: 0.5224 MB / 0.5277 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006561/0.1769, allocations: 93.5 kB / 0.5278 GB, free: 1.328 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1805, allocations: 2.864 MB / 0.5306 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009354/0.1815, allocations: 1.331 MB / 0.5319 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003256/0.1818, allocations: 132.9 kB / 0.532 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.1819, allocations: 59.42 kB / 0.5321 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1819, allocations: 4 kB / 0.5321 GB, free: 12.87 MB / 414.1 MB Notification: Performance of Templates: time 0.01276/0.1947, allocations: 5.756 MB / 0.5377 GB, free: 7.117 MB / 414.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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)