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.001091/0.001092, allocations: 105.6 kB / 15.99 MB, free: 5.895 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.001027/0.001028, allocations: 194.6 kB / 16.91 MB, free: 5.746 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.298/1.298, allocations: 222.9 MB / 240.6 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1839/0.1839, allocations: 28.78 MB / 319.5 MB, free: 1.961 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 60.02 kB / 386.7 MB, free: 40.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1017, allocations: 56.44 MB / 443.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004885/0.1067, allocations: 3.682 MB / 446.8 MB, free: 456 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.1085, allocations: 0.7481 MB / 447.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005051/0.109, allocations: 23.94 kB / 447.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000434/0.1095, allocations: 123 kB / 447.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.1099, allocations: 91.5 kB / 447.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.1106, allocations: 331.7 kB / 448.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008121/0.1114, allocations: 0.8757 MB / 449 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007968/0.1123, allocations: 0.6287 MB / 449.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.1126, allocations: 350.4 kB / 450 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00038/0.113, allocations: 465.4 kB / 450.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.1131, allocations: 88 kB / 450.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.1133, allocations: 115.9 kB / 450.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003515/0.1137, allocations: 438.4 kB / 451.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.1141, allocations: 0.632 MB / 451.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000911/0.115, allocations: 0.8504 MB / 452.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1151, allocations: 0 / 452.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1151, allocations: 0 / 452.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1151, allocations: 0 / 452.5 MB, free: 10.68 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.002226/0.1173, allocations: 1.803 MB / 454.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1174, allocations: 8.031 kB / 454.4 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.1176, allocations: 202.4 kB / 454.6 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.1184, allocations: 0.7512 MB / 455.3 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.299e-05/0.1184, allocations: 78.47 kB / 455.4 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.1186, allocations: 104.4 kB / 455.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.1201, allocations: 1.178 MB / 456.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.1202, allocations: 4.125 kB / 456.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.729e-05/0.1202, allocations: 51.92 kB / 456.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.1203, allocations: 24 kB / 456.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.1216, allocations: 1.101 MB / 457.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.1259, allocations: 3.709 MB / 461.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1274, allocations: 1.373 MB / 462.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005229/0.1279, allocations: 490.6 kB / 463.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.858e-05/0.128, allocations: 28.55 kB / 463.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007691/0.1288, allocations: 0.5471 MB / 464 MB, free: 14.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.545e-06/0.1288, allocations: 0 / 464 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.00188/0.1307, allocations: 1.57 MB / 465.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.1308, allocations: 60.06 kB / 465.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.1321, allocations: 1.297 MB / 466.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.1321, allocations: 37.7 kB / 466.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005616/0.1327, allocations: 0.7794 MB / 467.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.1329, allocations: 240.5 kB / 468 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.1331, allocations: 126.6 kB / 468.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1332, allocations: 329.9 kB / 468.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004957/0.1337, allocations: 449.8 kB / 468.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.1343, allocations: 0.5484 MB / 469.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.1355, allocations: 1.054 MB / 470.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1355, allocations: 0 / 470.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001403/0.1369, allocations: 1.218 MB / 471.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1369, allocations: 4 kB / 471.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1369, allocations: 4.344 kB / 471.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.137, allocations: 12 kB / 471.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.1374, allocations: 135.8 kB / 471.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.1375, allocations: 4 kB / 471.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.1377, allocations: 63.36 kB / 471.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.1378, allocations: 24 kB / 471.9 MB, free: 6.848 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.0005423/0.1383, allocations: 389.3 kB / 472.3 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1385, allocations: 146.2 kB / 472.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.1399, allocations: 1.238 MB / 473.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.14, allocations: 4 kB / 473.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.14, allocations: 4 kB / 473.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.14, allocations: 7.922 kB / 473.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.1425, allocations: 2.413 MB / 476.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1425, allocations: 0 / 476.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004503/0.143, allocations: 119.8 kB / 476.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-06/0.143, allocations: 4 kB / 476.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.143, allocations: 19.98 kB / 476.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.143, allocations: 4 kB / 476.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1431, allocations: 3.938 kB / 476.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.145, allocations: 1.933 MB / 478.2 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.1453, allocations: 251 kB / 478.4 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.1454, allocations: 16 kB / 478.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1456, allocations: 12 kB / 478.4 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.913e-05/0.1457, allocations: 44.53 kB / 478.5 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.1458, allocations: 19.98 kB / 478.5 MB, free: 120 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009771/0.1468, allocations: 0.9008 MB / 479.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1468, allocations: 0 / 479.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005715/0.1473, allocations: 215 kB / 479.6 MB, free: 15.01 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.0002059/0.1476, allocations: 127.6 kB / 479.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.149, allocations: 1.048 MB / 480.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.149, allocations: 0 / 480.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00058/0.1496, allocations: 0.5229 MB / 481.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006209/0.1503, allocations: 93 kB / 481.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.1544, allocations: 3.49 MB / 484.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008561/0.1552, allocations: 1.311 MB / 486.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.1555, allocations: 55.44 kB / 486.3 MB, free: 8.285 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1555, allocations: 0 / 486.3 MB, free: 8.285 MB / 366.1 MB Notification: Performance of Templates: time 0.01557/0.171, allocations: 11.21 MB / 497.5 MB, free: 13.05 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)