Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path") translateModel(AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07773/0.07773, allocations: 17.69 MB / 33.63 MB, free: 1.703 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.00105, allocations: 178.8 kB / 38.92 MB, free: 0 / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.4 MB / 249.5 MB, free: 2.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008127/0.0008128, allocations: 97.36 kB / 302.2 MB, free: 4.406 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004143/0.0004145, allocations: 12 kB / 366.9 MB, free: 3.605 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2746, allocations: 51.98 MB / 418.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.3884, allocations: 79.24 MB / 498.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.3887, allocations: 71.95 kB / 498.2 MB, free: 8.953 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01969/0.4084, allocations: 6.402 MB / 0.4928 GB, free: 2.543 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4084, allocations: 7.875 kB / 0.4928 GB, free: 2.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.1e-05/0.4085, allocations: 12 kB / 0.4928 GB, free: 2.523 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00153/0.41, allocations: 0.7401 MB / 0.4935 GB, free: 1.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.4101, allocations: 8.031 kB / 0.4936 GB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.88e-05/0.4102, allocations: 40.47 kB / 0.4936 GB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.4112, allocations: 494.3 kB / 0.4941 GB, free: 1.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.4112, allocations: 12.81 kB / 0.4941 GB, free: 1.148 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.4113, allocations: 24.31 kB / 0.4941 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005549/0.4118, allocations: 295 kB / 0.4944 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.4119, allocations: 0 / 0.4944 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.4119, allocations: 8 kB / 0.4944 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.4119, allocations: 4 kB / 0.4944 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.4125, allocations: 269.6 kB / 0.4946 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2278/0.6404, allocations: 0.827 MB / 0.4955 GB, free: 80.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.6417, allocations: 419.4 kB / 0.4959 GB, free: 80.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.642, allocations: 139.7 kB / 0.496 GB, free: 80.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.642, allocations: 7.109 kB / 0.496 GB, free: 80.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.6421, allocations: 32.31 kB / 0.496 GB, free: 80.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.6421, allocations: 3.812 kB / 0.496 GB, free: 80.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.003017/0.6451, allocations: 1.075 MB / 0.4971 GB, free: 80.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.6452, allocations: 106.1 kB / 0.4972 GB, free: 80.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.6462, allocations: 452.1 kB / 0.4976 GB, free: 80.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.6462, allocations: 30.27 kB / 0.4976 GB, free: 80.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.6464, allocations: 191.8 kB / 0.4978 GB, free: 80.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.6465, allocations: 87.06 kB / 0.4979 GB, free: 80.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.412e-05/0.6465, allocations: 4.625 kB / 0.4979 GB, free: 80.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.6467, allocations: 346.8 kB / 0.4982 GB, free: 79.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.647, allocations: 123.5 kB / 0.4984 GB, free: 79.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.6473, allocations: 154.4 kB / 0.4985 GB, free: 79.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.6495, allocations: 0.6454 MB / 0.4991 GB, free: 79.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.6495, allocations: 1.25 kB / 0.4991 GB, free: 79.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001564/0.6511, allocations: 0.6185 MB / 0.4997 GB, free: 79.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-05/0.6512, allocations: 98.09 kB / 0.4998 GB, free: 79.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.6512, allocations: 1.188 kB / 0.4998 GB, free: 79.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006778/0.6519, allocations: 182 kB / 0.5 GB, free: 79.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.6521, allocations: 33.81 kB / 0.5 GB, free: 79.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004253/0.6563, allocations: 3.524 MB / 0.5035 GB, free: 76.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007246/0.6571, allocations: 82.14 kB / 0.5036 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.6571, allocations: 4.781 kB / 0.5036 GB, free: 76.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.6572, allocations: 3.844 kB / 0.5036 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007377/0.6579, allocations: 347.4 kB / 0.5039 GB, free: 76.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.6579, allocations: 1.969 kB / 0.5039 GB, free: 76.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.6582, allocations: 115.5 kB / 0.504 GB, free: 76.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.6584, allocations: 27.95 kB / 0.504 GB, free: 76.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.6613, allocations: 3.282 MB / 0.5072 GB, free: 73.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005663/0.6619, allocations: 73.91 kB / 0.5073 GB, free: 73.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.6619, allocations: 8.719 kB / 0.5073 GB, free: 73.5 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: P_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] sens_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] sens_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003674/0.6623, allocations: 235.3 kB / 0.5076 GB, free: 73.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.289e-05/0.6624, allocations: 40 kB / 0.5076 GB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.204e-05/0.6625, allocations: 44.52 kB / 0.5076 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.6625, allocations: 2.688 kB / 0.5076 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6625, allocations: 1.062 kB / 0.5076 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.6625, allocations: 3.938 kB / 0.5076 GB, free: 73.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005652/0.6631, allocations: 395.8 kB / 0.508 GB, free: 72.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.6631, allocations: 7.938 kB / 0.508 GB, free: 72.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.6633, allocations: 17.97 kB / 0.508 GB, free: 72.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005137/0.6638, allocations: 193.6 kB / 0.5082 GB, free: 72.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.6638, allocations: 6.188 kB / 0.5082 GB, free: 72.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.6667, allocations: 3.494 MB / 0.5116 GB, free: 69.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6668, allocations: 2.625 kB / 0.5116 GB, free: 69.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.668, allocations: 0.7747 MB / 0.5124 GB, free: 69.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.76e-05/0.6681, allocations: 117.2 kB / 0.5125 GB, free: 69.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.6681, allocations: 11.38 kB / 0.5125 GB, free: 69.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.6685, allocations: 70.77 kB / 0.5126 GB, free: 69.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/0.6686, allocations: 22.22 kB / 0.5126 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.6686, allocations: 6.781 kB / 0.5126 GB, free: 69.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006787/0.6693, allocations: 350.7 kB / 0.513 GB, free: 69.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6693, allocations: 0 / 0.513 GB, free: 69.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.67, allocations: 136.3 kB / 0.5131 GB, free: 69.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P_tforP.x_scaled[1],sens_tforP.x_scaled[1],P_tforS.x_scaled[1],sens_tforS.x_scaled[1],PI_tuned_for_process.FO.y,PI_tuned_for_sensor.FO.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 (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001436/0.6701, allocations: 114.8 kB / 0.5132 GB, free: 69.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.6713, allocations: 0.94 MB / 0.5141 GB, free: 68.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6713, allocations: 3.25 kB / 0.5141 GB, free: 68.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.6718, allocations: 428.5 kB / 0.5145 GB, free: 68.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.6722, allocations: 57.28 kB / 0.5146 GB, free: 68.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.6734, allocations: 0.8436 MB / 0.5154 GB, free: 67.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.6736, allocations: 0.8143 MB / 0.5162 GB, free: 67.13 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.6738, allocations: 70.47 kB / 0.5163 GB, free: 67.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.414e-05/0.6739, allocations: 29.67 kB / 0.5163 GB, free: 67.12 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.6739, allocations: 0 / 0.5163 GB, free: 67.12 MB / 362.7 MB Notification: Performance of Templates: time 0.009232/0.6831, allocations: 5.933 MB / 0.5221 GB, free: 62.19 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.sim & ./AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Main_dynamics_in_FB_path.pipe 2>&1)