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.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.001316/0.001316, allocations: 108.2 kB / 17.15 MB, free: 6.02 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.001419/0.001419, allocations: 208.5 kB / 20.11 MB, free: 3.062 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1085/0.1085, allocations: 24.03 MB / 333.6 MB, free: 1.547 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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: 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.002225/0.002225, allocations: 64.83 kB / 469.1 MB, free: 31.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1038, allocations: 59.54 MB / 0.5163 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003349/0.1072, allocations: 1.888 MB / 0.5181 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004415/0.1076, allocations: 203.1 kB / 0.5183 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.846e-05/0.1077, allocations: 3.938 kB / 0.5183 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.1078, allocations: 39.61 kB / 0.5183 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-05/0.1079, allocations: 19.73 kB / 0.5183 GB, free: 9.555 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.0002235/0.1081, allocations: 87.88 kB / 0.5184 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002847/0.1084, allocations: 240.8 kB / 0.5187 GB, free: 9.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.1085, allocations: 44.38 kB / 0.5187 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.033e-05/0.1086, allocations: 83.7 kB / 0.5188 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.1087, allocations: 99.45 kB / 0.5189 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.1088, allocations: 16 kB / 0.5189 GB, free: 9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.148e-05/0.1088, allocations: 24 kB / 0.5189 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.884e-05/0.1089, allocations: 47.84 kB / 0.519 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.642e-05/0.1089, allocations: 99.44 kB / 0.5191 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.1092, allocations: 199 kB / 0.5192 GB, free: 8.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1092, allocations: 0 / 0.5192 GB, free: 8.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1092, allocations: 0 / 0.5192 GB, free: 8.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1092, allocations: 0 / 0.5192 GB, free: 8.637 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.0008286/0.11, allocations: 0.5106 MB / 0.5197 GB, free: 8.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1101, allocations: 8.625 kB / 0.5198 GB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.21e-05/0.1101, allocations: 54.73 kB / 0.5198 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.243e-05/0.1102, allocations: 24.8 kB / 0.5198 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.1105, allocations: 244.6 kB / 0.5201 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.1105, allocations: 16.81 kB / 0.5201 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.51e-05/0.1106, allocations: 24.38 kB / 0.5201 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.111, allocations: 240.8 kB / 0.5203 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.111, allocations: 7.875 kB / 0.5203 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.111, allocations: 11.94 kB / 0.5204 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.111, allocations: 4 kB / 0.5204 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/0.1114, allocations: 161 kB / 0.5205 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001699/0.1131, allocations: 1.022 MB / 0.5215 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.1134, allocations: 156.6 kB / 0.5217 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.1136, allocations: 64.83 kB / 0.5217 GB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1136, allocations: 4 kB / 0.5217 GB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.1136, allocations: 38.56 kB / 0.5218 GB, free: 5.859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.1136, allocations: 0 / 0.5218 GB, free: 5.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006054/0.1143, allocations: 243.7 kB / 0.522 GB, free: 5.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.1143, allocations: 55.41 kB / 0.522 GB, free: 5.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1145, allocations: 215.1 kB / 0.5222 GB, free: 5.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1146, allocations: 25.7 kB / 0.5223 GB, free: 5.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1147, allocations: 160.4 kB / 0.5224 GB, free: 5.129 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.997e-05/0.1147, allocations: 83.27 kB / 0.5225 GB, free: 5.047 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.987e-05/0.1148, allocations: 73.69 kB / 0.5226 GB, free: 4.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.115, allocations: 338.8 kB / 0.5229 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.1152, allocations: 71.75 kB / 0.523 GB, free: 4.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.1154, allocations: 164.5 kB / 0.5231 GB, free: 4.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.1169, allocations: 481.5 kB / 0.5236 GB, free: 3.852 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1169, allocations: 0 / 0.5236 GB, free: 3.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005489/0.1175, allocations: 313.1 kB / 0.5239 GB, free: 3.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1175, allocations: 4 kB / 0.5239 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.1175, allocations: 4.375 kB / 0.5239 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.1175, allocations: 8 kB / 0.5239 GB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.1178, allocations: 75.91 kB / 0.524 GB, free: 3.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1178, allocations: 4 kB / 0.524 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.118, allocations: 43.72 kB / 0.524 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.118, allocations: 15.94 kB / 0.524 GB, free: 3.387 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.0002104/0.1182, allocations: 149.8 kB / 0.5242 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.1183, allocations: 23.8 kB / 0.5242 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00048/0.1188, allocations: 227.2 kB / 0.5244 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1188, allocations: 0 / 0.5244 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1188, allocations: 4 kB / 0.5244 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.1188, allocations: 4 kB / 0.5244 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005047/0.1193, allocations: 313.4 kB / 0.5247 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1193, allocations: 0 / 0.5247 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003344/0.1196, allocations: 67.84 kB / 0.5248 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1196, allocations: 0 / 0.5248 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1196, allocations: 4 kB / 0.5248 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1197, allocations: 0 / 0.5248 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1197, allocations: 0 / 0.5248 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006114/0.1203, allocations: 389.1 kB / 0.5252 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.38e-05/0.1203, allocations: 104.9 kB / 0.5253 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.1204, allocations: 8 kB / 0.5253 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.1205, allocations: 11.98 kB / 0.5253 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.1206, allocations: 23.97 kB / 0.5253 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.1206, allocations: 4 kB / 0.5253 GB, free: 1.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.1207, allocations: 143.5 kB / 0.5254 GB, free: 1.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1207, allocations: 0 / 0.5254 GB, free: 1.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.121, allocations: 43.94 kB / 0.5255 GB, free: 1.797 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.0009461/0.122, allocations: 0.9346 MB / 0.5264 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004462/0.1224, allocations: 192.2 kB / 0.5266 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1224, allocations: 4.188 kB / 0.5266 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.1226, allocations: 95.89 kB / 0.5267 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.1229, allocations: 24.66 kB / 0.5267 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.1262, allocations: 2.651 MB / 0.5293 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.1266, allocations: 0.7482 MB / 0.53 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1267, allocations: 30.28 kB / 0.53 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.1269, allocations: 75.41 kB / 0.5301 GB, free: 12.86 MB / 398.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1269, allocations: 0 / 0.5301 GB, free: 12.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.1558, allocations: 4.685 MB / 0.5347 GB, free: 8.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/8.328, allocations: 8.391 kB / 0.5347 GB, free: 8.262 MB / 398.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: 11.215266193030402] Failed to read output from testmodel.py, exit status != 0: 8.399874408030882 8.422062401 8.308740175 Calling exit ...