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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 109.6 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 192.5 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 245.1 MB, free: 15 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.09914/0.09914, allocations: 22.33 MB / 319.5 MB, free: 6.75 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.89 kB / 445.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1146, allocations: 54.95 MB / 0.4885 GB, free: 1.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.0033/0.118, allocations: 1.966 MB / 0.4904 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.1194, allocations: 0.7209 MB / 0.4911 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1195, allocations: 4 kB / 0.4911 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004182/0.1199, allocations: 83.45 kB / 0.4912 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.1202, allocations: 95.52 kB / 0.4913 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.1207, allocations: 187.7 kB / 0.4915 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005977/0.1213, allocations: 0.4912 MB / 0.4919 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1215, allocations: 60.72 kB / 0.492 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.1218, allocations: 199.4 kB / 0.4922 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.1221, allocations: 207.2 kB / 0.4924 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.1222, allocations: 20 kB / 0.4924 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.831e-05/0.1222, allocations: 24 kB / 0.4924 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.1224, allocations: 103.7 kB / 0.4925 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.1225, allocations: 123.2 kB / 0.4926 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.1229, allocations: 274.7 kB / 0.4929 GB, free: 13.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1229, allocations: 0 / 0.4929 GB, free: 13.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1229, allocations: 0 / 0.4929 GB, free: 13.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1229, allocations: 0 / 0.4929 GB, free: 13.03 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.002033/0.1249, allocations: 0.7865 MB / 0.4937 GB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.125, allocations: 8.031 kB / 0.4937 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.616e-05/0.1251, allocations: 58.61 kB / 0.4937 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.1251, allocations: 36.7 kB / 0.4938 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.1263, allocations: 452.1 kB / 0.4942 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.1263, allocations: 16.23 kB / 0.4942 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.1263, allocations: 12.38 kB / 0.4942 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003422/0.1267, allocations: 177.7 kB / 0.4944 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1267, allocations: 0 / 0.4944 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.1267, allocations: 4 kB / 0.4944 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1267, allocations: 4 kB / 0.4944 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.1271, allocations: 187.9 kB / 0.4946 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1282, allocations: 0.6485 MB / 0.4952 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008341/0.129, allocations: 342.8 kB / 0.4955 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.1292, allocations: 107.7 kB / 0.4957 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.1293, allocations: 3.938 kB / 0.4957 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1293, allocations: 42.56 kB / 0.4957 GB, free: 10 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.1293, allocations: 0 / 0.4957 GB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001208/0.1305, allocations: 0.499 MB / 0.4962 GB, free: 9.477 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.1306, allocations: 55.41 kB / 0.4962 GB, free: 9.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.1316, allocations: 460.2 kB / 0.4967 GB, free: 8.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.1317, allocations: 29.7 kB / 0.4967 GB, free: 8.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1318, allocations: 172.5 kB / 0.4969 GB, free: 8.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.184e-05/0.1319, allocations: 79.31 kB / 0.4969 GB, free: 8.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.132, allocations: 41.7 kB / 0.497 GB, free: 8.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1321, allocations: 342.8 kB / 0.4973 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.1323, allocations: 84.19 kB / 0.4974 GB, free: 8.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.1325, allocations: 112.5 kB / 0.4975 GB, free: 8.074 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.1341, allocations: 0.5197 MB / 0.498 GB, free: 7.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1341, allocations: 4 kB / 0.498 GB, free: 7.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006321/0.1347, allocations: 346 kB / 0.4983 GB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1347, allocations: 7.984 kB / 0.4983 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1348, allocations: 4 kB / 0.4983 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/0.135, allocations: 48.83 kB / 0.4984 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1351, allocations: 31.98 kB / 0.4984 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.1367, allocations: 1.611 MB / 0.5 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.1372, allocations: 79.8 kB / 0.5001 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1372, allocations: 8 kB / 0.5001 GB, free: 5.273 MB / 382.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.0002333/0.1374, allocations: 159.7 kB / 0.5002 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.1375, allocations: 31.81 kB / 0.5003 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.942e-05/0.1376, allocations: 43.08 kB / 0.5003 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.1376, allocations: 4 kB / 0.5003 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1376, allocations: 0 / 0.5003 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/0.1376, allocations: 7.922 kB / 0.5003 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004138/0.1381, allocations: 345.3 kB / 0.5006 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1381, allocations: 0 / 0.5006 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.1383, allocations: 35.92 kB / 0.5007 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.1384, allocations: 52.81 kB / 0.5007 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.1385, allocations: 8 kB / 0.5007 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/0.1399, allocations: 1.607 MB / 0.5023 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.1399, allocations: 0 / 0.5023 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008106/0.1408, allocations: 0.5171 MB / 0.5028 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1409, allocations: 120.8 kB / 0.5029 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.799e-05/0.1409, allocations: 8 kB / 0.5029 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004391/0.1414, allocations: 59.84 kB / 0.503 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.1415, allocations: 19.97 kB / 0.503 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.1415, allocations: 11.94 kB / 0.503 GB, free: 2.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009213/0.1424, allocations: 358.9 kB / 0.5034 GB, free: 1.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1424, allocations: 0 / 0.5034 GB, free: 1.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.1427, allocations: 55.95 kB / 0.5034 GB, free: 1.617 MB / 382.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.001159/0.1439, allocations: 1.055 MB / 0.5045 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006947/0.1446, allocations: 362.4 kB / 0.5048 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1446, allocations: 0 / 0.5048 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2001/0.3447, allocations: 234.6 kB / 0.505 GB, free: 20.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.3454, allocations: 56.72 kB / 0.5051 GB, free: 20.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005376/0.3508, allocations: 3.404 MB / 0.5084 GB, free: 19.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.351, allocations: 0.7955 MB / 0.5092 GB, free: 18.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.3512, allocations: 56.33 kB / 0.5092 GB, free: 18.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.3513, allocations: 86.67 kB / 0.5093 GB, free: 18.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3513, allocations: 0 / 0.5093 GB, free: 18.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.3862, allocations: 6.212 MB / 0.5154 GB, free: 17.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.43, allocations: 9.125 kB / 0.5154 GB, free: 17.98 MB / 382.1 MB " [Timeout remaining time 649] (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.137487806961872] Failed to read output from testmodel.py, exit status != 0: 10.51866230298765 10.536167205 10.409197001999999 Calling exit ...