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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 115.6 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.531/1.531, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1026/0.1026, allocations: 22.93 MB / 332.5 MB, free: 2.648 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 60.16 kB / 466.7 MB, free: 32.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1285, allocations: 59.27 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.004044/0.1326, allocations: 2.018 MB / 0.5156 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003896/0.1365, allocations: 1.86 MB / 0.5175 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007583/0.1372, allocations: 15.88 kB / 0.5175 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008204/0.138, allocations: 174.7 kB / 0.5176 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009647/0.139, allocations: 227 kB / 0.5179 GB, free: 9.707 MB / 382.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.0008592/0.1399, allocations: 379.5 kB / 0.5182 GB, free: 9.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001441/0.1413, allocations: 1.066 MB / 0.5193 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.1416, allocations: 113.6 kB / 0.5194 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005501/0.1421, allocations: 418.6 kB / 0.5198 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005751/0.1427, allocations: 438.2 kB / 0.5202 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.1428, allocations: 64 kB / 0.5202 GB, free: 7.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001818/0.143, allocations: 104 kB / 0.5203 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002723/0.1433, allocations: 247.1 kB / 0.5206 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.1435, allocations: 306.1 kB / 0.5209 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008716/0.1444, allocations: 0.7391 MB / 0.5216 GB, free: 5.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1444, allocations: 3.938 kB / 0.5216 GB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1444, allocations: 0 / 0.5216 GB, free: 5.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.1444, allocations: 4 kB / 0.5216 GB, free: 5.855 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.003436/0.1479, allocations: 1.242 MB / 0.5228 GB, free: 4.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.1479, allocations: 12.62 kB / 0.5228 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.927e-05/0.1479, allocations: 9.188 kB / 0.5228 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.099e-05/0.148, allocations: 74.66 kB / 0.5229 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1482, allocations: 80.42 kB / 0.523 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.15, allocations: 0.7615 MB / 0.5237 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.15, allocations: 29.38 kB / 0.5238 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.943e-05/0.1501, allocations: 56.25 kB / 0.5238 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.1509, allocations: 464.5 kB / 0.5243 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1509, allocations: 0 / 0.5243 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.151, allocations: 12 kB / 0.5243 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.151, allocations: 8 kB / 0.5243 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007852/0.1518, allocations: 427.7 kB / 0.5247 GB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.1543, allocations: 1.633 MB / 0.5263 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007738/0.1551, allocations: 464.2 kB / 0.5267 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003381/0.1555, allocations: 192.7 kB / 0.5269 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.1555, allocations: 8 kB / 0.5269 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1555, allocations: 34.56 kB / 0.5269 GB, free: 180 kB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.315e-06/0.1555, allocations: 0 / 0.5269 GB, free: 180 kB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001242/0.1568, allocations: 0.6266 MB / 0.5276 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.1568, allocations: 55.41 kB / 0.5276 GB, free: 15.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.1588, allocations: 0.9177 MB / 0.5285 GB, free: 14.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.45e-05/0.1589, allocations: 37.7 kB / 0.5285 GB, free: 14.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.1592, allocations: 312.8 kB / 0.5288 GB, free: 14.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.1593, allocations: 170.5 kB / 0.529 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.1595, allocations: 102.2 kB / 0.5291 GB, free: 13.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.1597, allocations: 398.6 kB / 0.5295 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.1601, allocations: 189 kB / 0.5297 GB, free: 13.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.1606, allocations: 301.2 kB / 0.5299 GB, free: 13.01 MB / 398.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003999/0.1646, allocations: 1.391 MB / 0.5313 GB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1646, allocations: 0 / 0.5313 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001256/0.1658, allocations: 0.6155 MB / 0.5319 GB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1658, allocations: 8 kB / 0.5319 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1658, allocations: 0 / 0.5319 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.1659, allocations: 8 kB / 0.5319 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007718/0.1666, allocations: 159.8 kB / 0.5321 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.1667, allocations: 8.312 kB / 0.5321 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/0.1675, allocations: 131.4 kB / 0.5322 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.1675, allocations: 20 kB / 0.5322 GB, free: 10.59 MB / 398.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.0003948/0.1679, allocations: 245.5 kB / 0.5325 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.168, allocations: 67.53 kB / 0.5325 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.169, allocations: 0.5316 MB / 0.533 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.1691, allocations: 8 kB / 0.533 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1691, allocations: 3.938 kB / 0.5331 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.1691, allocations: 7.984 kB / 0.5331 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000813/0.1699, allocations: 0.6064 MB / 0.5337 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1699, allocations: 0 / 0.5337 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005603/0.1704, allocations: 99.83 kB / 0.5337 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1705, allocations: 3.938 kB / 0.5338 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.1705, allocations: 12 kB / 0.5338 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.1705, allocations: 4 kB / 0.5338 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.1705, allocations: 3.938 kB / 0.5338 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.1718, allocations: 0.8256 MB / 0.5346 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.172, allocations: 168.5 kB / 0.5347 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.866e-05/0.1721, allocations: 15.98 kB / 0.5348 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.1728, allocations: 91.81 kB / 0.5348 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.1729, allocations: 27.72 kB / 0.5349 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.173, allocations: 19.98 kB / 0.5349 GB, free: 7.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001654/0.1746, allocations: 0.6785 MB / 0.5355 GB, free: 7.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1746, allocations: 0 / 0.5355 GB, free: 7.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004994/0.1751, allocations: 119.8 kB / 0.5357 GB, free: 6.969 MB / 398.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.001782/0.1769, allocations: 1.404 MB / 0.537 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.178, allocations: 454.7 kB / 0.5375 GB, free: 5.098 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.178, allocations: 0 / 0.5375 GB, free: 5.098 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003875/0.1784, allocations: 232.1 kB / 0.5377 GB, free: 4.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006514/0.179, allocations: 94.44 kB / 0.5378 GB, free: 4.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.1912, allocations: 6.429 MB / 0.5441 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007201/0.192, allocations: 0.9605 MB / 0.545 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004535/0.1924, allocations: 116.8 kB / 0.5451 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.1929, allocations: 251.3 kB / 0.5453 GB, free: 12.84 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1929, allocations: 0 / 0.5453 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03377/0.2266, allocations: 12.59 MB / 0.5576 GB, free: 376 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.592/9.818, allocations: 7.922 kB / 0.5576 GB, free: 368 kB / 414.1 MB " [Timeout remaining time 650] (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 --stepSize=0.04 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.710935775015969] Failed to read output from testmodel.py, exit status != 0: 9.952923625009134 9.968287761000001 9.820430462000001 Calling exit ...