Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009835/0.0009832, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.17/1.17, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000833/0.0008331, allocations: 91.39 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3066/0.3066, allocations: 28.82 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.603e-05/2.605e-05, allocations: 4 kB / 430.7 MB, free: 4.41 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 57.48 MB / 488.1 MB, free: 10.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3149/0.4157, allocations: 80.21 MB / 0.555 GB, free: 24.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.4159, allocations: 67.22 kB / 0.5551 GB, free: 24.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02798/0.4439, allocations: 12.3 MB / 0.5671 GB, free: 17.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.444, allocations: 3.062 kB / 0.5671 GB, free: 17.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.525e-05/0.444, allocations: 28 kB / 0.5671 GB, free: 17.76 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001444/0.4454, allocations: 1.358 MB / 0.5685 GB, free: 16.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.4455, allocations: 12.03 kB / 0.5685 GB, free: 16.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.4457, allocations: 189.5 kB / 0.5686 GB, free: 16.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.4461, allocations: 0.4996 MB / 0.5691 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.4461, allocations: 78.25 kB / 0.5692 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.4463, allocations: 96.38 kB / 0.5693 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.4477, allocations: 1.135 MB / 0.5704 GB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.4477, allocations: 7.984 kB / 0.5704 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.596e-05/0.4478, allocations: 39 kB / 0.5705 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.612e-05/0.4479, allocations: 50.12 kB / 0.5705 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.4494, allocations: 1.308 MB / 0.5718 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003774/0.4532, allocations: 3.04 MB / 0.5748 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.4544, allocations: 1.102 MB / 0.5758 GB, free: 10.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.455, allocations: 0.5417 MB / 0.5764 GB, free: 10.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.121e-05/0.4551, allocations: 28.69 kB / 0.5764 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.4551, allocations: 45.86 kB / 0.5764 GB, free: 9.953 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.404e-06/0.4551, allocations: 0 / 0.5764 GB, free: 9.953 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.001395/0.4565, allocations: 1.257 MB / 0.5777 GB, free: 8.941 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.4565, allocations: 59.97 kB / 0.5777 GB, free: 8.871 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009413/0.4575, allocations: 1.07 MB / 0.5788 GB, free: 8.016 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.146e-05/0.4575, allocations: 32.39 kB / 0.5788 GB, free: 7.984 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003569/0.4579, allocations: 0.7814 MB / 0.5796 GB, free: 7.531 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.458, allocations: 232.5 kB / 0.5798 GB, free: 7.332 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.486e-05/0.4581, allocations: 14.25 kB / 0.5798 GB, free: 7.328 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.4581, allocations: 335.7 kB / 0.5801 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005625/0.4587, allocations: 0.5048 MB / 0.5806 GB, free: 6.625 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006165/0.4593, allocations: 0.6956 MB / 0.5813 GB, free: 5.996 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006261/0.46, allocations: 0.5699 MB / 0.5818 GB, free: 5.559 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.46, allocations: 0 / 0.5818 GB, free: 5.559 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001522/0.4615, allocations: 1.446 MB / 0.5832 GB, free: 4.391 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4615, allocations: 8 kB / 0.5833 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.4615, allocations: 11.94 kB / 0.5833 GB, free: 4.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.4616, allocations: 8 kB / 0.5833 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/0.4622, allocations: 214.9 kB / 0.5835 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.4622, allocations: 19.88 kB / 0.5835 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.4625, allocations: 82.2 kB / 0.5836 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.4626, allocations: 91.94 kB / 0.5837 GB, free: 3.992 MB / 394.7 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.4628, allocations: 157.8 kB / 0.5838 GB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.463, allocations: 134.2 kB / 0.5839 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/0.465, allocations: 1.596 MB / 0.5855 GB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.4651, allocations: 8 kB / 0.5855 GB, free: 2.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4651, allocations: 9.516 kB / 0.5855 GB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4651, allocations: 7.938 kB / 0.5855 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00257/0.4677, allocations: 2.485 MB / 0.588 GB, free: 488 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4677, allocations: 0 / 0.588 GB, free: 488 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/0.4682, allocations: 158.5 kB / 0.5881 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.4682, allocations: 4 kB / 0.5881 GB, free: 332 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.4683, allocations: 26.8 kB / 0.5881 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.4683, allocations: 4 kB / 0.5881 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4683, allocations: 3.953 kB / 0.5881 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.4708, allocations: 2.18 MB / 0.5903 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.471, allocations: 191.2 kB / 0.5905 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.4711, allocations: 11.81 kB / 0.5905 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.4714, allocations: 34.16 kB / 0.5905 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.4716, allocations: 59.02 kB / 0.5906 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.4717, allocations: 78.66 kB / 0.5906 GB, free: 14.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000984/0.4727, allocations: 0.8443 MB / 0.5915 GB, free: 13.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4727, allocations: 0 / 0.5915 GB, free: 13.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006018/0.4733, allocations: 218.5 kB / 0.5917 GB, free: 13.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00018/0.4735, allocations: 121.3 kB / 0.5918 GB, free: 13.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4746, allocations: 1.017 MB / 0.5928 GB, free: 12.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4746, allocations: 0 / 0.5928 GB, free: 12.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004901/0.4751, allocations: 0.5086 MB / 0.5933 GB, free: 12.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.4754, allocations: 53.28 kB / 0.5933 GB, free: 12.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.4782, allocations: 2.136 MB / 0.5954 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008163/0.4791, allocations: 1.335 MB / 0.5967 GB, free: 8.77 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003739/0.4795, allocations: 116.5 kB / 0.5968 GB, free: 8.656 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.4796, allocations: 54.86 kB / 0.5969 GB, free: 8.605 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4796, allocations: 4 kB / 0.5969 GB, free: 8.602 MB / 410.7 MB Notification: Performance of Templates: time 0.0101/0.4897, allocations: 4.61 MB / 0.6014 GB, free: 4.043 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)