Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001274/0.001274, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1848/0.1848, allocations: 28.79 MB / 319.9 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 59.53 kB / 388 MB, free: 40.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.08977, allocations: 56.44 MB / 444.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.00496/0.09477, allocations: 3.671 MB / 448.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.09653, allocations: 0.7714 MB / 448.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003588/0.0969, allocations: 15.94 kB / 448.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003894/0.0973, allocations: 178.3 kB / 449.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003943/0.09776, allocations: 138.7 kB / 449.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009549/0.09872, allocations: 379.5 kB / 449.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008864/0.09962, allocations: 0.864 MB / 450.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008154/0.1005, allocations: 0.6326 MB / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.1008, allocations: 346.4 kB / 451.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.1011, allocations: 437.5 kB / 451.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1013, allocations: 84 kB / 451.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.1015, allocations: 116 kB / 452 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000371/0.1019, allocations: 442.4 kB / 452.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004629/0.1023, allocations: 0.6203 MB / 453.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.1035, allocations: 1.268 MB / 454.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1035, allocations: 0 / 454.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1035, allocations: 0 / 454.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.1036, allocations: 4 kB / 454.4 MB, free: 9.059 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002172/0.1058, allocations: 1.795 MB / 456.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1058, allocations: 8.031 kB / 456.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.106, allocations: 206.4 kB / 456.4 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009409/0.107, allocations: 0.759 MB / 457.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.531e-05/0.1071, allocations: 82.47 kB / 457.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.1072, allocations: 108.3 kB / 457.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.1088, allocations: 1.17 MB / 458.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.1088, allocations: 192 / 458.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-05/0.1089, allocations: 51.94 kB / 458.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.1089, allocations: 27.94 kB / 458.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.1103, allocations: 1.105 MB / 459.7 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.1146, allocations: 3.678 MB / 463.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.1161, allocations: 1.369 MB / 464.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.1167, allocations: 490.6 kB / 465.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.623e-05/0.1168, allocations: 28.86 kB / 465.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006581/0.1174, allocations: 0.5471 MB / 465.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.865e-06/0.1174, allocations: 0 / 465.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.001838/0.1193, allocations: 1.57 MB / 467.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.1193, allocations: 60 kB / 467.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.1207, allocations: 1.297 MB / 468.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.537e-05/0.1208, allocations: 41.7 kB / 468.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005372/0.1213, allocations: 0.7677 MB / 469.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.1215, allocations: 248.5 kB / 469.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.1217, allocations: 122.6 kB / 469.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1218, allocations: 337.9 kB / 470.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005176/0.1223, allocations: 441.8 kB / 470.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005407/0.1229, allocations: 0.5523 MB / 471.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.124, allocations: 1.046 MB / 472.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.124, allocations: 4 kB / 472.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001341/0.1254, allocations: 1.222 MB / 473.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1254, allocations: 8 kB / 473.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1254, allocations: 3.938 kB / 473.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1255, allocations: 8.344 kB / 473.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.1259, allocations: 139.8 kB / 473.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1259, allocations: 4 kB / 473.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.1262, allocations: 55.44 kB / 473.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.054e-05/0.1262, allocations: 31.92 kB / 473.7 MB, free: 5.25 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.000475/0.1267, allocations: 393.8 kB / 474.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.1268, allocations: 146.1 kB / 474.2 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001479/0.1283, allocations: 1.242 MB / 475.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.1283, allocations: 8 kB / 475.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1284, allocations: 0 / 475.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1284, allocations: 3.984 kB / 475.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002518/0.1309, allocations: 2.409 MB / 477.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1309, allocations: 0 / 477.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.1314, allocations: 115.8 kB / 478 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.1314, allocations: 7.984 kB / 478 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.1314, allocations: 19.98 kB / 478 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.1314, allocations: 4 kB / 478 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1314, allocations: 3.938 kB / 478 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.1335, allocations: 1.917 MB / 480 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/0.1338, allocations: 259 kB / 480.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.293e-05/0.1339, allocations: 19.94 kB / 480.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.1341, allocations: 12 kB / 480.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.038e-05/0.1342, allocations: 48.53 kB / 480.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.1343, allocations: 20.12 kB / 480.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009936/0.1353, allocations: 0.8969 MB / 481.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1353, allocations: 0 / 481.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005575/0.1358, allocations: 215 kB / 481.4 MB, free: 13.41 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001845/0.136, allocations: 125.7 kB / 481.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.1372, allocations: 1.025 MB / 482.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1372, allocations: 3.938 kB / 482.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.1378, allocations: 0.5268 MB / 483.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.1384, allocations: 91.97 kB / 483.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/0.1418, allocations: 2.782 MB / 486 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008394/0.1427, allocations: 1.311 MB / 487.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002399/0.1429, allocations: 80.67 kB / 487.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.143, allocations: 51.42 kB / 487.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.143, allocations: 0 / 487.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of Templates: time 0.01174/0.1548, allocations: 5.4 MB / 492.8 MB, free: 1.949 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)