Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 107.3 kB / 16.36 MB, free: 5.824 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.001172/0.001172, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2061/0.2061, allocations: 28.79 MB / 319.9 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.53 kB / 388 MB, free: 40.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 56.44 MB / 444.4 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.00509/0.117, allocations: 3.643 MB / 448.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1185, allocations: 0.674 MB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000349/0.1189, allocations: 16 kB / 448.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.1194, allocations: 182.3 kB / 449 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002844/0.1197, allocations: 134.8 kB / 449.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006986/0.1204, allocations: 359.5 kB / 449.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000769/0.1212, allocations: 0.8445 MB / 450.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007594/0.122, allocations: 0.6442 MB / 450.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.1223, allocations: 326.5 kB / 451.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.1227, allocations: 421.6 kB / 451.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.1228, allocations: 84 kB / 451.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.123, allocations: 115.9 kB / 451.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003439/0.1233, allocations: 430.5 kB / 452.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004048/0.1237, allocations: 0.6281 MB / 452.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.1249, allocations: 1.244 MB / 454.1 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1249, allocations: 4 kB / 454.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1249, allocations: 0 / 454.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.125, allocations: 0 / 454.2 MB, free: 9.266 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001984/0.1269, allocations: 1.79 MB / 455.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.127, allocations: 8.031 kB / 455.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.1273, allocations: 194.5 kB / 456.1 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009881/0.1283, allocations: 0.7588 MB / 456.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.849e-05/0.1283, allocations: 74.45 kB / 457 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1284, allocations: 104.4 kB / 457.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.1299, allocations: 1.166 MB / 458.2 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.13, allocations: 4.125 kB / 458.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.13, allocations: 47.88 kB / 458.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.1301, allocations: 28 kB / 458.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.1316, allocations: 1.097 MB / 459.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004213/0.1358, allocations: 3.654 MB / 463.1 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.1374, allocations: 1.33 MB / 464.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006508/0.1381, allocations: 490.3 kB / 464.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.536e-05/0.1382, allocations: 36.7 kB / 464.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.916e-05/0.1382, allocations: 35.12 kB / 464.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.936e-06/0.1382, allocations: 0 / 464.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001797/0.14, allocations: 1.528 MB / 466.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.1401, allocations: 59.97 kB / 466.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.1415, allocations: 1.284 MB / 467.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/0.1416, allocations: 45.64 kB / 467.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/0.1423, allocations: 0.7637 MB / 468.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.1425, allocations: 236.5 kB / 468.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.1427, allocations: 114.7 kB / 469 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1428, allocations: 333.9 kB / 469.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.1434, allocations: 437.8 kB / 469.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00058/0.144, allocations: 0.535 MB / 470.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.1451, allocations: 1.006 MB / 471.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1452, allocations: 0 / 471.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001545/0.1467, allocations: 1.186 MB / 472.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1467, allocations: 8 kB / 472.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.1467, allocations: 4.312 kB / 472.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.1468, allocations: 8 kB / 472.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.1473, allocations: 135.8 kB / 472.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1473, allocations: 7.938 kB / 472.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.1475, allocations: 55.38 kB / 472.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.1476, allocations: 24 kB / 472.7 MB, free: 6.277 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 (83): * Single equations (assignments): 83 * 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.0004298/0.148, allocations: 383.8 kB / 473.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.1481, allocations: 138.2 kB / 473.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.1497, allocations: 1.205 MB / 474.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1498, allocations: 8 kB / 474.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1498, allocations: 0 / 474.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1498, allocations: 3.984 kB / 474.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.1523, allocations: 2.364 MB / 476.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1523, allocations: 3.938 kB / 476.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.1527, allocations: 115.8 kB / 476.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.1528, allocations: 4 kB / 476.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.1528, allocations: 20 kB / 476.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.083e-06/0.1528, allocations: 8 kB / 476.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1528, allocations: 3.938 kB / 476.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.1548, allocations: 1.883 MB / 478.8 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.155, allocations: 199.2 kB / 479 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.265e-05/0.1551, allocations: 12 kB / 479 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.1553, allocations: 16 kB / 479 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.062e-05/0.1554, allocations: 44.44 kB / 479.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.919e-05/0.1555, allocations: 16 kB / 479.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.1565, allocations: 0.8965 MB / 480 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1565, allocations: 0 / 480 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005506/0.1571, allocations: 207 kB / 480.2 MB, free: 14.66 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 (68): * Single equations (assignments): 68 * 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.0001718/0.1572, allocations: 117.6 kB / 480.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.1584, allocations: 0.9998 MB / 481.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1584, allocations: 0 / 481.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005538/0.159, allocations: 0.5068 MB / 481.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005569/0.1596, allocations: 89.27 kB / 481.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.1632, allocations: 2.765 MB / 484.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008883/0.1641, allocations: 1.307 MB / 486 MB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002249/0.1643, allocations: 76.52 kB / 486 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1644, allocations: 43.42 kB / 486.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of SimCode: time 1.093e-06/0.1644, allocations: 0 / 486.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of Templates: time 0.0121/0.1765, allocations: 5.226 MB / 491.3 MB, free: 3.461 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)