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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007356/0.007356, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001846/0.001846, allocations: 201.5 kB / 16.68 MB, free: 5.93 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09798/0.09798, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001859, allocations: 59.84 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1036, allocations: 54.96 MB / 491.5 MB, free: 5.258 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003239/0.1068, allocations: 1.991 MB / 493.5 MB, free: 3.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002743/0.1096, allocations: 1.809 MB / 495.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.1099, allocations: 4 kB / 495.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005056/0.1104, allocations: 162.8 kB / 495.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005731/0.111, allocations: 230.9 kB / 495.7 MB, free: 1.039 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.0006469/0.1116, allocations: 375.4 kB / 496.1 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.1128, allocations: 1.074 MB / 497.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.1131, allocations: 158.1 kB / 497.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005193/0.1136, allocations: 406.6 kB / 497.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005343/0.1142, allocations: 402.3 kB / 498.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.1143, allocations: 64 kB / 498.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001889/0.1145, allocations: 107.9 kB / 498.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002704/0.1148, allocations: 231.3 kB / 498.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000298/0.1151, allocations: 306.1 kB / 498.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008386/0.1159, allocations: 0.7391 MB / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1159, allocations: 3.938 kB / 499.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1159, allocations: 0 / 499.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.116, allocations: 0 / 499.5 MB, free: 13.2 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.003213/0.1192, allocations: 1.246 MB / 0.489 GB, free: 11.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1192, allocations: 8.031 kB / 0.489 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.113e-05/0.1193, allocations: 74.7 kB / 0.4891 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.1195, allocations: 84.36 kB / 0.4892 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.1212, allocations: 0.7653 MB / 0.4899 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/0.1213, allocations: 29.38 kB / 0.4899 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.933e-05/0.1213, allocations: 52.27 kB / 0.49 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007544/0.1221, allocations: 456.8 kB / 0.4904 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1221, allocations: 4 kB / 0.4904 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.1222, allocations: 12 kB / 0.4904 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1222, allocations: 8 kB / 0.4905 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007551/0.1229, allocations: 423.7 kB / 0.4909 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.1254, allocations: 1.637 MB / 0.4925 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007477/0.1261, allocations: 476.1 kB / 0.4929 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003269/0.1265, allocations: 205.5 kB / 0.4931 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.1265, allocations: 8 kB / 0.4931 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1266, allocations: 34.56 kB / 0.4932 GB, free: 7.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.944e-06/0.1266, allocations: 0 / 0.4932 GB, free: 7.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001161/0.1277, allocations: 0.6266 MB / 0.4938 GB, free: 6.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.1278, allocations: 55.41 kB / 0.4938 GB, free: 6.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.1296, allocations: 0.9178 MB / 0.4947 GB, free: 5.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.1297, allocations: 33.7 kB / 0.4947 GB, free: 5.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.1299, allocations: 312.8 kB / 0.495 GB, free: 5.535 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.1301, allocations: 166.6 kB / 0.4952 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.1302, allocations: 106.2 kB / 0.4953 GB, free: 5.262 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1304, allocations: 386.6 kB / 0.4957 GB, free: 4.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.1308, allocations: 201 kB / 0.4959 GB, free: 4.676 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.1312, allocations: 297.2 kB / 0.4961 GB, free: 4.352 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003693/0.1349, allocations: 1.392 MB / 0.4975 GB, free: 2.887 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1349, allocations: 0 / 0.4975 GB, free: 2.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001057/0.136, allocations: 0.6195 MB / 0.4981 GB, free: 2.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.136, allocations: 10.81 kB / 0.4981 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.136, allocations: 4 kB / 0.4981 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1361, allocations: 4 kB / 0.4981 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006907/0.1368, allocations: 151.8 kB / 0.4983 GB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.1368, allocations: 11.94 kB / 0.4983 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007297/0.1375, allocations: 131.7 kB / 0.4984 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.1376, allocations: 27.97 kB / 0.4984 GB, free: 1.926 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 (70): * Single equations (assignments): 70 * 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.0003476/0.1379, allocations: 232.6 kB / 0.4987 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.138, allocations: 71.56 kB / 0.4987 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009479/0.139, allocations: 0.527 MB / 0.4992 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.139, allocations: 7.984 kB / 0.4992 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.139, allocations: 3.938 kB / 0.4993 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.139, allocations: 0 / 0.4993 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.1398, allocations: 0.6141 MB / 0.4999 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1398, allocations: 0 / 0.4999 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005367/0.1403, allocations: 99.89 kB / 0.4999 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1404, allocations: 0 / 0.4999 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/0.1404, allocations: 19.98 kB / 0.5 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1404, allocations: 3.938 kB / 0.5 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1404, allocations: 3.938 kB / 0.5 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1905/0.331, allocations: 0.8289 MB / 0.5008 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3311, allocations: 169.5 kB / 0.5009 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.082e-05/0.3312, allocations: 12.98 kB / 0.501 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006803/0.3319, allocations: 91.66 kB / 0.501 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.332, allocations: 31.09 kB / 0.5011 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.3321, allocations: 12.38 kB / 0.5011 GB, free: 22.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.3334, allocations: 0.6851 MB / 0.5018 GB, free: 22.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.02e-07/0.3334, allocations: 2.75 kB / 0.5018 GB, free: 22.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004488/0.3339, allocations: 116.4 kB / 0.5019 GB, free: 22.18 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.001184/0.3351, allocations: 1.392 MB / 0.5032 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000707/0.3358, allocations: 487.2 kB / 0.5037 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3358, allocations: 0 / 0.5037 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002959/0.3361, allocations: 235.5 kB / 0.5039 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.3366, allocations: 99.41 kB / 0.504 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00882/0.3455, allocations: 6.429 MB / 0.5103 GB, free: 19.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3459, allocations: 0.9539 MB / 0.5112 GB, free: 18.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002933/0.3462, allocations: 111 kB / 0.5113 GB, free: 18.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.3465, allocations: 249 kB / 0.5116 GB, free: 18.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3465, allocations: 0 / 0.5116 GB, free: 18.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.3814, allocations: 12.4 MB / 0.5237 GB, free: 15.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.658/9.039, allocations: 20.81 kB / 0.5237 GB, free: 15.25 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)