Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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.001321/0.001321, allocations: 109.6 kB / 17.14 MB, free: 5.93 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.001561/0.001561, allocations: 205.1 kB / 20.11 MB, free: 2.977 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.494/1.494, 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.1075/0.1075, 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) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag",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.002112/0.002112, allocations: 68.94 kB / 468.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1099, allocations: 59.56 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002939/0.1128, allocations: 1.209 MB / 0.5168 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1151, allocations: 1.408 MB / 0.5181 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.1153, allocations: 7.938 kB / 0.5181 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004353/0.1157, allocations: 83.47 kB / 0.5182 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003693/0.1161, allocations: 107.5 kB / 0.5183 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1165, allocations: 167.7 kB / 0.5185 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006503/0.1171, allocations: 483.1 kB / 0.5189 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.1173, allocations: 41.14 kB / 0.519 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.1176, allocations: 195.4 kB / 0.5192 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.1181, allocations: 247.2 kB / 0.5194 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.697e-05/0.1181, allocations: 27.94 kB / 0.5194 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.485e-05/0.1182, allocations: 24 kB / 0.5194 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.1184, allocations: 119.6 kB / 0.5196 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1185, allocations: 123.2 kB / 0.5197 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.1189, allocations: 302.6 kB / 0.52 GB, free: 7.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1189, allocations: 0 / 0.52 GB, free: 7.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.119, allocations: 0 / 0.52 GB, free: 7.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.119, allocations: 0 / 0.52 GB, free: 7.789 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.002355/0.1213, allocations: 0.8293 MB / 0.5208 GB, free: 6.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.1214, allocations: 8.625 kB / 0.5208 GB, free: 6.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.489e-05/0.1214, allocations: 50.73 kB / 0.5208 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.345e-05/0.1215, allocations: 36.7 kB / 0.5209 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.1227, allocations: 464 kB / 0.5213 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1228, allocations: 8.375 kB / 0.5213 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.336e-05/0.1228, allocations: 20.38 kB / 0.5213 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/0.1232, allocations: 201.2 kB / 0.5215 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1232, allocations: 8 kB / 0.5215 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.1232, allocations: 4 kB / 0.5215 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1232, allocations: 8 kB / 0.5216 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004226/0.1237, allocations: 211.8 kB / 0.5218 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.125, allocations: 0.7109 MB / 0.5224 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000694/0.1257, allocations: 294.3 kB / 0.5227 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.1259, allocations: 116.8 kB / 0.5228 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.634e-05/0.126, allocations: 7.984 kB / 0.5228 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.126, allocations: 34.56 kB / 0.5229 GB, free: 4.633 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.126, allocations: 0 / 0.5229 GB, free: 4.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001511/0.1275, allocations: 0.5903 MB / 0.5235 GB, free: 4.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.1276, allocations: 55.41 kB / 0.5235 GB, free: 3.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/0.1287, allocations: 472.3 kB / 0.524 GB, free: 3.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.1288, allocations: 29.7 kB / 0.524 GB, free: 3.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1289, allocations: 172.5 kB / 0.5242 GB, free: 3.266 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/0.129, allocations: 87.22 kB / 0.5242 GB, free: 3.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.1291, allocations: 45.7 kB / 0.5243 GB, free: 3.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1293, allocations: 358.7 kB / 0.5246 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1295, allocations: 107.9 kB / 0.5247 GB, free: 2.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.1297, allocations: 138.2 kB / 0.5249 GB, free: 2.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/0.1321, allocations: 0.7015 MB / 0.5255 GB, free: 1.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1321, allocations: 0 / 0.5255 GB, free: 1.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008957/0.133, allocations: 410.1 kB / 0.5259 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.133, allocations: 8 kB / 0.5259 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.133, allocations: 7.969 kB / 0.5259 GB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002707/0.1333, allocations: 68.67 kB / 0.526 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1335, allocations: 39.98 kB / 0.5261 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/0.1354, allocations: 1.661 MB / 0.5277 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.1359, allocations: 79.84 kB / 0.5277 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.1359, allocations: 8 kB / 0.5278 GB, free: 15.4 MB / 398.1 MB Warning: Assuming fixed start value for the following 7 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[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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: 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 (27): * Single equations (assignments): 26 * 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.0002807/0.1362, allocations: 179.6 kB / 0.5279 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-05/0.1363, allocations: 31.81 kB / 0.528 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.1364, allocations: 43.17 kB / 0.528 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1364, allocations: 7.984 kB / 0.528 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1364, allocations: 3.984 kB / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1364, allocations: 0 / 0.528 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.1369, allocations: 377.2 kB / 0.5284 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1369, allocations: 0 / 0.5284 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.1372, allocations: 35.92 kB / 0.5284 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002129/0.1374, allocations: 64.8 kB / 0.5285 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.1374, allocations: 8 kB / 0.5285 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.1391, allocations: 1.665 MB / 0.5301 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1391, allocations: 0 / 0.5301 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1401, allocations: 0.5895 MB / 0.5307 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.1402, allocations: 120.9 kB / 0.5308 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1403, allocations: 8 kB / 0.5308 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.1408, allocations: 59.91 kB / 0.5309 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.1408, allocations: 19.97 kB / 0.5309 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.1409, allocations: 4 kB / 0.5309 GB, free: 11.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.1419, allocations: 374.8 kB / 0.5312 GB, free: 11.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1419, allocations: 0 / 0.5312 GB, free: 11.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.1423, allocations: 67.94 kB / 0.5313 GB, free: 11.53 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],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 (19): * 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: 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.001368/0.1436, allocations: 1.141 MB / 0.5324 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008171/0.1444, allocations: 398.5 kB / 0.5328 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1444, allocations: 0 / 0.5328 GB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.1449, allocations: 270.4 kB / 0.5331 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004717/0.1453, allocations: 51.25 kB / 0.5331 GB, free: 9.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/0.1528, allocations: 3.707 MB / 0.5367 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/0.1534, allocations: 0.8106 MB / 0.5375 GB, free: 4.992 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.1536, allocations: 70.22 kB / 0.5376 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.1538, allocations: 103.4 kB / 0.5377 GB, free: 4.828 MB / 398.1 MB Notification: Performance of SimCode: time 2.164e-06/0.1538, allocations: 0 / 0.5377 GB, free: 4.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/0.192, allocations: 6.877 MB / 0.5444 GB, free: 14.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.39, allocations: 9.828 kB / 0.5444 GB, free: 14.09 MB / 414.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag_res.csv --start-time 0 --stop-time 150 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.075 AES_AES_Coursework_Typical_control_structures_FF_compensation_simple_lead_lag.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.281711724121124] Failed to read output from testmodel.py, exit status != 0: 10.476889380952343 10.497976827 10.374928431 Calling exit ...