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.001844/0.001844, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002272/0.002272, allocations: 215 kB / 20.13 MB, free: 2.949 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.522/1.522, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1038/0.1038, allocations: 22.92 MB / 332.5 MB, free: 2.652 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="cs",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="cs",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.002045/0.002045, allocations: 63.02 kB / 467.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1028, allocations: 59.28 MB / 0.5144 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003215/0.1061, allocations: 1.883 MB / 0.5162 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004661/0.1065, allocations: 215 kB / 0.5164 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.303e-05/0.1066, allocations: 7.938 kB / 0.5164 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.1068, allocations: 31.61 kB / 0.5164 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.332e-05/0.1068, allocations: 15.81 kB / 0.5165 GB, free: 11.27 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.0002468/0.1071, allocations: 95.8 kB / 0.5166 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.1074, allocations: 228.9 kB / 0.5168 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1075, allocations: 44.39 kB / 0.5168 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.465e-05/0.1076, allocations: 83.69 kB / 0.5169 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001467/0.1077, allocations: 99.41 kB / 0.517 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.816e-05/0.1078, allocations: 24 kB / 0.517 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.116e-05/0.1078, allocations: 20 kB / 0.517 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.538e-05/0.1079, allocations: 55.81 kB / 0.5171 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.108, allocations: 87.47 kB / 0.5172 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.1082, allocations: 199 kB / 0.5174 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1082, allocations: 0 / 0.5174 GB, free: 10.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1082, allocations: 0 / 0.5174 GB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1082, allocations: 4 kB / 0.5174 GB, free: 10.35 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.0009107/0.1091, allocations: 0.5145 MB / 0.5179 GB, free: 9.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1092, allocations: 8.625 kB / 0.5179 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.512e-05/0.1092, allocations: 4.625 kB / 0.5179 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.899e-05/0.1093, allocations: 54.73 kB / 0.5179 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.1093, allocations: 24.8 kB / 0.518 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.1096, allocations: 240.7 kB / 0.5182 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.1096, allocations: 16.81 kB / 0.5182 GB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.1097, allocations: 28.38 kB / 0.5182 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004665/0.1102, allocations: 240.5 kB / 0.5185 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1102, allocations: 0 / 0.5185 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.1102, allocations: 8 kB / 0.5185 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1102, allocations: 8 kB / 0.5185 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003744/0.1106, allocations: 157 kB / 0.5186 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.1124, allocations: 1.03 MB / 0.5196 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.1127, allocations: 152.8 kB / 0.5198 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.1129, allocations: 68.77 kB / 0.5198 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.1129, allocations: 8 kB / 0.5198 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1129, allocations: 34.94 kB / 0.5199 GB, free: 7.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.1129, allocations: 4 kB / 0.5199 GB, free: 7.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006185/0.1136, allocations: 239.2 kB / 0.5201 GB, free: 7.324 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.1136, allocations: 55.41 kB / 0.5202 GB, free: 7.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.1138, allocations: 211.1 kB / 0.5204 GB, free: 7.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.1139, allocations: 29.7 kB / 0.5204 GB, free: 7.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.114, allocations: 164.3 kB / 0.5205 GB, free: 6.836 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.106e-05/0.1141, allocations: 87.25 kB / 0.5206 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1142, allocations: 69.69 kB / 0.5207 GB, free: 6.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1143, allocations: 334.8 kB / 0.521 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.1145, allocations: 71.75 kB / 0.5211 GB, free: 6.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.1148, allocations: 168.5 kB / 0.5212 GB, free: 6.066 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.1164, allocations: 476.8 kB / 0.5217 GB, free: 5.559 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1164, allocations: 0 / 0.5217 GB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005831/0.117, allocations: 309.5 kB / 0.522 GB, free: 5.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.117, allocations: 4 kB / 0.522 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.117, allocations: 7.984 kB / 0.522 GB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.117, allocations: 4 kB / 0.522 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.1174, allocations: 83.84 kB / 0.5221 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1174, allocations: 4 kB / 0.5221 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.1175, allocations: 39.72 kB / 0.5221 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.1176, allocations: 20 kB / 0.5222 GB, free: 5.09 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.0002097/0.1178, allocations: 153.9 kB / 0.5223 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.194e-05/0.1178, allocations: 23.84 kB / 0.5223 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.1183, allocations: 226.3 kB / 0.5225 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.1184, allocations: 0 / 0.5225 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1184, allocations: 0 / 0.5225 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1184, allocations: 7.984 kB / 0.5225 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005259/0.1189, allocations: 309.4 kB / 0.5228 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1189, allocations: 3.938 kB / 0.5228 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003572/0.1192, allocations: 55.91 kB / 0.5229 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.1193, allocations: 3.984 kB / 0.5229 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1193, allocations: 8 kB / 0.5229 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1193, allocations: 0 / 0.5229 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1193, allocations: 0 / 0.5229 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006662/0.1199, allocations: 379.6 kB / 0.5233 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.12, allocations: 108.9 kB / 0.5234 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.1201, allocations: 96 / 0.5234 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.1202, allocations: 20.11 kB / 0.5234 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.099e-05/0.1203, allocations: 19.97 kB / 0.5234 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.1203, allocations: 11.94 kB / 0.5234 GB, free: 3.684 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.1204, allocations: 143.5 kB / 0.5236 GB, free: 3.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1204, allocations: 0 / 0.5236 GB, free: 3.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.1208, allocations: 43.94 kB / 0.5236 GB, free: 3.5 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.0009945/0.1218, allocations: 0.9305 MB / 0.5245 GB, free: 2.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004565/0.1222, allocations: 195.8 kB / 0.5247 GB, free: 2.355 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1222, allocations: 0 / 0.5247 GB, free: 2.355 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.1224, allocations: 87.89 kB / 0.5248 GB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.1227, allocations: 30.48 kB / 0.5248 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003568/0.1263, allocations: 2.659 MB / 0.5274 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.1267, allocations: 0.7521 MB / 0.5281 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.1268, allocations: 34.28 kB / 0.5282 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.127, allocations: 75.41 kB / 0.5282 GB, free: 14.55 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.127, allocations: 0 / 0.5282 GB, free: 14.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.1499, allocations: 4.711 MB / 0.5328 GB, free: 9.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.719/8.869, allocations: 4.531 kB / 0.5329 GB, free: 9.949 MB / 398.1 MB " [Timeout remaining time 651] (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 os._exit(0), Time elapsed: 11.69864051695913] Failed to read output from testmodel.py, exit status != 0: 9.00127342203632 9.028227883 8.914533272 Calling exit ...