Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001285/0.001285, allocations: 191.2 kB / 16.91 MB, free: 6.188 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.303/1.303, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.183/0.183, allocations: 28.78 MB / 319.5 MB, free: 1.941 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 58.39 kB / 386.7 MB, free: 40.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1178, allocations: 56.44 MB / 443.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005298/0.1232, allocations: 3.628 MB / 446.8 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1251, allocations: 0.6584 MB / 447.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.1256, allocations: 15.94 kB / 447.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.126, allocations: 115.1 kB / 447.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003171/0.1264, allocations: 79.5 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007656/0.1272, allocations: 307.7 kB / 447.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008404/0.128, allocations: 0.8522 MB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008595/0.1289, allocations: 0.6325 MB / 449.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.1292, allocations: 330.4 kB / 449.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.1296, allocations: 441.5 kB / 450.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.1297, allocations: 84 kB / 450.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.1299, allocations: 120 kB / 450.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003808/0.1303, allocations: 430.5 kB / 450.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004631/0.1308, allocations: 0.6009 MB / 451.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008996/0.1317, allocations: 0.8232 MB / 452.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1317, allocations: 0 / 452.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1317, allocations: 0 / 452.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.1317, allocations: 0 / 452.2 MB, free: 10.97 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002204/0.1339, allocations: 1.737 MB / 454 MB, free: 9.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.134, allocations: 8.031 kB / 454 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.1342, allocations: 190.6 kB / 454.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008108/0.1351, allocations: 0.7308 MB / 454.9 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.458e-05/0.1351, allocations: 74.42 kB / 455 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1353, allocations: 108.3 kB / 455.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.1369, allocations: 1.134 MB / 456.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.1369, allocations: 192 / 456.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/0.137, allocations: 43.94 kB / 456.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.137, allocations: 32 kB / 456.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1384, allocations: 1.046 MB / 457.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004371/0.1428, allocations: 3.614 MB / 460.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.1443, allocations: 1.279 MB / 462.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000494/0.1448, allocations: 458.4 kB / 462.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.565e-05/0.1449, allocations: 28.77 kB / 462.7 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.1449, allocations: 43.11 kB / 462.7 MB, free: 160 kB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.735e-06/0.145, allocations: 0 / 462.7 MB, free: 160 kB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.001732/0.1467, allocations: 1.442 MB / 464.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.1467, allocations: 59.97 kB / 464.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.1481, allocations: 1.23 MB / 465.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.1482, allocations: 37.7 kB / 465.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005675/0.1487, allocations: 0.7478 MB / 466.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.1489, allocations: 232.6 kB / 466.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.1491, allocations: 114.3 kB / 466.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1492, allocations: 333.9 kB / 466.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/0.1497, allocations: 409.1 kB / 467.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/0.1503, allocations: 0.5082 MB / 467.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.1513, allocations: 0.9548 MB / 468.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.1513, allocations: 4 kB / 468.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001432/0.1528, allocations: 1.124 MB / 469.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.1528, allocations: 8.031 kB / 469.9 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1528, allocations: 4 kB / 469.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.1529, allocations: 4 kB / 469.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.1533, allocations: 135.8 kB / 470.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.1533, allocations: 8 kB / 470.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.1536, allocations: 43.44 kB / 470.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.1536, allocations: 24 kB / 470.1 MB, free: 8.621 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (81): * Single equations (assignments): 81 * 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.0005466/0.1542, allocations: 375.7 kB / 470.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.1543, allocations: 134.2 kB / 470.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.1559, allocations: 1.146 MB / 471.8 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.1559, allocations: 8 kB / 471.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.1559, allocations: 0 / 471.8 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.1559, allocations: 3.984 kB / 471.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.1586, allocations: 2.281 MB / 474.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1586, allocations: 0 / 474.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.159, allocations: 115.8 kB / 474.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.159, allocations: 0 / 474.2 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.1591, allocations: 20 kB / 474.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.1591, allocations: 0 / 474.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1591, allocations: 0 / 474.2 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.161, allocations: 1.793 MB / 476 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.1611, allocations: 195.3 kB / 476.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.1612, allocations: 8.062 kB / 476.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.1614, allocations: 16 kB / 476.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.483e-05/0.1615, allocations: 36.52 kB / 476.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.1615, allocations: 23.92 kB / 476.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001033/0.1626, allocations: 0.8558 MB / 477.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1626, allocations: 0 / 477.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005424/0.1631, allocations: 199 kB / 477.3 MB, free: 1.312 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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.000205/0.1634, allocations: 123.1 kB / 477.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.1647, allocations: 0.9725 MB / 478.4 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1647, allocations: 0 / 478.4 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005142/0.1652, allocations: 495.1 kB / 478.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/0.1659, allocations: 92.34 kB / 479 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.17, allocations: 3.329 MB / 482.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008784/0.1709, allocations: 1.287 MB / 483.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.1711, allocations: 59.42 kB / 483.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1711, allocations: 0 / 483.6 MB, free: 10.9 MB / 366.1 MB Notification: Performance of Templates: time 0.01498/0.186, allocations: 10.69 MB / 494.3 MB, free: 196 kB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)