Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.00125/0.00125, allocations: 192 kB / 17.31 MB, free: 5.18 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1848/0.1848, allocations: 28.77 MB / 319.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 60.17 kB / 388 MB, free: 40.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 56.44 MB / 444.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.005071/0.1189, allocations: 3.243 MB / 447.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.1208, allocations: 0.5415 MB / 448.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005527/0.1214, allocations: 8 kB / 448.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003602/0.1218, allocations: 146.7 kB / 448.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.1222, allocations: 126.9 kB / 448.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006545/0.1228, allocations: 283.6 kB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006258/0.1235, allocations: 0.7161 MB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006292/0.1241, allocations: 481.2 kB / 450 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.1244, allocations: 306.6 kB / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003177/0.1247, allocations: 389.8 kB / 450.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1248, allocations: 72 kB / 450.7 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.125, allocations: 108 kB / 450.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003517/0.1253, allocations: 434.5 kB / 451.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.1257, allocations: 0.5737 MB / 451.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.1268, allocations: 1.131 MB / 453 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1268, allocations: 0 / 453 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1268, allocations: 4 kB / 453 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.1268, allocations: 0 / 453 MB, free: 10.49 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.00214/0.129, allocations: 1.721 MB / 454.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.129, allocations: 8.031 kB / 454.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.1292, allocations: 194.4 kB / 454.9 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005459/0.1298, allocations: 0.5703 MB / 455.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.948e-05/0.1299, allocations: 74.38 kB / 455.5 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.13, allocations: 92.38 kB / 455.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1315, allocations: 1.075 MB / 456.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.1316, allocations: 8.188 kB / 456.7 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.1316, allocations: 43.94 kB / 456.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.741e-05/0.1317, allocations: 50.12 kB / 456.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.1334, allocations: 1.219 MB / 458 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/0.1372, allocations: 2.835 MB / 460.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.1385, allocations: 0.9951 MB / 461.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006322/0.1391, allocations: 0.4983 MB / 462.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.943e-05/0.1392, allocations: 32.55 kB / 462.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.1393, allocations: 47.11 kB / 462.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.304e-06/0.1393, allocations: 0 / 462.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.002092/0.1414, allocations: 1.59 MB / 464 MB, free: 15.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.1415, allocations: 55.97 kB / 464.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.1428, allocations: 1.266 MB / 465.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.1428, allocations: 41.7 kB / 465.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005395/0.1434, allocations: 0.7704 MB / 466.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.1435, allocations: 228.7 kB / 466.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.1437, allocations: 134.6 kB / 466.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1439, allocations: 330 kB / 466.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006148/0.1445, allocations: 473.7 kB / 467.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007665/0.1453, allocations: 0.6637 MB / 467.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/0.1491, allocations: 2.116 MB / 470.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1491, allocations: 0 / 470.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002028/0.1511, allocations: 1.335 MB / 471.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.1512, allocations: 11.94 kB / 471.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.1512, allocations: 4 kB / 471.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.205e-05/0.1512, allocations: 12 kB / 471.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.1518, allocations: 179.7 kB / 471.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/0.1518, allocations: 11.94 kB / 471.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003317/0.1522, allocations: 87.19 kB / 471.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.1522, allocations: 44.16 kB / 471.7 MB, free: 7.242 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0005893/0.1528, allocations: 395.2 kB / 472.1 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.153, allocations: 138.2 kB / 472.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.1548, allocations: 1.251 MB / 473.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1548, allocations: 11.94 kB / 473.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1548, allocations: 0 / 473.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.1548, allocations: 3.984 kB / 473.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003009/0.1578, allocations: 2.37 MB / 475.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1579, allocations: 0 / 475.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.1584, allocations: 123.8 kB / 476 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.1584, allocations: 7.984 kB / 476 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/0.1584, allocations: 16 kB / 476 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.1585, allocations: 7.938 kB / 476 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1585, allocations: 0 / 476 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.1608, allocations: 1.941 MB / 478 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.161, allocations: 199.2 kB / 478.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.406e-05/0.1611, allocations: 12.06 kB / 478.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.1614, allocations: 19.98 kB / 478.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.943e-05/0.1615, allocations: 48.5 kB / 478.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.1615, allocations: 23.98 kB / 478.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.1626, allocations: 0.8677 MB / 479.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1626, allocations: 4 kB / 479.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006046/0.1632, allocations: 211 kB / 479.4 MB, free: 15.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.0001871/0.1634, allocations: 118 kB / 479.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001512/0.1649, allocations: 1.095 MB / 480.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1649, allocations: 4 kB / 480.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007004/0.1656, allocations: 0.538 MB / 481.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.1661, allocations: 65.09 kB / 481.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.17, allocations: 2.737 MB / 483.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.1711, allocations: 1.303 MB / 485.2 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.1715, allocations: 124.5 kB / 485.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.1716, allocations: 51.42 kB / 485.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of SimCode: time 1.482e-06/0.1716, allocations: 0 / 485.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of Templates: time 0.01312/0.1848, allocations: 5.261 MB / 490.7 MB, free: 4.117 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)