Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00916/0.00916, allocations: 98.36 kB / 15.73 MB, free: 6.055 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.001564/0.001564, allocations: 193.3 kB / 16.68 MB, free: 5.969 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.4/1.4, allocations: 222.9 MB / 240.4 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.2178/0.2178, allocations: 28.77 MB / 319.3 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 59.91 kB / 444.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1296, allocations: 56.41 MB / 0.489 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005163/0.1348, allocations: 3.669 MB / 0.4926 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1369, allocations: 0.6896 MB / 0.4933 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007542/0.1377, allocations: 19.94 kB / 0.4933 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006741/0.1383, allocations: 170.3 kB / 0.4934 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007414/0.1391, allocations: 146.7 kB / 0.4936 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00092/0.14, allocations: 359.6 kB / 0.4939 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000916/0.141, allocations: 0.8601 MB / 0.4948 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007772/0.1418, allocations: 0.6442 MB / 0.4954 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.142, allocations: 338.5 kB / 0.4957 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003316/0.1424, allocations: 421.6 kB / 0.4961 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.1425, allocations: 84 kB / 0.4962 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002033/0.1427, allocations: 123.9 kB / 0.4963 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003649/0.1431, allocations: 450.4 kB / 0.4968 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004317/0.1435, allocations: 0.628 MB / 0.4974 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.1449, allocations: 1.297 MB / 0.4986 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1449, allocations: 0 / 0.4986 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1449, allocations: 0 / 0.4986 GB, free: 132 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.1449, allocations: 0 / 0.4986 GB, free: 132 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002305/0.1473, allocations: 1.892 MB / 0.5005 GB, free: 14.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.1473, allocations: 8.031 kB / 0.5005 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.1476, allocations: 215.5 kB / 0.5007 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.1486, allocations: 0.7756 MB / 0.5015 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.001e-05/0.1487, allocations: 78.48 kB / 0.5015 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.1488, allocations: 108.3 kB / 0.5016 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.1506, allocations: 1.282 MB / 0.5029 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/0.1506, allocations: 4.125 kB / 0.5029 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.1507, allocations: 43.94 kB / 0.5029 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-05/0.1508, allocations: 51.98 kB / 0.503 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.1524, allocations: 1.226 MB / 0.5042 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004626/0.157, allocations: 3.887 MB / 0.508 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.1587, allocations: 1.369 MB / 0.5093 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005755/0.1593, allocations: 499.2 kB / 0.5098 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.508e-05/0.1594, allocations: 32.48 kB / 0.5098 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1594, allocations: 43.06 kB / 0.5099 GB, free: 4.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.435e-06/0.1594, allocations: 4 kB / 0.5099 GB, free: 4.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002048/0.1615, allocations: 1.568 MB / 0.5114 GB, free: 2.711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.1616, allocations: 85.67 kB / 0.5115 GB, free: 2.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.1631, allocations: 1.366 MB / 0.5128 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1631, allocations: 33.83 kB / 0.5128 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006897/0.1638, allocations: 0.8619 MB / 0.5137 GB, free: 332 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.164, allocations: 261.8 kB / 0.5139 GB, free: 68 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.3038/0.4678, allocations: 150.9 kB / 0.5141 GB, free: 27.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.468, allocations: 339.6 kB / 0.5144 GB, free: 27.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008064/0.4688, allocations: 475.2 kB / 0.5148 GB, free: 27.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007164/0.4695, allocations: 0.7181 MB / 0.5156 GB, free: 26.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.4707, allocations: 1.234 MB / 0.5168 GB, free: 26.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.4707, allocations: 1.938 kB / 0.5168 GB, free: 26.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001778/0.4725, allocations: 1.393 MB / 0.5181 GB, free: 26.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.4725, allocations: 7.594 kB / 0.5181 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4725, allocations: 7.938 kB / 0.5181 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.4726, allocations: 12.69 kB / 0.5181 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/0.4731, allocations: 187.5 kB / 0.5183 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-05/0.4732, allocations: 21.14 kB / 0.5183 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003603/0.4735, allocations: 93.16 kB / 0.5184 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.028e-05/0.4736, allocations: 41.72 kB / 0.5185 GB, free: 26.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0004804/0.4741, allocations: 402.3 kB / 0.5189 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.4743, allocations: 155.7 kB / 0.519 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.4758, allocations: 1.246 MB / 0.5202 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.4759, allocations: 7.25 kB / 0.5202 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4759, allocations: 4.875 kB / 0.5202 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4759, allocations: 8.578 kB / 0.5202 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004284/0.4802, allocations: 2.393 MB / 0.5226 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.4802, allocations: 1.312 kB / 0.5226 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007219/0.4809, allocations: 122.6 kB / 0.5227 GB, free: 26.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.481, allocations: 7.297 kB / 0.5227 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.481, allocations: 23.11 kB / 0.5227 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.481, allocations: 2.562 kB / 0.5227 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4811, allocations: 1.344 kB / 0.5227 GB, free: 26.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00323/0.4843, allocations: 1.985 MB / 0.5247 GB, free: 25.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.4846, allocations: 216.1 kB / 0.5249 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.4847, allocations: 15.41 kB / 0.5249 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/0.4852, allocations: 19.53 kB / 0.5249 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.4854, allocations: 49.8 kB / 0.525 GB, free: 25.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.401e-05/0.4855, allocations: 23.48 kB / 0.525 GB, free: 25.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002166/0.4877, allocations: 0.9365 MB / 0.5259 GB, free: 25.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4877, allocations: 0 / 0.5259 GB, free: 25.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001359/0.4891, allocations: 225.5 kB / 0.5261 GB, free: 25.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002365/0.4893, allocations: 121.3 kB / 0.5262 GB, free: 25.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002461/0.4918, allocations: 1.089 MB / 0.5273 GB, free: 24.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4918, allocations: 1.531 kB / 0.5273 GB, free: 24.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.493, allocations: 0.5201 MB / 0.5278 GB, free: 24.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.4942, allocations: 100.9 kB / 0.5279 GB, free: 24.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005946/0.5002, allocations: 2.916 MB / 0.5307 GB, free: 23.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.5016, allocations: 1.331 MB / 0.532 GB, free: 22.6 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006412/0.5023, allocations: 132.9 kB / 0.5322 GB, free: 22.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.5025, allocations: 56.61 kB / 0.5322 GB, free: 22.55 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5025, allocations: 5.094 kB / 0.5322 GB, free: 22.55 MB / 398.1 MB Notification: Performance of Templates: time 0.0218/0.5243, allocations: 5.772 MB / 0.5379 GB, free: 21.67 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)