Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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.001753/0.001753, 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.002331/0.002331, 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.5/1.5, 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.1073/0.1073, allocations: 24.03 MB / 333.6 MB, free: 1.559 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.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",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.002143/0.002143, allocations: 65 kB / 468.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.105, allocations: 59.55 MB / 0.5156 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003332/0.1083, allocations: 1.998 MB / 0.5175 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001377/0.1097, allocations: 0.7559 MB / 0.5183 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1098, allocations: 4 kB / 0.5183 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003574/0.1102, allocations: 87.41 kB / 0.5183 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.1105, allocations: 103.5 kB / 0.5184 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004571/0.1109, allocations: 183.7 kB / 0.5186 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005716/0.1115, allocations: 0.4912 MB / 0.5191 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.1116, allocations: 44.72 kB / 0.5191 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002659/0.1119, allocations: 215.3 kB / 0.5193 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.1122, allocations: 227.2 kB / 0.5196 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.052e-05/0.1123, allocations: 23.94 kB / 0.5196 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.1123, allocations: 24 kB / 0.5196 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.1125, allocations: 95.66 kB / 0.5197 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.1126, allocations: 127.2 kB / 0.5198 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.1129, allocations: 278.6 kB / 0.5201 GB, free: 7.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1129, allocations: 0 / 0.5201 GB, free: 7.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1129, allocations: 0 / 0.5201 GB, free: 7.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1129, allocations: 0 / 0.5201 GB, free: 7.645 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002034/0.115, allocations: 0.7942 MB / 0.5209 GB, free: 6.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.115, allocations: 8.625 kB / 0.5209 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.127e-05/0.1151, allocations: 50.73 kB / 0.5209 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.1151, allocations: 32.7 kB / 0.5209 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.1163, allocations: 448.1 kB / 0.5214 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.1163, allocations: 16.36 kB / 0.5214 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.1163, allocations: 20.33 kB / 0.5214 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.1167, allocations: 189.4 kB / 0.5216 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1167, allocations: 4 kB / 0.5216 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.1167, allocations: 4 kB / 0.5216 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1167, allocations: 4 kB / 0.5216 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.1171, allocations: 187.8 kB / 0.5218 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.1182, allocations: 0.6446 MB / 0.5224 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008646/0.1191, allocations: 322.8 kB / 0.5227 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.1192, allocations: 104.7 kB / 0.5228 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.1193, allocations: 8 kB / 0.5228 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1193, allocations: 38.5 kB / 0.5229 GB, free: 4.625 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.1193, allocations: 0 / 0.5229 GB, free: 4.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001267/0.1206, allocations: 0.501 MB / 0.5234 GB, free: 4.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.1206, allocations: 55.41 kB / 0.5234 GB, free: 4.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.1217, allocations: 452.3 kB / 0.5238 GB, free: 3.578 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.1217, allocations: 25.7 kB / 0.5239 GB, free: 3.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1218, allocations: 176.4 kB / 0.524 GB, free: 3.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.1219, allocations: 79.27 kB / 0.5241 GB, free: 3.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.122, allocations: 41.7 kB / 0.5241 GB, free: 3.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1221, allocations: 354.8 kB / 0.5245 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1223, allocations: 76.19 kB / 0.5246 GB, free: 2.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.1225, allocations: 110.1 kB / 0.5247 GB, free: 2.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.1241, allocations: 0.518 MB / 0.5252 GB, free: 2.172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1241, allocations: 0 / 0.5252 GB, free: 2.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006315/0.1248, allocations: 342 kB / 0.5255 GB, free: 1.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1248, allocations: 4 kB / 0.5255 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.1248, allocations: 7.984 kB / 0.5255 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002133/0.125, allocations: 52.86 kB / 0.5256 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.1252, allocations: 35.92 kB / 0.5256 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001629/0.1268, allocations: 1.61 MB / 0.5272 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004597/0.1273, allocations: 67.78 kB / 0.5272 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/0.1273, allocations: 12.06 kB / 0.5272 GB, free: 15.9 MB / 398.1 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (23): * Single equations (assignments): 22 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.1276, allocations: 155.7 kB / 0.5274 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.714e-05/0.1276, allocations: 31.81 kB / 0.5274 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1278, allocations: 51.02 kB / 0.5275 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1278, allocations: 4 kB / 0.5275 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1278, allocations: 0 / 0.5275 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.1278, allocations: 7.922 kB / 0.5275 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004347/0.1282, allocations: 345.2 kB / 0.5278 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1282, allocations: 3.984 kB / 0.5278 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.1284, allocations: 31.92 kB / 0.5278 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.1286, allocations: 52.81 kB / 0.5279 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.1286, allocations: 8 kB / 0.5279 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.1301, allocations: 1.61 MB / 0.5295 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1301, allocations: 4.062 kB / 0.5295 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007991/0.1309, allocations: 0.5135 MB / 0.53 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.131, allocations: 116.9 kB / 0.5301 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.131, allocations: 8 kB / 0.5301 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004547/0.1315, allocations: 63.84 kB / 0.5302 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/0.1315, allocations: 15.98 kB / 0.5302 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.1315, allocations: 7.984 kB / 0.5302 GB, free: 12.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008855/0.1324, allocations: 358.9 kB / 0.5305 GB, free: 12.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1324, allocations: 0 / 0.5305 GB, free: 12.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.1328, allocations: 59.89 kB / 0.5306 GB, free: 12.24 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.1339, allocations: 1.067 MB / 0.5316 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000674/0.1346, allocations: 338.5 kB / 0.5319 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1346, allocations: 4.062 kB / 0.5319 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003683/0.1349, allocations: 238.5 kB / 0.5322 GB, free: 10.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.1354, allocations: 51.22 kB / 0.5322 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006157/0.1415, allocations: 3.404 MB / 0.5355 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.142, allocations: 0.7948 MB / 0.5363 GB, free: 6.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001542/0.1421, allocations: 66.23 kB / 0.5364 GB, free: 6.129 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.1423, allocations: 87.41 kB / 0.5365 GB, free: 6.043 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1423, allocations: 3.938 kB / 0.5365 GB, free: 6.039 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03396/0.1763, allocations: 6.292 MB / 0.5426 GB, free: 15.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.37, allocations: 7.922 kB / 0.5426 GB, free: 15.87 MB / 414.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.281068279175088] Failed to read output from testmodel.py, exit status != 0: 10.4622995830141 10.479866165 10.363899159 Calling exit ...