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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 174.6 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.186/1.186, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.000841/0.0008412, allocations: 92.95 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2951/0.2951, allocations: 28.82 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.617e-05/2.62e-05, allocations: 8 kB / 430.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1, allocations: 57.47 MB / 488.1 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3189/0.419, allocations: 80.86 MB / 0.5557 GB, free: 24.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4193, allocations: 56.98 kB / 0.5557 GB, free: 24.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03265/0.4519, allocations: 14.44 MB / 0.5698 GB, free: 15.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.452, allocations: 1.031 kB / 0.5698 GB, free: 15.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.291e-05/0.452, allocations: 28 kB / 0.5698 GB, free: 15.44 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001417/0.4535, allocations: 1.399 MB / 0.5712 GB, free: 14.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4535, allocations: 8.031 kB / 0.5712 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.4537, allocations: 201.5 kB / 0.5714 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008323/0.4545, allocations: 0.7659 MB / 0.5722 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.649e-05/0.4546, allocations: 77.28 kB / 0.5722 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.4547, allocations: 116.7 kB / 0.5723 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.4563, allocations: 1.266 MB / 0.5736 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.4563, allocations: 4 kB / 0.5736 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.4564, allocations: 39.25 kB / 0.5736 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.4564, allocations: 25.12 kB / 0.5736 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.4579, allocations: 1.247 MB / 0.5749 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004149/0.462, allocations: 3.865 MB / 0.5786 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.4638, allocations: 1.593 MB / 0.5802 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005812/0.4644, allocations: 0.5593 MB / 0.5807 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.89e-05/0.4645, allocations: 24.98 kB / 0.5808 GB, free: 6.133 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007336/0.4653, allocations: 0.6609 MB / 0.5814 GB, free: 5.609 MB / 394.7 MB Notification: Performance of pre-optimization done (n=72): time 2.665e-06/0.4653, allocations: 0 / 0.5814 GB, free: 5.609 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.001478/0.4668, allocations: 1.31 MB / 0.5827 GB, free: 4.566 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.4668, allocations: 60.19 kB / 0.5827 GB, free: 4.492 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.4678, allocations: 1.1 MB / 0.5838 GB, free: 3.621 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.4679, allocations: 40.33 kB / 0.5839 GB, free: 3.586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003776/0.4683, allocations: 0.769 MB / 0.5846 GB, free: 3.172 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.4684, allocations: 243 kB / 0.5848 GB, free: 2.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.4685, allocations: 11.69 kB / 0.5848 GB, free: 2.961 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.4685, allocations: 334.5 kB / 0.5852 GB, free: 2.641 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005679/0.4691, allocations: 0.5065 MB / 0.5857 GB, free: 2.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005939/0.4697, allocations: 0.6181 MB / 0.5863 GB, free: 1.754 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.4703, allocations: 0.5497 MB / 0.5868 GB, free: 1.348 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4704, allocations: 4 kB / 0.5868 GB, free: 1.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001529/0.4719, allocations: 1.394 MB / 0.5882 GB, free: 236 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.4719, allocations: 8 kB / 0.5882 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.4719, allocations: 0 / 0.5882 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.472, allocations: 11.98 kB / 0.5882 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.4725, allocations: 155.4 kB / 0.5883 GB, free: 64 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.4725, allocations: 17.81 kB / 0.5884 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.4728, allocations: 58.44 kB / 0.5884 GB, free: 0 / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.4729, allocations: 71.23 kB / 0.5885 GB, free: 15.94 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = false ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = false ) "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_dPop,min_dPop,$PRE.min_QL,min_QL,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.4731, allocations: 155.1 kB / 0.5886 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.4733, allocations: 146.1 kB / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.4758, allocations: 1.641 MB / 0.5904 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.4758, allocations: 11.98 kB / 0.5904 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4758, allocations: 4 kB / 0.5904 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.4759, allocations: 3.984 kB / 0.5904 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003373/0.4792, allocations: 2.591 MB / 0.5929 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4793, allocations: 0 / 0.5929 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005654/0.4798, allocations: 143.1 kB / 0.593 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.4799, allocations: 0 / 0.593 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.4799, allocations: 26.73 kB / 0.5931 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.4799, allocations: 4 kB / 0.5931 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4799, allocations: 0 / 0.5931 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.4828, allocations: 2.259 MB / 0.5953 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004902/0.4833, allocations: 333.7 kB / 0.5956 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.4834, allocations: 15.25 kB / 0.5956 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.4837, allocations: 14.5 kB / 0.5956 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.4839, allocations: 56.33 kB / 0.5957 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.484, allocations: 71.47 kB / 0.5958 GB, free: 10 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001192/0.4852, allocations: 0.8693 MB / 0.5966 GB, free: 9.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4852, allocations: 8 kB / 0.5966 GB, free: 9.332 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006409/0.4858, allocations: 215.8 kB / 0.5968 GB, free: 9.141 MB / 410.7 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) * 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 (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.0002321/0.4861, allocations: 125.6 kB / 0.5969 GB, free: 9.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.4873, allocations: 1.004 MB / 0.5979 GB, free: 8.215 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4873, allocations: 0 / 0.5979 GB, free: 8.215 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.4879, allocations: 0.5154 MB / 0.5984 GB, free: 7.809 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004842/0.4884, allocations: 77.58 kB / 0.5985 GB, free: 7.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.4918, allocations: 2.163 MB / 0.6006 GB, free: 5.805 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008993/0.4928, allocations: 1.348 MB / 0.6019 GB, free: 4.473 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002593/0.493, allocations: 76.67 kB / 0.602 GB, free: 4.398 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.4931, allocations: 47.42 kB / 0.602 GB, free: 4.352 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4932, allocations: 0 / 0.602 GB, free: 4.352 MB / 410.7 MB Notification: Performance of Templates: time 0.01144/0.5046, allocations: 4.83 MB / 0.6068 GB, free: 15.57 MB / 426.7 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)