Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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.001204/0.001204, allocations: 109.8 kB / 16.4 MB, free: 6.492 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.001254/0.001254, 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.388/1.388, 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.09977/0.09977, allocations: 22.32 MB / 319.5 MB, free: 6.766 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,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 63.91 kB / 445.3 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1111, allocations: 54.94 MB / 0.4885 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.003079/0.1142, allocations: 1.919 MB / 0.4903 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1153, allocations: 0.5845 MB / 0.4909 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.1154, allocations: 4 kB / 0.4909 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003064/0.1157, allocations: 63.5 kB / 0.491 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.1159, allocations: 51.64 kB / 0.491 GB, free: 14.98 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.1162, allocations: 107.8 kB / 0.4911 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003678/0.1165, allocations: 312 kB / 0.4914 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.1167, allocations: 52.39 kB / 0.4915 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.1168, allocations: 123.5 kB / 0.4916 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.1171, allocations: 131.5 kB / 0.4917 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.1171, allocations: 16 kB / 0.4917 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.1172, allocations: 20 kB / 0.4918 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.965e-05/0.1172, allocations: 51.83 kB / 0.4918 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.589e-05/0.1173, allocations: 99.39 kB / 0.4919 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.1176, allocations: 203 kB / 0.4921 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1176, allocations: 3.984 kB / 0.4921 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1176, allocations: 0 / 0.4921 GB, free: 13.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1176, allocations: 4 kB / 0.4921 GB, free: 13.88 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001283/0.1189, allocations: 0.592 MB / 0.4927 GB, free: 13.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.119, allocations: 8.031 kB / 0.4927 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.119, allocations: 54.67 kB / 0.4927 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.978e-05/0.1191, allocations: 24.8 kB / 0.4928 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.1197, allocations: 315.6 kB / 0.4931 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1197, allocations: 12.38 kB / 0.4931 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.1198, allocations: 16.38 kB / 0.4931 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.1201, allocations: 199.6 kB / 0.4933 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.1202, allocations: 3.938 kB / 0.4933 GB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.1202, allocations: 15.98 kB / 0.4933 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1202, allocations: 7.984 kB / 0.4933 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000341/0.1206, allocations: 151.8 kB / 0.4935 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.1217, allocations: 0.7271 MB / 0.4942 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.1222, allocations: 222.6 kB / 0.4944 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.1224, allocations: 79.06 kB / 0.4945 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.1224, allocations: 7.938 kB / 0.4945 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1224, allocations: 34.56 kB / 0.4945 GB, free: 11.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.1224, allocations: 4 kB / 0.4945 GB, free: 11.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005856/0.123, allocations: 261.7 kB / 0.4947 GB, free: 10.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1231, allocations: 55.41 kB / 0.4948 GB, free: 10.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/0.1236, allocations: 292.9 kB / 0.4951 GB, free: 10.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.1237, allocations: 29.7 kB / 0.4951 GB, free: 10.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1238, allocations: 152.4 kB / 0.4953 GB, free: 10.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.323e-05/0.1238, allocations: 75.38 kB / 0.4953 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.881e-05/0.1239, allocations: 53.7 kB / 0.4954 GB, free: 10.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1241, allocations: 330.8 kB / 0.4957 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1243, allocations: 80.17 kB / 0.4958 GB, free: 9.883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.1245, allocations: 127 kB / 0.4959 GB, free: 9.738 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.1259, allocations: 466.2 kB / 0.4963 GB, free: 9.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.126, allocations: 0 / 0.4963 GB, free: 9.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005162/0.1265, allocations: 279.4 kB / 0.4966 GB, free: 8.984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1265, allocations: 8 kB / 0.4966 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1265, allocations: 192 / 0.4966 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1265, allocations: 8 kB / 0.4966 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.1268, allocations: 63.91 kB / 0.4967 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1269, allocations: 7.984 kB / 0.4967 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.1271, allocations: 47.75 kB / 0.4967 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.1272, allocations: 8 kB / 0.4967 GB, free: 8.844 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) \"Connector of Real output signal\" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real 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: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002243/0.1274, allocations: 158.5 kB / 0.4969 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/0.1274, allocations: 23.8 kB / 0.4969 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004719/0.1279, allocations: 235.6 kB / 0.4971 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1279, allocations: 3.984 kB / 0.4971 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1279, allocations: 4 kB / 0.4971 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.128, allocations: 0 / 0.4971 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.1283, allocations: 301.4 kB / 0.4974 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1283, allocations: 0 / 0.4974 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1286, allocations: 47.86 kB / 0.4975 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1286, allocations: 4 kB / 0.4975 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.1287, allocations: 4 kB / 0.4975 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1287, allocations: 4 kB / 0.4975 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1287, allocations: 0 / 0.4975 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006047/0.1293, allocations: 400.6 kB / 0.4979 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.783e-05/0.1294, allocations: 104.9 kB / 0.498 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.1294, allocations: 12 kB / 0.498 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.1297, allocations: 31.95 kB / 0.498 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.933e-05/0.1298, allocations: 11.98 kB / 0.498 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.1298, allocations: 4 kB / 0.498 GB, free: 7.422 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004419/0.1302, allocations: 228.4 kB / 0.4982 GB, free: 7.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1302, allocations: 3.938 kB / 0.4982 GB, free: 7.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1305, allocations: 36 kB / 0.4983 GB, free: 7.156 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009384/0.1315, allocations: 0.9439 MB / 0.4992 GB, free: 6.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000424/0.1319, allocations: 197.5 kB / 0.4994 GB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1319, allocations: 0 / 0.4994 GB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.1321, allocations: 95.78 kB / 0.4995 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1325, allocations: 36.41 kB / 0.4995 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.1367, allocations: 2.747 MB / 0.5022 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.1371, allocations: 0.7558 MB / 0.5029 GB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.1372, allocations: 37.94 kB / 0.503 GB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.1374, allocations: 79.41 kB / 0.503 GB, free: 2.113 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1374, allocations: 0 / 0.503 GB, free: 2.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2167/0.354, allocations: 4.674 MB / 0.5076 GB, free: 20.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.304, allocations: 4.234 kB / 0.5076 GB, free: 20.5 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.880348213016987] Failed to read output from testmodel.py, exit status != 0: 8.373007720918395 8.390077708 8.269225095 Calling exit ...