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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002059/0.002059, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 221.5 MB / 229.6 MB, free: 7.605 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009047/0.000905, allocations: 91.56 kB / 280.5 MB, free: 5.355 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1981/0.1981, allocations: 28.84 MB / 360.1 MB, free: 2.238 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.76e-05/1.758e-05, allocations: 0 / 423.9 MB, free: 32.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1259, allocations: 57.49 MB / 481.4 MB, free: 6.758 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4871/0.613, allocations: 80.19 MB / 0.5484 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.6132, allocations: 58.47 kB / 0.5484 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03146/0.6447, allocations: 14.33 MB / 0.5624 GB, free: 6.246 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6448, allocations: 0 / 0.5624 GB, free: 6.246 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.801e-05/0.6448, allocations: 34 kB / 0.5625 GB, free: 6.242 MB / 362.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.00158/0.6464, allocations: 1.395 MB / 0.5638 GB, free: 5.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.6465, allocations: 15.67 kB / 0.5638 GB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.6467, allocations: 201.7 kB / 0.564 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.6476, allocations: 0.7655 MB / 0.5648 GB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/0.6476, allocations: 34.72 kB / 0.5648 GB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.6478, allocations: 65.86 kB / 0.5649 GB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001471/0.6492, allocations: 1.183 MB / 0.566 GB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.6507, allocations: 1.117 MB / 0.5671 GB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.6507, allocations: 0 / 0.5671 GB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.6508, allocations: 3.984 kB / 0.5671 GB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.6508, allocations: 26.91 kB / 0.5672 GB, free: 4.035 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004365/0.6552, allocations: 3.684 MB / 0.5708 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.6569, allocations: 1.549 MB / 0.5723 GB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.6575, allocations: 0.531 MB / 0.5728 GB, free: 1.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.991e-05/0.6576, allocations: 35.61 kB / 0.5728 GB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007718/0.6584, allocations: 0.6337 MB / 0.5734 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 3.066e-06/0.6584, allocations: 0 / 0.5734 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.001876/0.6603, allocations: 1.291 MB / 0.5747 GB, free: 15.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.6603, allocations: 60.19 kB / 0.5748 GB, free: 15.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.6615, allocations: 1.008 MB / 0.5757 GB, free: 15.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/0.6616, allocations: 29.7 kB / 0.5758 GB, free: 15.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005935/0.6622, allocations: 0.7579 MB / 0.5765 GB, free: 14.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.6624, allocations: 239.5 kB / 0.5767 GB, free: 14.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/0.6625, allocations: 0 / 0.5767 GB, free: 14.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.6626, allocations: 328.5 kB / 0.577 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006465/0.6633, allocations: 0.4949 MB / 0.5775 GB, free: 13.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000693/0.664, allocations: 0.6031 MB / 0.5781 GB, free: 13.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009799/0.665, allocations: 0.5567 MB / 0.5787 GB, free: 12.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.665, allocations: 0 / 0.5787 GB, free: 12.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001996/0.667, allocations: 1.349 MB / 0.58 GB, free: 11.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.667, allocations: 12.3 kB / 0.58 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.6671, allocations: 12 kB / 0.58 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.6671, allocations: 7.938 kB / 0.58 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/0.6677, allocations: 167.5 kB / 0.5802 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.6677, allocations: 8 kB / 0.5802 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.668, allocations: 39.42 kB / 0.5802 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/0.6682, allocations: 75.42 kB / 0.5803 GB, free: 11.42 MB / 378.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.000248/0.6684, allocations: 130.5 kB / 0.5804 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001854/0.6703, allocations: 1.288 MB / 0.5817 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.6705, allocations: 142.2 kB / 0.5818 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/0.6733, allocations: 1.598 MB / 0.5834 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.6733, allocations: 8 kB / 0.5834 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.6733, allocations: 7.969 kB / 0.5834 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.6733, allocations: 0 / 0.5834 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/0.6768, allocations: 2.453 MB / 0.5858 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.6768, allocations: 3.938 kB / 0.5858 GB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005843/0.6774, allocations: 138.9 kB / 0.5859 GB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.6774, allocations: 4 kB / 0.5859 GB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.557e-05/0.6775, allocations: 19.48 kB / 0.5859 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.6775, allocations: 4 kB / 0.5859 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6775, allocations: 0 / 0.5859 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.6805, allocations: 2.218 MB / 0.5881 GB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.681, allocations: 335.2 kB / 0.5884 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001155/0.6811, allocations: 3.984 kB / 0.5884 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.6813, allocations: 3.062 kB / 0.5884 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.6815, allocations: 52.16 kB / 0.5885 GB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/0.6816, allocations: 72.59 kB / 0.5886 GB, free: 4.633 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00097/0.6826, allocations: 0.7878 MB / 0.5893 GB, free: 4.043 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6826, allocations: 0 / 0.5893 GB, free: 4.043 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006859/0.6833, allocations: 198.8 kB / 0.5895 GB, free: 3.848 MB / 378.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.00253/0.6858, allocations: 2.452 MB / 0.5919 GB, free: 1.734 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001165/0.687, allocations: 0.9646 MB / 0.5928 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.687, allocations: 0 / 0.5928 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.6875, allocations: 0.5061 MB / 0.5933 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.688, allocations: 61.84 kB / 0.5934 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.692, allocations: 2.431 MB / 0.5958 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000987/0.693, allocations: 1.344 MB / 0.5971 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002499/0.6933, allocations: 76.41 kB / 0.5972 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.6939, allocations: 0.5926 MB / 0.5977 GB, free: 12.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6939, allocations: 0 / 0.5977 GB, free: 12.31 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04489/0.7388, allocations: 16.63 MB / 0.614 GB, free: 11.68 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.7391, allocations: 136.5 kB / 0.6141 GB, free: 11.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/3.371, allocations: 0 / 0.6141 GB, free: 11.48 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)