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.005609/0.005609, allocations: 103.3 kB / 15.73 MB, free: 6.059 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.001167/0.001167, allocations: 186.3 kB / 16.67 MB, free: 5.977 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.317/1.317, 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.09127/0.09127, allocations: 22.33 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 59.91 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.113, allocations: 54.96 MB / 491.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003223/0.1162, allocations: 2.006 MB / 493.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002789/0.1191, allocations: 1.798 MB / 495.3 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004106/0.1195, allocations: 11.94 kB / 495.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000624/0.1201, allocations: 166.8 kB / 495.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006978/0.1209, allocations: 219 kB / 495.7 MB, free: 1.047 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.0007449/0.1216, allocations: 375.5 kB / 496 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.1229, allocations: 1.07 MB / 497.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003104/0.1233, allocations: 158.1 kB / 497.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005648/0.1238, allocations: 402.7 kB / 497.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005925/0.1244, allocations: 410.2 kB / 498.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.1246, allocations: 72 kB / 498.1 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.1248, allocations: 91.97 kB / 498.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000272/0.1251, allocations: 239.3 kB / 498.5 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.1254, allocations: 306.1 kB / 498.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007493/0.1262, allocations: 0.7435 MB / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1262, allocations: 0 / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1262, allocations: 0 / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.1262, allocations: 0 / 499.5 MB, free: 13.21 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.003455/0.1297, allocations: 1.227 MB / 0.489 GB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1298, allocations: 12.03 kB / 0.489 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1299, allocations: 70.72 kB / 0.4891 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.13, allocations: 76 kB / 0.4891 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/0.1319, allocations: 0.757 MB / 0.4899 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1319, allocations: 29.38 kB / 0.4899 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.132, allocations: 48.28 kB / 0.49 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000743/0.1328, allocations: 460.7 kB / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1328, allocations: 0 / 0.4904 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.1328, allocations: 19.98 kB / 0.4904 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1329, allocations: 8 kB / 0.4904 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007734/0.1336, allocations: 431.6 kB / 0.4908 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00251/0.1362, allocations: 1.629 MB / 0.4924 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007025/0.1369, allocations: 476 kB / 0.4929 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.1372, allocations: 201.5 kB / 0.4931 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.483e-05/0.1373, allocations: 8 kB / 0.4931 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.1373, allocations: 38.56 kB / 0.4931 GB, free: 7.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.013e-06/0.1373, allocations: 0 / 0.4931 GB, free: 7.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001168/0.1385, allocations: 0.6263 MB / 0.4937 GB, free: 6.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1385, allocations: 59.34 kB / 0.4938 GB, free: 6.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.1404, allocations: 0.9138 MB / 0.4947 GB, free: 5.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.1405, allocations: 37.7 kB / 0.4947 GB, free: 5.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.1407, allocations: 308.5 kB / 0.495 GB, free: 5.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.1408, allocations: 161.6 kB / 0.4952 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.141, allocations: 106.2 kB / 0.4953 GB, free: 5.305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1412, allocations: 386.7 kB / 0.4956 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.1415, allocations: 197 kB / 0.4958 GB, free: 4.723 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.1419, allocations: 297.2 kB / 0.4961 GB, free: 4.398 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003641/0.1456, allocations: 1.388 MB / 0.4975 GB, free: 2.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1456, allocations: 0 / 0.4975 GB, free: 2.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001044/0.1466, allocations: 0.6112 MB / 0.4981 GB, free: 2.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.1467, allocations: 8 kB / 0.4981 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.1467, allocations: 0 / 0.4981 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.1467, allocations: 8 kB / 0.4981 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007417/0.1475, allocations: 155.8 kB / 0.4982 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.1475, allocations: 4 kB / 0.4982 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007701/0.1483, allocations: 135.6 kB / 0.4984 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.575e-05/0.1483, allocations: 20 kB / 0.4984 GB, free: 1.992 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.0003857/0.1487, allocations: 237.6 kB / 0.4986 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.1489, allocations: 59.25 kB / 0.4987 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009844/0.1499, allocations: 0.5425 MB / 0.4992 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.1499, allocations: 4 kB / 0.4992 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1499, allocations: 7.875 kB / 0.4992 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.1499, allocations: 3.984 kB / 0.4992 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007177/0.1506, allocations: 0.6025 MB / 0.4998 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1507, allocations: 4 kB / 0.4998 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005426/0.1512, allocations: 95.89 kB / 0.4999 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.1512, allocations: 0 / 0.4999 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.1513, allocations: 8 kB / 0.4999 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.1513, allocations: 4 kB / 0.4999 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1513, allocations: 7.875 kB / 0.4999 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2114/0.3627, allocations: 0.8285 MB / 0.5007 GB, free: 22.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.3629, allocations: 163.1 kB / 0.5009 GB, free: 22.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.28e-05/0.363, allocations: 10.53 kB / 0.5009 GB, free: 22.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/0.3637, allocations: 95.28 kB / 0.501 GB, free: 22.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.3638, allocations: 31.47 kB / 0.501 GB, free: 22.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.3639, allocations: 11.03 kB / 0.501 GB, free: 22.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001417/0.3653, allocations: 0.6926 MB / 0.5017 GB, free: 22.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3653, allocations: 0 / 0.5017 GB, free: 22.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000447/0.3657, allocations: 111.4 kB / 0.5018 GB, free: 22.21 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.001295/0.367, allocations: 1.397 MB / 0.5032 GB, free: 21.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000815/0.3679, allocations: 480.9 kB / 0.5036 GB, free: 21.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3679, allocations: 0 / 0.5036 GB, free: 21.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.3682, allocations: 239.8 kB / 0.5038 GB, free: 21.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000571/0.3688, allocations: 96.33 kB / 0.5039 GB, free: 21.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.3789, allocations: 6.402 MB / 0.5102 GB, free: 19.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.3794, allocations: 0.9548 MB / 0.5111 GB, free: 18.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003836/0.3798, allocations: 111.3 kB / 0.5112 GB, free: 18.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.3802, allocations: 245.2 kB / 0.5115 GB, free: 18.93 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3802, allocations: 0 / 0.5115 GB, free: 18.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.4123, allocations: 12.7 MB / 0.5239 GB, free: 15.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.631/9.044, allocations: 14.02 kB / 0.5239 GB, free: 15.13 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)