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.001214/0.001213, allocations: 111.2 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.001117/0.001117, allocations: 191.6 kB / 17.3 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1982/0.1982, allocations: 28.77 MB / 319.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 64.45 kB / 388 MB, free: 40.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 56.44 MB / 444.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004703/0.1133, allocations: 3.659 MB / 448.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1152, allocations: 0.6895 MB / 448.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004294/0.1156, allocations: 16 kB / 448.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004452/0.1161, allocations: 178.3 kB / 449 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003083/0.1164, allocations: 138.8 kB / 449.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007478/0.1172, allocations: 367.6 kB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000736/0.1179, allocations: 0.8562 MB / 450.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007645/0.1187, allocations: 0.6325 MB / 451 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.119, allocations: 346.4 kB / 451.3 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.1193, allocations: 417.6 kB / 451.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.1194, allocations: 91.94 kB / 451.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.1196, allocations: 116 kB / 451.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003863/0.12, allocations: 446.5 kB / 452.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.1205, allocations: 0.6319 MB / 453 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.1217, allocations: 1.283 MB / 454.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1217, allocations: 4 kB / 454.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1217, allocations: 0 / 454.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.1217, allocations: 0 / 454.3 MB, free: 9.145 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002125/0.1239, allocations: 1.819 MB / 456.1 MB, free: 7.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1239, allocations: 8.031 kB / 456.1 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.1241, allocations: 210.3 kB / 456.3 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009344/0.1251, allocations: 0.7626 MB / 457.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.313e-05/0.1252, allocations: 82.42 kB / 457.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1253, allocations: 108.3 kB / 457.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1269, allocations: 1.278 MB / 458.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.1269, allocations: 192 / 458.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.429e-05/0.127, allocations: 55.92 kB / 458.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.403e-05/0.1271, allocations: 47.97 kB / 458.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.1286, allocations: 1.226 MB / 459.9 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004501/0.1332, allocations: 3.878 MB / 463.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.1348, allocations: 1.373 MB / 465.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/0.1353, allocations: 499.2 kB / 465.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.755e-05/0.1354, allocations: 32.69 kB / 465.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.1354, allocations: 43.12 kB / 465.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.324e-06/0.1355, allocations: 0 / 465.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.001916/0.1374, allocations: 1.555 MB / 467.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.1374, allocations: 85.67 kB / 467.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.1389, allocations: 1.374 MB / 468.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.1389, allocations: 33.7 kB / 468.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005795/0.1395, allocations: 0.8371 MB / 469.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.1397, allocations: 252.3 kB / 469.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.1399, allocations: 154.6 kB / 470 MB, free: 9.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.14, allocations: 337.9 kB / 470.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005523/0.1406, allocations: 473.8 kB / 470.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.1413, allocations: 0.72 MB / 471.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.1426, allocations: 1.241 MB / 472.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.1427, allocations: 4 kB / 472.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001665/0.1443, allocations: 1.39 MB / 474.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1444, allocations: 11.94 kB / 474.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.1444, allocations: 8 kB / 474.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.1444, allocations: 16 kB / 474.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005485/0.145, allocations: 179.7 kB / 474.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/0.145, allocations: 19.92 kB / 474.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.1453, allocations: 83.06 kB / 474.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.1454, allocations: 52.3 kB / 474.5 MB, free: 4.305 MB / 350.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.0005242/0.1459, allocations: 407.7 kB / 474.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/0.1461, allocations: 146.1 kB / 475 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.1477, allocations: 1.245 MB / 476.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.1477, allocations: 7.984 kB / 476.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.1478, allocations: 4 kB / 476.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.1478, allocations: 7.922 kB / 476.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.1507, allocations: 2.396 MB / 478.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1507, allocations: 0 / 478.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004613/0.1512, allocations: 119.9 kB / 478.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.1512, allocations: 4 kB / 478.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.1512, allocations: 15.94 kB / 478.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.225e-06/0.1512, allocations: 7.938 kB / 478.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1512, allocations: 0 / 478.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.1535, allocations: 1.988 MB / 480.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.1537, allocations: 199.1 kB / 481 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.1538, allocations: 16 kB / 481 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.1541, allocations: 16.11 kB / 481 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.1542, allocations: 56.5 kB / 481.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.1542, allocations: 20 kB / 481.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001164/0.1554, allocations: 0.9375 MB / 482 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1554, allocations: 0 / 482 MB, free: 12.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007168/0.1561, allocations: 222.9 kB / 482.3 MB, free: 12.41 MB / 366.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.0002107/0.1564, allocations: 123.1 kB / 482.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.1578, allocations: 1.087 MB / 483.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.1578, allocations: 0 / 483.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006179/0.1584, allocations: 0.5304 MB / 484 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.1591, allocations: 105.1 kB / 484.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.1629, allocations: 2.853 MB / 487 MB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000864/0.1638, allocations: 1.323 MB / 488.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003776/0.1641, allocations: 136.8 kB / 488.4 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.1643, allocations: 55.44 kB / 488.5 MB, free: 6.121 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1643, allocations: 3.938 kB / 488.5 MB, free: 6.117 MB / 366.1 MB Notification: Performance of Templates: time 0.01223/0.1765, allocations: 5.645 MB / 494.1 MB, free: 488 kB / 366.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)