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.001469/0.001469, allocations: 111.3 kB / 16.46 MB, free: 6.035 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.001529/0.001529, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.366/1.366, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09691/0.09691, allocations: 22.69 MB / 325.4 MB, free: 3.535 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.001901/0.001901, allocations: 59.91 kB / 457.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1103, allocations: 58.03 MB / 0.5031 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003127/0.1134, allocations: 1.875 MB / 0.5049 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004458/0.1139, allocations: 195.3 kB / 0.5051 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.216e-05/0.1139, allocations: 4 kB / 0.5051 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.1141, allocations: 39.53 kB / 0.5052 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.014e-05/0.1141, allocations: 15.81 kB / 0.5052 GB, free: 5.512 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.0002194/0.1144, allocations: 91.88 kB / 0.5053 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002809/0.1146, allocations: 236.8 kB / 0.5055 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.1148, allocations: 44.38 kB / 0.5055 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.337e-05/0.1149, allocations: 87.62 kB / 0.5056 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.115, allocations: 91.53 kB / 0.5057 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.115, allocations: 16 kB / 0.5057 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.038e-05/0.1151, allocations: 20 kB / 0.5057 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.003e-05/0.1151, allocations: 51.83 kB / 0.5058 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.682e-05/0.1152, allocations: 103.3 kB / 0.5059 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.1154, allocations: 195.1 kB / 0.5061 GB, free: 4.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1154, allocations: 0 / 0.5061 GB, free: 4.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1154, allocations: 0 / 0.5061 GB, free: 4.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1154, allocations: 0 / 0.5061 GB, free: 4.598 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.0008444/0.1163, allocations: 0.5183 MB / 0.5066 GB, free: 4.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1163, allocations: 12.03 kB / 0.5066 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.1164, allocations: 50.73 kB / 0.5066 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.1164, allocations: 32.73 kB / 0.5067 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.1167, allocations: 240 kB / 0.5069 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.1168, allocations: 16.81 kB / 0.5069 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.1168, allocations: 24.38 kB / 0.5069 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.1172, allocations: 244.7 kB / 0.5072 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1173, allocations: 7.938 kB / 0.5072 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.1173, allocations: 8 kB / 0.5072 GB, free: 3.332 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1173, allocations: 7.984 kB / 0.5072 GB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.1176, allocations: 165 kB / 0.5073 GB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1192, allocations: 1.026 MB / 0.5083 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.1195, allocations: 142.6 kB / 0.5085 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.1197, allocations: 72.83 kB / 0.5086 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1197, allocations: 0 / 0.5086 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1198, allocations: 38.5 kB / 0.5086 GB, free: 1.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.042e-06/0.1198, allocations: 0 / 0.5086 GB, free: 1.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005504/0.1203, allocations: 243.2 kB / 0.5088 GB, free: 1.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.1203, allocations: 59.41 kB / 0.5089 GB, free: 1.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002015/0.1205, allocations: 215.8 kB / 0.5091 GB, free: 1.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1206, allocations: 33.7 kB / 0.5091 GB, free: 1.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.1207, allocations: 144.4 kB / 0.5093 GB, free: 1.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.951e-05/0.1207, allocations: 87.31 kB / 0.5093 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.008e-05/0.1208, allocations: 65.66 kB / 0.5094 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.121, allocations: 338.8 kB / 0.5097 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.1212, allocations: 83.91 kB / 0.5098 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.1214, allocations: 166.8 kB / 0.51 GB, free: 308 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2041/0.3255, allocations: 474 kB / 0.5104 GB, free: 15.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.3255, allocations: 3.281 kB / 0.5104 GB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005806/0.3261, allocations: 314 kB / 0.5107 GB, free: 15.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3261, allocations: 6.297 kB / 0.5107 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3261, allocations: 3.938 kB / 0.5107 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.3261, allocations: 3.969 kB / 0.5107 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.3265, allocations: 81.89 kB / 0.5108 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.3265, allocations: 5.484 kB / 0.5108 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.3266, allocations: 41.58 kB / 0.5109 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.3267, allocations: 17.25 kB / 0.5109 GB, free: 15.38 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.000196/0.3269, allocations: 151.7 kB / 0.511 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.3269, allocations: 21.02 kB / 0.511 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004634/0.3274, allocations: 227.8 kB / 0.5113 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3274, allocations: 3.062 kB / 0.5113 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3274, allocations: 0 / 0.5113 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3274, allocations: 6.547 kB / 0.5113 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004265/0.3278, allocations: 308.5 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3278, allocations: 2.688 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.3281, allocations: 59.31 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.3281, allocations: 0.9062 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3282, allocations: 6.938 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3282, allocations: 2.938 kB / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3282, allocations: 0 / 0.5116 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005332/0.3287, allocations: 386.9 kB / 0.512 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.172e-05/0.3287, allocations: 108.5 kB / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.3288, allocations: 5.844 kB / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3289, allocations: 12.53 kB / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.258e-05/0.329, allocations: 27.42 kB / 0.5121 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.329, allocations: 11.59 kB / 0.5122 GB, free: 14.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.978e-05/0.3291, allocations: 145.7 kB / 0.5123 GB, free: 14.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3291, allocations: 1.219 kB / 0.5123 GB, free: 14.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.3294, allocations: 47.45 kB / 0.5123 GB, free: 14.71 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.0006177/0.33, allocations: 0.9121 MB / 0.5132 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.3304, allocations: 198.8 kB / 0.5134 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3304, allocations: 0 / 0.5134 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.3305, allocations: 85.95 kB / 0.5135 GB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.3308, allocations: 35.75 kB / 0.5135 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.3332, allocations: 2.653 MB / 0.5161 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3334, allocations: 0.7561 MB / 0.5169 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00011/0.3335, allocations: 26.67 kB / 0.5169 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3336, allocations: 71.2 kB / 0.517 GB, free: 11.76 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3336, allocations: 0 / 0.517 GB, free: 11.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3611, allocations: 4.681 MB / 0.5215 GB, free: 11.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.245, allocations: 11.45 kB / 0.5215 GB, free: 11.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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.703367346897721] Failed to read output from testmodel.py, exit status != 0: 8.313599181827158 8.333744511 8.214369028 Calling exit ...