Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.001312/0.001312, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001432/0.001432, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.547/1.547, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1016/0.1016, allocations: 22.93 MB / 332.5 MB, free: 2.637 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.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",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.002593/0.002593, allocations: 68.53 kB / 466.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1326, allocations: 59.26 MB / 0.5137 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002804/0.1354, allocations: 1.302 MB / 0.515 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.1379, allocations: 1.463 MB / 0.5164 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1381, allocations: 4 kB / 0.5164 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004661/0.1385, allocations: 107.3 kB / 0.5165 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003114/0.1388, allocations: 119.4 kB / 0.5166 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.1393, allocations: 195.7 kB / 0.5168 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006181/0.1399, allocations: 0.5146 MB / 0.5173 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1401, allocations: 56.5 kB / 0.5173 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003117/0.1404, allocations: 227.3 kB / 0.5176 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000389/0.1408, allocations: 263 kB / 0.5178 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.309e-05/0.1409, allocations: 28 kB / 0.5178 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.553e-05/0.1409, allocations: 24 kB / 0.5179 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.1411, allocations: 131.5 kB / 0.518 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1413, allocations: 143.1 kB / 0.5181 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004318/0.1417, allocations: 334.4 kB / 0.5184 GB, free: 9.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1417, allocations: 0 / 0.5184 GB, free: 9.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1417, allocations: 0 / 0.5184 GB, free: 9.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1417, allocations: 4 kB / 0.5184 GB, free: 9.117 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002536/0.1442, allocations: 0.8839 MB / 0.5193 GB, free: 8.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.1443, allocations: 12.62 kB / 0.5193 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.146e-05/0.1443, allocations: 8.516 kB / 0.5193 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.684e-05/0.1444, allocations: 46.73 kB / 0.5194 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.982e-05/0.1444, allocations: 40.7 kB / 0.5194 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.1458, allocations: 0.4906 MB / 0.5199 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.1458, allocations: 12.64 kB / 0.5199 GB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/0.1459, allocations: 20.33 kB / 0.5199 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.1463, allocations: 216 kB / 0.5201 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.1463, allocations: 0 / 0.5201 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.1463, allocations: 12 kB / 0.5201 GB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1463, allocations: 4 kB / 0.5201 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004782/0.1468, allocations: 228.1 kB / 0.5204 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001432/0.1482, allocations: 0.7578 MB / 0.5211 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.149, allocations: 318.3 kB / 0.5214 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.1493, allocations: 132.8 kB / 0.5215 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1493, allocations: 8 kB / 0.5215 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.1493, allocations: 38.5 kB / 0.5216 GB, free: 5.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.044e-06/0.1493, allocations: 0 / 0.5216 GB, free: 5.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002127/0.1515, allocations: 0.7824 MB / 0.5223 GB, free: 4.906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.1515, allocations: 63.34 kB / 0.5224 GB, free: 4.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/0.1528, allocations: 0.5014 MB / 0.5229 GB, free: 4.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.1528, allocations: 25.7 kB / 0.5229 GB, free: 4.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.153, allocations: 176.5 kB / 0.5231 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.1531, allocations: 103.1 kB / 0.5232 GB, free: 4.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.464e-05/0.1532, allocations: 49.7 kB / 0.5232 GB, free: 3.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1534, allocations: 354.7 kB / 0.5236 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.1536, allocations: 108.2 kB / 0.5237 GB, free: 3.488 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.1538, allocations: 108.5 kB / 0.5238 GB, free: 3.383 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/0.1562, allocations: 0.7178 MB / 0.5245 GB, free: 2.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1562, allocations: 0 / 0.5245 GB, free: 2.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.00102/0.1572, allocations: 483.4 kB / 0.5249 GB, free: 2.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1572, allocations: 10.17 kB / 0.5249 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1572, allocations: 0 / 0.5249 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.1576, allocations: 109.6 kB / 0.5251 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.1578, allocations: 43.91 kB / 0.5251 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/0.161, allocations: 3.2 MB / 0.5282 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005686/0.1616, allocations: 83.81 kB / 0.5283 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.1616, allocations: 12 kB / 0.5283 GB, free: 14.44 MB / 398.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.1619, allocations: 189.5 kB / 0.5285 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.1619, allocations: 43.75 kB / 0.5285 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.1621, allocations: 47.31 kB / 0.5286 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1621, allocations: 4 kB / 0.5286 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1621, allocations: 7.938 kB / 0.5286 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1621, allocations: 3.938 kB / 0.5286 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.1626, allocations: 393.2 kB / 0.529 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1626, allocations: 4 kB / 0.529 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.1628, allocations: 31.98 kB / 0.529 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003338/0.1631, allocations: 109.6 kB / 0.5291 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.1632, allocations: 8 kB / 0.5291 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003058/0.1662, allocations: 3.196 MB / 0.5322 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1662, allocations: 0 / 0.5322 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001209/0.1674, allocations: 0.6722 MB / 0.5329 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.1675, allocations: 128.8 kB / 0.533 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.1676, allocations: 8 kB / 0.533 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005414/0.1681, allocations: 71.89 kB / 0.5331 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.894e-05/0.1682, allocations: 23.97 kB / 0.5331 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.1682, allocations: 4 kB / 0.5331 GB, free: 9.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.1693, allocations: 402.9 kB / 0.5335 GB, free: 8.738 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1693, allocations: 0 / 0.5335 GB, free: 8.738 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003817/0.1697, allocations: 72 kB / 0.5336 GB, free: 8.668 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00151/0.1712, allocations: 1.206 MB / 0.5347 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009829/0.1722, allocations: 0.5206 MB / 0.5353 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1722, allocations: 0 / 0.5353 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005943/0.1728, allocations: 397.1 kB / 0.5356 GB, free: 6.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.1733, allocations: 62.22 kB / 0.5357 GB, free: 6.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007718/0.181, allocations: 4.003 MB / 0.5396 GB, free: 2.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.1815, allocations: 0.8185 MB / 0.5404 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.1817, allocations: 66.91 kB / 0.5405 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1819, allocations: 119.4 kB / 0.5406 GB, free: 1.289 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1819, allocations: 3.938 kB / 0.5406 GB, free: 1.285 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04732/0.2292, allocations: 7.844 MB / 0.5482 GB, free: 9.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.86, allocations: 6.469 kB / 0.5483 GB, free: 9.547 MB / 414.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Exploiting_2dof_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.89093337696977] Failed to read output from testmodel.py, exit status != 0: 11.00645866600098 11.02209022 10.877225002 Calling exit ...