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.001225/0.001225, allocations: 101.5 kB / 16.35 MB, free: 5.875 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.00115/0.00115, allocations: 199.3 kB / 17.3 MB, free: 5.516 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1887/0.1887, allocations: 28.78 MB / 319.9 MB, free: 1.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 58.95 kB / 388 MB, free: 40.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1023, allocations: 56.44 MB / 444.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.005106/0.1074, allocations: 3.24 MB / 447.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.1094, allocations: 0.5299 MB / 448.2 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007653/0.1102, allocations: 16 kB / 448.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006159/0.1109, allocations: 142.6 kB / 448.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005754/0.1115, allocations: 126.9 kB / 448.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008777/0.1124, allocations: 291.6 kB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.1136, allocations: 0.7201 MB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007831/0.1143, allocations: 473.2 kB / 450 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.1146, allocations: 306.6 kB / 450.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.115, allocations: 385.8 kB / 450.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.1151, allocations: 80 kB / 450.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.1153, allocations: 107.9 kB / 450.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003571/0.1157, allocations: 422.5 kB / 451.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005064/0.1162, allocations: 0.5814 MB / 451.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.1173, allocations: 1.135 MB / 453 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.1173, allocations: 0 / 453 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1174, allocations: 0 / 453 MB, free: 10.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.1174, allocations: 0 / 453 MB, free: 10.5 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.001997/0.1194, allocations: 1.717 MB / 454.7 MB, free: 8.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1194, allocations: 8.031 kB / 454.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.1196, allocations: 190.5 kB / 454.9 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006706/0.1203, allocations: 0.5703 MB / 455.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.981e-05/0.1204, allocations: 74.38 kB / 455.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.1205, allocations: 92.38 kB / 455.6 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.122, allocations: 1.082 MB / 456.7 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.122, allocations: 192 / 456.7 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.1221, allocations: 43.92 kB / 456.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.499e-05/0.1222, allocations: 58.12 kB / 456.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.1238, allocations: 1.222 MB / 458 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.1276, allocations: 2.831 MB / 460.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.1288, allocations: 0.9951 MB / 461.8 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006041/0.1294, allocations: 0.4983 MB / 462.3 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-05/0.1295, allocations: 32.55 kB / 462.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.1295, allocations: 35.12 kB / 462.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 1.974e-06/0.1295, allocations: 4 kB / 462.4 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.002062/0.1316, allocations: 1.59 MB / 464 MB, free: 15.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1317, allocations: 63.97 kB / 464 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.133, allocations: 1.262 MB / 465.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.1331, allocations: 33.7 kB / 465.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005383/0.1336, allocations: 0.7743 MB / 466.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.1338, allocations: 232.6 kB / 466.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.1339, allocations: 130.6 kB / 466.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1341, allocations: 337.9 kB / 466.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006316/0.1347, allocations: 477.7 kB / 467.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008038/0.1355, allocations: 0.652 MB / 467.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003986/0.1395, allocations: 2.124 MB / 470 MB, free: 8.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.1395, allocations: 4 kB / 470 MB, free: 8.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001788/0.1413, allocations: 1.335 MB / 471.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.1414, allocations: 11.94 kB / 471.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.1414, allocations: 11.94 kB / 471.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.1414, allocations: 8 kB / 471.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005453/0.142, allocations: 176.3 kB / 471.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.142, allocations: 16 kB / 471.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.1423, allocations: 79.2 kB / 471.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.472e-05/0.1424, allocations: 43.98 kB / 471.7 MB, free: 7.262 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.0005555/0.143, allocations: 399.2 kB / 472.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.1431, allocations: 138.2 kB / 472.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001701/0.1448, allocations: 1.247 MB / 473.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.1448, allocations: 12 kB / 473.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1449, allocations: 0 / 473.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1449, allocations: 3.984 kB / 473.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.1477, allocations: 2.37 MB / 475.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1477, allocations: 4 kB / 475.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.1482, allocations: 119.9 kB / 476 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1482, allocations: 4 kB / 476 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.1483, allocations: 23.98 kB / 476 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1483, allocations: 0 / 476 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1483, allocations: 0 / 476 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.1506, allocations: 1.941 MB / 478 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.1508, allocations: 195.2 kB / 478.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.382e-05/0.1509, allocations: 12.06 kB / 478.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.1512, allocations: 23.98 kB / 478.2 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1513, allocations: 44.5 kB / 478.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.1513, allocations: 27.98 kB / 478.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001037/0.1524, allocations: 0.8677 MB / 479.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 4e-07/0.1524, allocations: 0 / 479.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005697/0.1529, allocations: 211 kB / 479.3 MB, free: 15.52 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.000157/0.1531, allocations: 119.1 kB / 479.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.155, allocations: 1.09 MB / 480.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.155, allocations: 1.375 kB / 480.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.1561, allocations: 0.5536 MB / 481.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.1568, allocations: 67.75 kB / 481.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.1622, allocations: 2.737 MB / 483.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.1634, allocations: 1.299 MB / 485.2 MB, free: 9.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004801/0.1639, allocations: 116.5 kB / 485.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.1641, allocations: 59.42 kB / 485.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1641, allocations: 0 / 485.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of Templates: time 0.01789/0.182, allocations: 5.267 MB / 490.6 MB, free: 4.137 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 cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)