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.00115/0.00115, allocations: 105 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.001263/0.001263, allocations: 190.3 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.353/1.353, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1845/0.1845, allocations: 28.79 MB / 319.8 MB, free: 1.969 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 65.38 kB / 387.2 MB, free: 40.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08698/0.08824, allocations: 56.44 MB / 443.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004819/0.0931, allocations: 3.679 MB / 447.4 MB, free: 76 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.09476, allocations: 0.7675 MB / 448.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.09513, allocations: 19.94 kB / 448.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004446/0.09558, allocations: 170.4 kB / 448.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003221/0.09594, allocations: 138.7 kB / 448.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007023/0.09665, allocations: 375.5 kB / 448.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008301/0.0975, allocations: 0.864 MB / 449.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008212/0.09833, allocations: 0.6326 MB / 450.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003255/0.09866, allocations: 346.4 kB / 450.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.09903, allocations: 433.5 kB / 451.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.09917, allocations: 84 kB / 451.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.09936, allocations: 116 kB / 451.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003395/0.09971, allocations: 442.5 kB / 451.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004662/0.1002, allocations: 0.6203 MB / 452.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001101/0.1013, allocations: 1.191 MB / 453.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1013, allocations: 4 kB / 453.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1013, allocations: 0 / 453.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.1013, allocations: 4 kB / 453.5 MB, free: 9.855 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.002111/0.1035, allocations: 1.799 MB / 455.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1035, allocations: 8.031 kB / 455.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.1038, allocations: 202.4 kB / 455.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008087/0.1046, allocations: 0.7512 MB / 456.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-05/0.1047, allocations: 82.47 kB / 456.4 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.1049, allocations: 100.4 kB / 456.4 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001668/0.1066, allocations: 1.182 MB / 457.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/0.1066, allocations: 192 / 457.6 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-05/0.1067, allocations: 51.88 kB / 457.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.1067, allocations: 28 kB / 457.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.1082, allocations: 1.105 MB / 458.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004624/0.1128, allocations: 3.709 MB / 462.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.1145, allocations: 1.376 MB / 463.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/0.115, allocations: 490.6 kB / 464.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-05/0.1151, allocations: 32.62 kB / 464.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000771/0.1159, allocations: 0.5471 MB / 465 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.457e-06/0.1159, allocations: 4 kB / 465 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002026/0.118, allocations: 1.562 MB / 466.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.118, allocations: 60.06 kB / 466.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.1195, allocations: 1.293 MB / 467.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.1196, allocations: 41.7 kB / 467.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006139/0.1202, allocations: 0.7755 MB / 468.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.1204, allocations: 244.6 kB / 468.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.1206, allocations: 122.6 kB / 469 MB, free: 9.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1207, allocations: 337.9 kB / 469.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.1212, allocations: 445.8 kB / 469.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006522/0.1219, allocations: 0.5484 MB / 470.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.1232, allocations: 1.042 MB / 471.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.1232, allocations: 0 / 471.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001562/0.1248, allocations: 1.222 MB / 472.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.1248, allocations: 8 kB / 472.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1248, allocations: 4 kB / 472.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.635e-05/0.1249, allocations: 7.984 kB / 472.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.1254, allocations: 139.7 kB / 472.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.72e-05/0.1254, allocations: 12.33 kB / 472.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.1257, allocations: 55.44 kB / 472.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.1258, allocations: 24 kB / 472.9 MB, free: 6.023 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.0006254/0.1264, allocations: 397.9 kB / 473.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.1266, allocations: 146.1 kB / 473.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.1282, allocations: 1.235 MB / 474.6 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.1282, allocations: 8 kB / 474.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.1282, allocations: 0 / 474.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.1282, allocations: 3.984 kB / 474.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.131, allocations: 2.413 MB / 477.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.131, allocations: 4 kB / 477.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.1315, allocations: 115.8 kB / 477.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.1315, allocations: 4 kB / 477.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/0.1316, allocations: 23.98 kB / 477.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.1316, allocations: 3.938 kB / 477.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1316, allocations: 3.938 kB / 477.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.1337, allocations: 1.925 MB / 479.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.134, allocations: 259 kB / 479.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.34e-05/0.1341, allocations: 12 kB / 479.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.1343, allocations: 16 kB / 479.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.368e-05/0.1344, allocations: 44.53 kB / 479.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.1345, allocations: 27.92 kB / 479.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.1356, allocations: 0.8969 MB / 480.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1356, allocations: 0 / 480.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006076/0.1362, allocations: 211 kB / 480.6 MB, free: 14.18 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.0002038/0.1364, allocations: 119.2 kB / 480.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.138, allocations: 1.056 MB / 481.8 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1381, allocations: 0 / 481.8 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005875/0.1387, allocations: 0.5191 MB / 482.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008179/0.1395, allocations: 94.66 kB / 482.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.1439, allocations: 2.92 MB / 485.3 MB, free: 9.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009075/0.1449, allocations: 1.319 MB / 486.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.1451, allocations: 59.42 kB / 486.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1451, allocations: 0 / 486.7 MB, free: 8.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01833/0.1634, allocations: 11.21 MB / 497.9 MB, free: 12.79 MB / 382.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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)