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.001068/0.001068, allocations: 113.2 kB / 16.37 MB, free: 5.984 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.001014/0.001014, allocations: 194.8 kB / 17.31 MB, free: 5.602 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.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.1778/0.1778, allocations: 28.78 MB / 319.9 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.00191, allocations: 63.62 kB / 388 MB, free: 40.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1247, allocations: 56.43 MB / 444.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004981/0.1297, allocations: 3.631 MB / 448.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.1319, allocations: 0.6778 MB / 448.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007698/0.1327, allocations: 19.94 kB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00053/0.1332, allocations: 162.3 kB / 448.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000477/0.1337, allocations: 126.8 kB / 449.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007911/0.1345, allocations: 355.6 kB / 449.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007948/0.1353, allocations: 0.8404 MB / 450.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008471/0.1362, allocations: 0.6403 MB / 450.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002532/0.1364, allocations: 330.4 kB / 451.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.1368, allocations: 425.6 kB / 451.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.1369, allocations: 84 kB / 451.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.1371, allocations: 112 kB / 451.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003414/0.1374, allocations: 430.5 kB / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004075/0.1378, allocations: 0.6048 MB / 452.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.1389, allocations: 1.217 MB / 454.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1389, allocations: 0 / 454.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.139, allocations: 0 / 454.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.139, allocations: 0 / 454.1 MB, free: 9.367 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.002139/0.1411, allocations: 1.737 MB / 455.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1412, allocations: 8.031 kB / 455.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.1415, allocations: 194.6 kB / 456 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.1426, allocations: 0.7308 MB / 456.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.1426, allocations: 78.42 kB / 456.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.1428, allocations: 108.3 kB / 456.9 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.1443, allocations: 1.13 MB / 458 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.169e-05/0.1443, allocations: 4.125 kB / 458 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.946e-05/0.1444, allocations: 43.94 kB / 458.1 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.1444, allocations: 28 kB / 458.1 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1458, allocations: 1.046 MB / 459.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005153/0.1509, allocations: 3.582 MB / 462.7 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/0.1527, allocations: 1.275 MB / 464 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004718/0.1532, allocations: 466.3 kB / 464.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.388e-05/0.1532, allocations: 20.7 kB / 464.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.1533, allocations: 47.12 kB / 464.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.485e-06/0.1533, allocations: 0 / 464.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.00173/0.155, allocations: 1.446 MB / 466 MB, free: 13.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.1551, allocations: 59.97 kB / 466 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.1567, allocations: 1.23 MB / 467.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/0.1568, allocations: 41.64 kB / 467.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/0.1574, allocations: 0.744 MB / 468.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1575, allocations: 232.6 kB / 468.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.1577, allocations: 110.3 kB / 468.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1579, allocations: 341.9 kB / 468.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.1583, allocations: 409.1 kB / 469.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005365/0.1589, allocations: 0.5004 MB / 469.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009981/0.1599, allocations: 0.9549 MB / 470.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1599, allocations: 4 kB / 470.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001363/0.1613, allocations: 1.132 MB / 471.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.1613, allocations: 8.031 kB / 471.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1613, allocations: 4 kB / 471.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.1614, allocations: 4 kB / 471.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004453/0.1618, allocations: 127.8 kB / 471.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.1618, allocations: 15.88 kB / 471.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.1621, allocations: 47.44 kB / 471.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.1621, allocations: 23.98 kB / 471.9 MB, free: 7.031 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.000529/0.1626, allocations: 367.8 kB / 472.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.1628, allocations: 142.2 kB / 472.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.1642, allocations: 1.142 MB / 473.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.1642, allocations: 8 kB / 473.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.1642, allocations: 3.938 kB / 473.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1642, allocations: 0 / 473.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.1667, allocations: 2.273 MB / 475.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1667, allocations: 0 / 475.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.1671, allocations: 111.8 kB / 476 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.1671, allocations: 4 kB / 476 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.1671, allocations: 15.98 kB / 476 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1672, allocations: 0 / 476 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1672, allocations: 8 kB / 476 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.1689, allocations: 1.785 MB / 477.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.1692, allocations: 199.3 kB / 478 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.086e-05/0.1692, allocations: 8 kB / 478 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.1694, allocations: 12 kB / 478 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.1695, allocations: 40.5 kB / 478 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/0.1695, allocations: 19.94 kB / 478.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009221/0.1705, allocations: 0.8597 MB / 478.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1705, allocations: 0 / 478.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.171, allocations: 199 kB / 479.1 MB, free: 15.74 MB / 366.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.0001842/0.1712, allocations: 122.5 kB / 479.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.1723, allocations: 0.945 MB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1723, allocations: 0.625 kB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.1728, allocations: 499 kB / 480.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005548/0.1733, allocations: 87.83 kB / 480.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.1768, allocations: 2.659 MB / 483.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009182/0.1777, allocations: 1.28 MB / 484.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.178, allocations: 80.3 kB / 484.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.1781, allocations: 43.44 kB / 484.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1781, allocations: 0 / 484.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of Templates: time 0.01097/0.1891, allocations: 5.106 MB / 489.9 MB, free: 4.867 MB / 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)