Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.001776/0.001776, allocations: 111.8 kB / 16.41 MB, free: 6.5 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.001969/0.001969, allocations: 191.7 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.426/1.426, 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.09966/0.09966, allocations: 22.34 MB / 319.6 MB, free: 6.738 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.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003021/0.003021, allocations: 63.89 kB / 445.2 MB, free: 8.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1571, allocations: 54.96 MB / 0.4885 GB, free: 1.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003947/0.1611, allocations: 1.873 MB / 0.4903 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004408/0.1616, allocations: 191.4 kB / 0.4905 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.145e-05/0.1617, allocations: 3.938 kB / 0.4905 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1618, allocations: 35.59 kB / 0.4905 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.497e-05/0.1619, allocations: 19.75 kB / 0.4905 GB, free: 15.46 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. [/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.0002312/0.1621, allocations: 91.88 kB / 0.4906 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.1624, allocations: 236.8 kB / 0.4909 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.1626, allocations: 64.31 kB / 0.4909 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.563e-05/0.1627, allocations: 87.62 kB / 0.491 GB, free: 15 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.1628, allocations: 95.53 kB / 0.4911 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.1629, allocations: 20 kB / 0.4911 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.332e-05/0.1629, allocations: 20 kB / 0.4911 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.163, allocations: 47.83 kB / 0.4912 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.993e-05/0.1631, allocations: 95.39 kB / 0.4913 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.1633, allocations: 195 kB / 0.4915 GB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1633, allocations: 4 kB / 0.4915 GB, free: 14.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1633, allocations: 0 / 0.4915 GB, free: 14.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1634, allocations: 0 / 0.4915 GB, free: 14.53 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008673/0.1642, allocations: 0.5106 MB / 0.492 GB, free: 13.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1643, allocations: 8.031 kB / 0.492 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.119e-05/0.1643, allocations: 66.66 kB / 0.492 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.479e-05/0.1644, allocations: 24.8 kB / 0.4921 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.1647, allocations: 239 kB / 0.4923 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.1648, allocations: 20.81 kB / 0.4923 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.1648, allocations: 28.38 kB / 0.4923 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.1653, allocations: 236.8 kB / 0.4926 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1653, allocations: 3.938 kB / 0.4926 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.1653, allocations: 4 kB / 0.4926 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1654, allocations: 8 kB / 0.4926 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.1657, allocations: 161 kB / 0.4927 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.1674, allocations: 1.022 MB / 0.4937 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.1677, allocations: 158.5 kB / 0.4939 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.1679, allocations: 72.83 kB / 0.4939 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.1679, allocations: 0 / 0.4939 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.168, allocations: 42.56 kB / 0.494 GB, free: 11.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.102e-06/0.168, allocations: 0 / 0.494 GB, free: 11.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005866/0.1685, allocations: 244.8 kB / 0.4942 GB, free: 11.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.1686, allocations: 55.41 kB / 0.4943 GB, free: 11.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.1689, allocations: 215.8 kB / 0.4945 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.169, allocations: 37.69 kB / 0.4945 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1691, allocations: 148.4 kB / 0.4947 GB, free: 11.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.474e-05/0.1692, allocations: 91.25 kB / 0.4947 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.1693, allocations: 69.64 kB / 0.4948 GB, free: 10.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1695, allocations: 338.8 kB / 0.4951 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.1696, allocations: 71.92 kB / 0.4952 GB, free: 10.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.1699, allocations: 166.9 kB / 0.4954 GB, free: 10.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.1714, allocations: 489.2 kB / 0.4958 GB, free: 9.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.1715, allocations: 0 / 0.4958 GB, free: 9.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005745/0.172, allocations: 317.3 kB / 0.4961 GB, free: 9.398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.1721, allocations: 8 kB / 0.4961 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1721, allocations: 0 / 0.4961 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.1721, allocations: 8 kB / 0.4961 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.1724, allocations: 75.91 kB / 0.4962 GB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.1724, allocations: 11.92 kB / 0.4962 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.1726, allocations: 35.73 kB / 0.4963 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.1727, allocations: 16 kB / 0.4963 GB, free: 9.246 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0002306/0.1729, allocations: 150 kB / 0.4964 GB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.173, allocations: 27.8 kB / 0.4964 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004984/0.1735, allocations: 220.9 kB / 0.4967 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.1735, allocations: 7.984 kB / 0.4967 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1735, allocations: 0 / 0.4967 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1735, allocations: 3.938 kB / 0.4967 GB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.174, allocations: 317.3 kB / 0.497 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1741, allocations: 0 / 0.497 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.1744, allocations: 51.97 kB / 0.497 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1744, allocations: 4 kB / 0.497 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.1744, allocations: 4 kB / 0.497 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1744, allocations: 4 kB / 0.497 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1744, allocations: 0 / 0.497 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006216/0.1751, allocations: 390.3 kB / 0.4974 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.1751, allocations: 101 kB / 0.4975 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.1752, allocations: 0 / 0.4975 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.1753, allocations: 15.98 kB / 0.4975 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.1754, allocations: 19.97 kB / 0.4975 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.1754, allocations: 12 kB / 0.4975 GB, free: 7.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1756, allocations: 145 kB / 0.4977 GB, free: 7.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1756, allocations: 4 kB / 0.4977 GB, free: 7.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000301/0.1759, allocations: 47.89 kB / 0.4977 GB, free: 7.648 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0009528/0.1769, allocations: 0.9237 MB / 0.4986 GB, free: 6.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004828/0.1773, allocations: 218.1 kB / 0.4988 GB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1774, allocations: 0 / 0.4988 GB, free: 6.488 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.1776, allocations: 91.89 kB / 0.4989 GB, free: 6.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.1779, allocations: 28.66 kB / 0.499 GB, free: 6.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.1813, allocations: 2.644 MB / 0.5015 GB, free: 3.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1817, allocations: 0.752 MB / 0.5023 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.1818, allocations: 30.28 kB / 0.5023 GB, free: 2.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.182, allocations: 75.41 kB / 0.5024 GB, free: 2.699 MB / 382.1 MB Notification: Performance of SimCode: time 2.545e-06/0.182, allocations: 0 / 0.5024 GB, free: 2.699 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/0.395, allocations: 4.641 MB / 0.5069 GB, free: 20.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.331, allocations: 18.03 kB / 0.5069 GB, free: 20.43 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_with_locks_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.998861985979602] Failed to read output from testmodel.py, exit status != 0: 8.400762679986656 8.411185375 8.245237026 Calling exit ...