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.004373/0.004373, allocations: 172 kB / 15.11 MB, free: 5.98 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.148/1.148, allocations: 223.2 MB / 239 MB, free: 68 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007992/0.0007993, allocations: 97.36 kB / 290.2 MB, free: 4.562 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1315/0.1315, allocations: 28.83 MB / 370.2 MB, free: 36 kB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003199, allocations: 12.33 kB / 438.1 MB, free: 88.29 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.07404, allocations: 57.49 MB / 495.6 MB, free: 31.73 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2497/0.3238, allocations: 80.91 MB / 0.563 GB, free: 11.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000164/0.324, allocations: 70.05 kB / 0.5631 GB, free: 11.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03104/0.3551, allocations: 14.46 MB / 0.5772 GB, free: 8.809 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3551, allocations: 0 / 0.5772 GB, free: 8.809 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001058/0.3552, allocations: 30.25 kB / 0.5772 GB, free: 8.809 MB / 378.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.002466/0.3577, allocations: 1.62 MB / 0.5788 GB, free: 7.617 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3577, allocations: 9.344 kB / 0.5788 GB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.358, allocations: 206.4 kB / 0.579 GB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009402/0.3589, allocations: 0.7722 MB / 0.5798 GB, free: 7.008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.359, allocations: 78.06 kB / 0.5798 GB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3591, allocations: 107.8 kB / 0.5799 GB, free: 7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3606, allocations: 1.283 MB / 0.5812 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3606, allocations: 0 / 0.5812 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.832e-05/0.3607, allocations: 40.34 kB / 0.5812 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.3607, allocations: 26.75 kB / 0.5813 GB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.3621, allocations: 1.272 MB / 0.5825 GB, free: 6.266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004046/0.3662, allocations: 3.872 MB / 0.5863 GB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.3679, allocations: 1.62 MB / 0.5879 GB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.67e-05/0.3679, allocations: 30.56 kB / 0.5879 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007181/0.3687, allocations: 0.6619 MB / 0.5885 GB, free: 3.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.266e-06/0.3687, allocations: 0 / 0.5885 GB, free: 3.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.002175/0.3708, allocations: 1.829 MB / 0.5903 GB, free: 3.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.3709, allocations: 66.75 kB / 0.5904 GB, free: 3.023 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.3719, allocations: 1.113 MB / 0.5915 GB, free: 2.688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.126e-05/0.372, allocations: 41.05 kB / 0.5915 GB, free: 2.656 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003972/0.3724, allocations: 0.765 MB / 0.5923 GB, free: 2.344 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3725, allocations: 249 kB / 0.5925 GB, free: 2.168 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.3726, allocations: 12.78 kB / 0.5925 GB, free: 2.168 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.288e-05/0.3727, allocations: 329.7 kB / 0.5928 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005527/0.3732, allocations: 0.516 MB / 0.5933 GB, free: 1.738 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000584/0.3738, allocations: 0.6341 MB / 0.5939 GB, free: 1.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.3744, allocations: 0.5552 MB / 0.5945 GB, free: 1.391 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.3744, allocations: 3.906 kB / 0.5945 GB, free: 1.391 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001448/0.3759, allocations: 1.403 MB / 0.5959 GB, free: 1.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3759, allocations: 7.406 kB / 0.5959 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3759, allocations: 0 / 0.5959 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3759, allocations: 7.75 kB / 0.5959 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004763/0.3764, allocations: 166.7 kB / 0.596 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3764, allocations: 7.312 kB / 0.596 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.3767, allocations: 57.48 kB / 0.5961 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.371e-05/0.3768, allocations: 79.52 kB / 0.5962 GB, free: 0.9453 MB / 378.7 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_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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004648/0.3773, allocations: 378.1 kB / 0.5965 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.3774, allocations: 142.9 kB / 0.5967 GB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.3794, allocations: 1.65 MB / 0.5983 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3795, allocations: 7.688 kB / 0.5983 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3795, allocations: 0 / 0.5983 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3795, allocations: 3.984 kB / 0.5983 GB, free: 296 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002869/0.3824, allocations: 2.624 MB / 0.6009 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3824, allocations: 0 / 0.6009 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.3829, allocations: 138.5 kB / 0.601 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.3829, allocations: 3.844 kB / 0.601 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.343e-05/0.3829, allocations: 33.36 kB / 0.601 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3829, allocations: 3.812 kB / 0.601 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.383, allocations: 0 / 0.601 GB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/0.3852, allocations: 2.259 MB / 0.6032 GB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/0.3857, allocations: 337.6 kB / 0.6036 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.3858, allocations: 12.91 kB / 0.6036 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3861, allocations: 13.53 kB / 0.6036 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3862, allocations: 55 kB / 0.6036 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.48e-05/0.3863, allocations: 72.78 kB / 0.6037 GB, free: 14.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008389/0.3871, allocations: 0.8865 MB / 0.6046 GB, free: 14.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.322e-06/0.3871, allocations: 0 / 0.6046 GB, free: 14.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000535/0.3877, allocations: 223.4 kB / 0.6048 GB, free: 14.2 MB / 394.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) * 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 (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.0001748/0.3879, allocations: 123.5 kB / 0.6049 GB, free: 14.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009493/0.3888, allocations: 1.023 MB / 0.6059 GB, free: 13.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3888, allocations: 3.875 kB / 0.6059 GB, free: 13.95 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.3893, allocations: 0.5241 MB / 0.6064 GB, free: 13.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.3897, allocations: 79.95 kB / 0.6065 GB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.3928, allocations: 3.241 MB / 0.6097 GB, free: 12.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.3935, allocations: 1.343 MB / 0.611 GB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.3937, allocations: 75.02 kB / 0.611 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3938, allocations: 49.2 kB / 0.6111 GB, free: 11.09 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3939, allocations: 0 / 0.6111 GB, free: 11.09 MB / 394.7 MB Notification: Performance of Templates: time 0.009401/0.4033, allocations: 4.824 MB / 0.6158 GB, free: 8.789 MB / 394.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)