Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.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.001752/0.001752, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.002278/0.002278, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.481/1.481, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1029/0.1029, allocations: 24.03 MB / 333.6 MB, free: 1.562 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",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.003154/0.003154, allocations: 67.7 kB / 469.1 MB, free: 31.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1159, allocations: 59.55 MB / 0.5162 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002422/0.1183, allocations: 1.011 MB / 0.5172 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.1202, allocations: 1.307 MB / 0.5185 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.529e-05/0.1203, allocations: 4 kB / 0.5185 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.1207, allocations: 51.7 kB / 0.5186 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.1209, allocations: 71.66 kB / 0.5186 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002419/0.1211, allocations: 95.84 kB / 0.5187 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.1215, allocations: 283.5 kB / 0.519 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1216, allocations: 21.55 kB / 0.519 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.1218, allocations: 119.6 kB / 0.5191 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.122, allocations: 171.4 kB / 0.5193 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/0.1221, allocations: 20 kB / 0.5193 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.447e-05/0.1221, allocations: 16 kB / 0.5193 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.1223, allocations: 95.77 kB / 0.5194 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1224, allocations: 87.39 kB / 0.5195 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.1226, allocations: 215 kB / 0.5197 GB, free: 8.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1226, allocations: 0 / 0.5197 GB, free: 8.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1226, allocations: 0 / 0.5197 GB, free: 8.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.1226, allocations: 0 / 0.5197 GB, free: 8.051 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001702/0.1243, allocations: 0.6543 MB / 0.5203 GB, free: 7.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1244, allocations: 8.625 kB / 0.5204 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.441e-05/0.1244, allocations: 50.67 kB / 0.5204 GB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.352e-05/0.1245, allocations: 28.73 kB / 0.5204 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008558/0.1253, allocations: 354.9 kB / 0.5208 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1254, allocations: 8.375 kB / 0.5208 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.1254, allocations: 16.33 kB / 0.5208 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.1257, allocations: 156.1 kB / 0.5209 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1257, allocations: 4 kB / 0.5209 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1257, allocations: 4 kB / 0.5209 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.1257, allocations: 0 / 0.5209 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003147/0.1261, allocations: 171.8 kB / 0.5211 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.1271, allocations: 0.5862 MB / 0.5217 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.1275, allocations: 206.4 kB / 0.5219 GB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.1277, allocations: 105.1 kB / 0.522 GB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.1277, allocations: 3.953 kB / 0.522 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1277, allocations: 30.56 kB / 0.522 GB, free: 5.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.322e-06/0.1277, allocations: 0 / 0.522 GB, free: 5.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001499/0.1292, allocations: 0.5588 MB / 0.5226 GB, free: 4.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.1293, allocations: 51.41 kB / 0.5226 GB, free: 4.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.1301, allocations: 332.9 kB / 0.5229 GB, free: 4.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.1301, allocations: 37.7 kB / 0.523 GB, free: 4.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.483e-05/0.1302, allocations: 120.1 kB / 0.5231 GB, free: 4.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.576e-05/0.1303, allocations: 75.38 kB / 0.5231 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.943e-05/0.1304, allocations: 41.7 kB / 0.5232 GB, free: 4.238 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1305, allocations: 334.8 kB / 0.5235 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.1307, allocations: 91.94 kB / 0.5236 GB, free: 3.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.1309, allocations: 87.84 kB / 0.5237 GB, free: 3.727 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.133, allocations: 0.6228 MB / 0.5243 GB, free: 3.102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.133, allocations: 0 / 0.5243 GB, free: 3.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007531/0.1337, allocations: 370.2 kB / 0.5246 GB, free: 2.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1337, allocations: 8 kB / 0.5246 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1337, allocations: 0 / 0.5246 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.134, allocations: 68.72 kB / 0.5247 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.1342, allocations: 35.98 kB / 0.5247 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.136, allocations: 1.649 MB / 0.5264 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.1364, allocations: 55.81 kB / 0.5264 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1364, allocations: 8.078 kB / 0.5264 GB, free: 0.7656 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: C.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002015/0.1366, allocations: 163.9 kB / 0.5266 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.1366, allocations: 27.86 kB / 0.5266 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.419e-05/0.1367, allocations: 34.17 kB / 0.5266 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1367, allocations: 7.938 kB / 0.5266 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.1367, allocations: 0 / 0.5266 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1367, allocations: 0 / 0.5266 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.1371, allocations: 317.4 kB / 0.5269 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1371, allocations: 4 kB / 0.5269 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002063/0.1373, allocations: 27.98 kB / 0.527 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/0.1376, allocations: 68.78 kB / 0.527 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.1376, allocations: 4 kB / 0.527 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.1392, allocations: 1.657 MB / 0.5287 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1392, allocations: 0 / 0.5287 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.1401, allocations: 0.524 MB / 0.5292 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.095e-05/0.1402, allocations: 109 kB / 0.5293 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.1402, allocations: 8 kB / 0.5293 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003713/0.1406, allocations: 43.94 kB / 0.5293 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.54e-05/0.1407, allocations: 19.91 kB / 0.5293 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.1407, allocations: 4 kB / 0.5293 GB, free: 13.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006613/0.1414, allocations: 260.3 kB / 0.5296 GB, free: 13.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1414, allocations: 4 kB / 0.5296 GB, free: 13.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1417, allocations: 55.94 kB / 0.5297 GB, free: 13.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pol.x_scaled[1],Pol.x_scaled[2],Pcl.x_scaled[1],Pcl.x_scaled[2],C.x_scaled[1],C.x_scaled[2]) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001242/0.1429, allocations: 1.065 MB / 0.5307 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007092/0.1436, allocations: 355.7 kB / 0.531 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1436, allocations: 0 / 0.531 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003785/0.144, allocations: 238.5 kB / 0.5313 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.1444, allocations: 37.61 kB / 0.5313 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/0.1497, allocations: 3.019 MB / 0.5342 GB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.1502, allocations: 0.7599 MB / 0.535 GB, free: 7.586 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001541/0.1503, allocations: 57.5 kB / 0.535 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.1505, allocations: 67.41 kB / 0.5351 GB, free: 7.461 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1505, allocations: 0 / 0.5351 GB, free: 7.461 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03221/0.1827, allocations: 5.883 MB / 0.5409 GB, free: 1.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/11.96, allocations: 0 / 0.5409 GB, free: 1.719 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising.fmu > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.831703969975933] Failed to read output from testmodel.py, exit status != 0: 12.053083619801328 12.076980296 11.950527236 Calling exit ...