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.001224/0.001224, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001235/0.001235, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.435/1.435, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1685/0.1685, allocations: 28.79 MB / 319.8 MB, free: 1.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 66.28 kB / 387.2 MB, free: 41.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 56.44 MB / 443.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.006843/0.1085, allocations: 3.625 MB / 447.3 MB, free: 160 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.111, allocations: 0.674 MB / 448 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.112, allocations: 19.94 kB / 448 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000709/0.1128, allocations: 162.3 kB / 448.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005762/0.1134, allocations: 130.8 kB / 448.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009617/0.1143, allocations: 355.5 kB / 448.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009759/0.1153, allocations: 0.8289 MB / 449.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.1164, allocations: 0.6403 MB / 450.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.1167, allocations: 330.5 kB / 450.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.117, allocations: 425.5 kB / 450.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.1172, allocations: 84 kB / 450.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.1174, allocations: 120 kB / 451 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003626/0.1178, allocations: 422.5 kB / 451.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004816/0.1182, allocations: 0.6009 MB / 452.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.1194, allocations: 1.152 MB / 453.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1194, allocations: 0 / 453.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1194, allocations: 4 kB / 453.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.401e-05/0.1195, allocations: 0 / 453.2 MB, free: 10.2 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.002174/0.1217, allocations: 1.733 MB / 454.9 MB, free: 8.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1217, allocations: 8.031 kB / 454.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.122, allocations: 194.5 kB / 455.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008061/0.1228, allocations: 0.7346 MB / 455.9 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.046e-05/0.1228, allocations: 74.42 kB / 455.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.123, allocations: 104.3 kB / 456 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.1244, allocations: 1.13 MB / 457.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.1245, allocations: 192 / 457.2 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-05/0.1246, allocations: 47.94 kB / 457.2 MB, free: 5.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.1246, allocations: 24 kB / 457.2 MB, free: 5.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1259, allocations: 1.05 MB / 458.3 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004567/0.1305, allocations: 3.61 MB / 461.9 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.1321, allocations: 1.283 MB / 463.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.1326, allocations: 458.4 kB / 463.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.962e-05/0.1327, allocations: 32.44 kB / 463.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.1328, allocations: 43.12 kB / 463.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.1328, allocations: 0 / 463.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001679/0.1345, allocations: 1.446 MB / 465.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.1345, allocations: 55.97 kB / 465.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.1359, allocations: 1.23 MB / 466.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.745e-05/0.136, allocations: 37.7 kB / 466.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005839/0.1365, allocations: 0.7401 MB / 467.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.1367, allocations: 232.6 kB / 467.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1369, allocations: 114.3 kB / 467.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.137, allocations: 337.9 kB / 467.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.1375, allocations: 409.1 kB / 468.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.138, allocations: 0.5043 MB / 468.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.139, allocations: 0.9626 MB / 469.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.139, allocations: 0 / 469.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001275/0.1403, allocations: 1.132 MB / 470.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1403, allocations: 4.312 kB / 470.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.1404, allocations: 8 kB / 470.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.1404, allocations: 4 kB / 470.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.1409, allocations: 127.8 kB / 471 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.1409, allocations: 8 kB / 471 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.1411, allocations: 51.44 kB / 471.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.1412, allocations: 20 kB / 471.1 MB, free: 7.844 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.0004431/0.1416, allocations: 371.8 kB / 471.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.1418, allocations: 138.2 kB / 471.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.1432, allocations: 1.15 MB / 472.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1432, allocations: 4 kB / 472.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1432, allocations: 0 / 472.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.1432, allocations: 3.984 kB / 472.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.1458, allocations: 2.284 MB / 475 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.1458, allocations: 3.938 kB / 475 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004449/0.1463, allocations: 103.9 kB / 475.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.451e-05/0.1463, allocations: 8 kB / 475.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.1463, allocations: 12 kB / 475.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.1463, allocations: 4 kB / 475.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.1464, allocations: 0 / 475.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001944/0.1483, allocations: 1.789 MB / 477 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.1485, allocations: 195.3 kB / 477.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.288e-05/0.1486, allocations: 16.06 kB / 477.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.1488, allocations: 8 kB / 477.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.1489, allocations: 40.52 kB / 477.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.149, allocations: 23.92 kB / 477.2 MB, free: 1.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.15, allocations: 0.8519 MB / 478.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.15, allocations: 0 / 478.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006127/0.1506, allocations: 207 kB / 478.3 MB, free: 0.5352 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.0002063/0.1508, allocations: 115.6 kB / 478.4 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.1522, allocations: 0.9766 MB / 479.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1522, allocations: 0 / 479.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005224/0.1527, allocations: 491 kB / 479.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.1534, allocations: 94.36 kB / 480 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.1571, allocations: 2.778 MB / 482.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008486/0.158, allocations: 1.284 MB / 484 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.1581, allocations: 55.42 kB / 484.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1582, allocations: 3.938 kB / 484.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01657/0.1747, allocations: 10.71 MB / 494.8 MB, free: 15.95 MB / 382.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)