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.001564/0.001564, allocations: 118.8 kB / 16.37 MB, free: 6.004 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.001927/0.001927, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.347/1.347, 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.1952/0.1952, allocations: 28.78 MB / 319.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 67.95 kB / 388 MB, free: 40.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1094, allocations: 56.43 MB / 444.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005134/0.1145, allocations: 3.656 MB / 448.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.116, allocations: 0.6896 MB / 448.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003329/0.1164, allocations: 19.94 kB / 448.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.1168, allocations: 178.3 kB / 449 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003013/0.1171, allocations: 134.8 kB / 449.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008301/0.1179, allocations: 371.4 kB / 449.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009541/0.1189, allocations: 0.8562 MB / 450.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.1199, allocations: 0.6325 MB / 451 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003394/0.1203, allocations: 334.5 kB / 451.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.1206, allocations: 421.6 kB / 451.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.1208, allocations: 92 kB / 451.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.121, allocations: 115.9 kB / 451.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.1213, allocations: 450.4 kB / 452.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004232/0.1218, allocations: 0.628 MB / 453 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.1229, allocations: 1.287 MB / 454.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1229, allocations: 0 / 454.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1229, allocations: 0 / 454.3 MB, free: 9.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.1229, allocations: 4 kB / 454.3 MB, free: 9.16 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.002118/0.125, allocations: 1.827 MB / 456.1 MB, free: 7.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1251, allocations: 8.031 kB / 456.1 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.1253, allocations: 206.3 kB / 456.3 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/0.1262, allocations: 0.7626 MB / 457.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.598e-05/0.1263, allocations: 78.48 kB / 457.2 MB, free: 6.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1265, allocations: 116.2 kB / 457.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.1282, allocations: 1.278 MB / 458.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.1282, allocations: 4.125 kB / 458.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1283, allocations: 47.94 kB / 458.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.425e-05/0.1284, allocations: 47.98 kB / 458.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.13, allocations: 1.23 MB / 459.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.1343, allocations: 3.874 MB / 463.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.1359, allocations: 1.372 MB / 465.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005516/0.1365, allocations: 0.4914 MB / 465.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.066e-05/0.1365, allocations: 32.77 kB / 465.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1366, allocations: 39.06 kB / 465.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.294e-06/0.1366, allocations: 4 kB / 465.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00192/0.1385, allocations: 1.551 MB / 467.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.1386, allocations: 89.61 kB / 467.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.1401, allocations: 1.374 MB / 468.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.1401, allocations: 33.7 kB / 468.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005447/0.1407, allocations: 0.8371 MB / 469.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.1408, allocations: 252.5 kB / 469.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.141, allocations: 154.6 kB / 470 MB, free: 9.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1411, allocations: 341.9 kB / 470.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005684/0.1417, allocations: 469.8 kB / 470.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007406/0.1425, allocations: 0.7239 MB / 471.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.1439, allocations: 1.241 MB / 472.7 MB, free: 6.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.1439, allocations: 4 kB / 472.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001673/0.1456, allocations: 1.39 MB / 474.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.1456, allocations: 8.188 kB / 474.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.1456, allocations: 15.94 kB / 474.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.645e-05/0.1456, allocations: 12 kB / 474.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.1462, allocations: 179.7 kB / 474.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.1462, allocations: 19.92 kB / 474.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003401/0.1466, allocations: 87.06 kB / 474.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.1466, allocations: 40 kB / 474.5 MB, free: 4.32 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.0004728/0.1471, allocations: 411.6 kB / 474.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1473, allocations: 150.1 kB / 475 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.1489, allocations: 1.233 MB / 476.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.1489, allocations: 8 kB / 476.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.1489, allocations: 3.938 kB / 476.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.1489, allocations: 11.92 kB / 476.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003154/0.1521, allocations: 2.392 MB / 478.7 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1521, allocations: 4.031 kB / 478.7 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.1526, allocations: 119.8 kB / 478.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.1526, allocations: 0 / 478.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/0.1526, allocations: 27.92 kB / 478.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.473e-06/0.1527, allocations: 4 kB / 478.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1527, allocations: 0 / 478.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.1547, allocations: 1.984 MB / 480.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.155, allocations: 203.1 kB / 481 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.062e-05/0.1551, allocations: 20.12 kB / 481 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.1553, allocations: 19.98 kB / 481 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.327e-05/0.1554, allocations: 40.52 kB / 481.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.1555, allocations: 23.98 kB / 481.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001055/0.1565, allocations: 0.9414 MB / 482 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1566, allocations: 0 / 482 MB, free: 12.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.1572, allocations: 226.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.0001765/0.1574, allocations: 121.9 kB / 482.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.1588, allocations: 1.083 MB / 483.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1588, allocations: 0 / 483.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005778/0.1594, allocations: 0.5263 MB / 484 MB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006342/0.16, allocations: 105.2 kB / 484.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003544/0.1636, allocations: 2.857 MB / 487 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008581/0.1644, allocations: 1.327 MB / 488.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003484/0.1648, allocations: 128.9 kB / 488.4 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.1649, allocations: 59.42 kB / 488.5 MB, free: 6.133 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1649, allocations: 0 / 488.5 MB, free: 6.133 MB / 366.1 MB Notification: Performance of Templates: time 0.01252/0.1775, allocations: 5.646 MB / 494.1 MB, free: 0.4922 MB / 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 gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)