Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.conf.json 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/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 106.1 kB / 16.41 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 185.7 kB / 17.34 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09282/0.09282, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 67.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09548, allocations: 54.95 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003298/0.09882, allocations: 2.008 MB / 494.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.1016, allocations: 1.806 MB / 496.5 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003832/0.102, allocations: 11.94 kB / 496.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006159/0.1027, allocations: 166.8 kB / 496.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00065/0.1034, allocations: 215 kB / 496.9 MB, free: 0.5273 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0006314/0.104, allocations: 383.5 kB / 497.2 MB, free: 156 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009524/0.105, allocations: 1.058 MB / 498.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.1052, allocations: 166.1 kB / 498.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004358/0.1057, allocations: 410.6 kB / 498.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004331/0.1061, allocations: 406.2 kB / 499.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.262e-05/0.1062, allocations: 64 kB / 499.3 MB, free: 14.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.1064, allocations: 87.97 kB / 499.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1066, allocations: 239.3 kB / 499.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.1069, allocations: 306.1 kB / 499.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006553/0.1075, allocations: 0.7241 MB / 0.4889 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1076, allocations: 0 / 0.4889 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1076, allocations: 4 kB / 0.4889 GB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.1076, allocations: 0 / 0.4889 GB, free: 12.71 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002925/0.1105, allocations: 1.211 MB / 0.4901 GB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1106, allocations: 12.03 kB / 0.4901 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.1107, allocations: 76 kB / 0.4902 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.1123, allocations: 0.7258 MB / 0.4909 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.1124, allocations: 37.31 kB / 0.4909 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.068e-05/0.1125, allocations: 44.38 kB / 0.491 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.1132, allocations: 456.9 kB / 0.4914 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.1132, allocations: 0 / 0.4914 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.1132, allocations: 16 kB / 0.4914 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1132, allocations: 8 kB / 0.4914 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007272/0.114, allocations: 427.7 kB / 0.4918 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.1162, allocations: 1.621 MB / 0.4934 GB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007044/0.1169, allocations: 480.1 kB / 0.4939 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.1173, allocations: 205.5 kB / 0.4941 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.1173, allocations: 4 kB / 0.4941 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.1174, allocations: 34.56 kB / 0.4941 GB, free: 7.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.224e-06/0.1174, allocations: 4 kB / 0.4941 GB, free: 7.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00108/0.1185, allocations: 0.6262 MB / 0.4947 GB, free: 6.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.1185, allocations: 59.34 kB / 0.4948 GB, free: 6.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/0.1202, allocations: 0.8747 MB / 0.4956 GB, free: 5.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.1202, allocations: 41.64 kB / 0.4957 GB, free: 5.555 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.1204, allocations: 296.4 kB / 0.496 GB, free: 5.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.1206, allocations: 161.7 kB / 0.4961 GB, free: 5.098 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.1208, allocations: 142.5 kB / 0.4963 GB, free: 4.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1209, allocations: 378.7 kB / 0.4966 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008089/0.1217, allocations: 297.8 kB / 0.4969 GB, free: 4.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007309/0.1225, allocations: 413.6 kB / 0.4973 GB, free: 3.832 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/0.1269, allocations: 1.682 MB / 0.4989 GB, free: 2.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1269, allocations: 0 / 0.4989 GB, free: 2.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001597/0.1286, allocations: 0.8321 MB / 0.4997 GB, free: 1.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1286, allocations: 11.94 kB / 0.4998 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1286, allocations: 0 / 0.4998 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.1286, allocations: 8 kB / 0.4998 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009065/0.1295, allocations: 195.8 kB / 0.5 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.1296, allocations: 8 kB / 0.5 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009381/0.1305, allocations: 175.5 kB / 0.5001 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/0.1306, allocations: 23.94 kB / 0.5001 GB, free: 0.8242 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003523/0.1309, allocations: 245.5 kB / 0.5004 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.131, allocations: 63.16 kB / 0.5004 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2262/0.3572, allocations: 0.5238 MB / 0.501 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.3573, allocations: 5.25 kB / 0.501 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.3573, allocations: 0 / 0.501 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.3574, allocations: 6.094 kB / 0.501 GB, free: 22.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.3585, allocations: 0.5939 MB / 0.5015 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.3586, allocations: 0 / 0.5015 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006644/0.3592, allocations: 93.52 kB / 0.5016 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.3593, allocations: 2.938 kB / 0.5016 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.2e-05/0.3593, allocations: 15.86 kB / 0.5017 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.3594, allocations: 1.75 kB / 0.5017 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3594, allocations: 4.656 kB / 0.5017 GB, free: 22.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.3608, allocations: 0.8313 MB / 0.5025 GB, free: 22.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/0.361, allocations: 157.5 kB / 0.5026 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.3612, allocations: 13.64 kB / 0.5026 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000739/0.3619, allocations: 91.66 kB / 0.5027 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.362, allocations: 27.88 kB / 0.5027 GB, free: 22.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.3621, allocations: 13.62 kB / 0.5028 GB, free: 22.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001475/0.3635, allocations: 0.6496 MB / 0.5034 GB, free: 22.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3636, allocations: 4.359 kB / 0.5034 GB, free: 22.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.3641, allocations: 123.7 kB / 0.5035 GB, free: 22.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001643/0.3643, allocations: 124.6 kB / 0.5036 GB, free: 21.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.3656, allocations: 0.5914 MB / 0.5042 GB, free: 21.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3656, allocations: 2.25 kB / 0.5042 GB, free: 21.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.3659, allocations: 232.8 kB / 0.5044 GB, free: 21.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006247/0.3665, allocations: 94.34 kB / 0.5045 GB, free: 21.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.3686, allocations: 1.355 MB / 0.5059 GB, free: 21.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.369, allocations: 0.9489 MB / 0.5068 GB, free: 20.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.3693, allocations: 53.45 kB / 0.5068 GB, free: 20.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3693, allocations: 0 / 0.5068 GB, free: 20.66 MB / 382.1 MB Notification: Performance of Templates: time 0.01731/0.3866, allocations: 8.292 MB / 0.5149 GB, free: 19.29 MB / 382.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)