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.001287/0.001287, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001437/0.001437, allocations: 217.4 kB / 23.04 MB, free: 5.078 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.564/1.564, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.1037/0.1037, allocations: 22.93 MB / 336.2 MB, free: 12.61 MB / 270.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.002196/0.002196, allocations: 59.91 kB / 473 MB, free: 7.227 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3854, allocations: 59.31 MB / 0.5199 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002808/0.3882, allocations: 1.899 MB / 0.5217 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004347/0.3886, allocations: 206.7 kB / 0.5219 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.651e-05/0.3887, allocations: 5.531 kB / 0.5219 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.3888, allocations: 34.08 kB / 0.522 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.361e-05/0.3889, allocations: 18.31 kB / 0.522 GB, free: 9.586 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.0002592/0.3892, allocations: 101.3 kB / 0.5221 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002881/0.3895, allocations: 236.7 kB / 0.5223 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.3896, allocations: 41.5 kB / 0.5223 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.27e-05/0.3897, allocations: 86.55 kB / 0.5224 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.3898, allocations: 96.72 kB / 0.5225 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.795e-05/0.3899, allocations: 18.34 kB / 0.5225 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.3899, allocations: 19.09 kB / 0.5226 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.528e-05/0.3899, allocations: 53.42 kB / 0.5226 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.111e-05/0.39, allocations: 92.23 kB / 0.5227 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.3903, allocations: 197.7 kB / 0.5229 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3903, allocations: 0.7969 kB / 0.5229 GB, free: 9.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3903, allocations: 4 kB / 0.5229 GB, free: 9.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.892e-06/0.3903, allocations: 5.25 kB / 0.5229 GB, free: 9.105 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.0008049/0.3911, allocations: 442.3 kB / 0.5233 GB, free: 8.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3912, allocations: 10.86 kB / 0.5233 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.164e-05/0.3912, allocations: 5.344 kB / 0.5233 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.762e-05/0.3912, allocations: 62.08 kB / 0.5234 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.878e-05/0.3913, allocations: 26.3 kB / 0.5234 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.3916, allocations: 181.1 kB / 0.5236 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.3916, allocations: 18.72 kB / 0.5236 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.3917, allocations: 24.44 kB / 0.5236 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.3921, allocations: 247.3 kB / 0.5239 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3921, allocations: 0 / 0.5239 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.3921, allocations: 6.469 kB / 0.5239 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.3921, allocations: 5.406 kB / 0.5239 GB, free: 8.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003858/0.3925, allocations: 161.8 kB / 0.524 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.3941, allocations: 0.994 MB / 0.525 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.3944, allocations: 151.3 kB / 0.5251 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.3945, allocations: 68.72 kB / 0.5252 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.3946, allocations: 2.344 kB / 0.5252 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.569e-05/0.3946, allocations: 32.62 kB / 0.5252 GB, free: 7.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.694e-06/0.3946, allocations: 0 / 0.5252 GB, free: 7.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005725/0.3952, allocations: 252.6 kB / 0.5255 GB, free: 7.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/0.3952, allocations: 53.69 kB / 0.5255 GB, free: 7.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.3953, allocations: 215.8 kB / 0.5257 GB, free: 7.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3954, allocations: 31.02 kB / 0.5258 GB, free: 7.047 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.681e-05/0.3954, allocations: 151.5 kB / 0.5259 GB, free: 6.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.3955, allocations: 83.42 kB / 0.526 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.624e-05/0.3956, allocations: 71.05 kB / 0.5261 GB, free: 6.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/0.3957, allocations: 332.4 kB / 0.5264 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.3958, allocations: 81.09 kB / 0.5265 GB, free: 6.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.396, allocations: 171.3 kB / 0.5266 GB, free: 6.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.3974, allocations: 471.5 kB / 0.5271 GB, free: 6.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.3975, allocations: 1.188 kB / 0.5271 GB, free: 6.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005385/0.398, allocations: 307.6 kB / 0.5274 GB, free: 5.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.398, allocations: 6.406 kB / 0.5274 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.398, allocations: 3.281 kB / 0.5274 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.398, allocations: 4.656 kB / 0.5274 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.3984, allocations: 74.67 kB / 0.5274 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.3984, allocations: 12.55 kB / 0.5275 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.3986, allocations: 51.8 kB / 0.5275 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.3986, allocations: 15.25 kB / 0.5275 GB, free: 5.891 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.0001908/0.3988, allocations: 138.9 kB / 0.5277 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.3988, allocations: 22.23 kB / 0.5277 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004835/0.3993, allocations: 230.2 kB / 0.5279 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3993, allocations: 4.234 kB / 0.5279 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3993, allocations: 0 / 0.5279 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3993, allocations: 5.266 kB / 0.5279 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.3998, allocations: 283.5 kB / 0.5282 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3998, allocations: 3.328 kB / 0.5282 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003452/0.4001, allocations: 59.59 kB / 0.5282 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.4001, allocations: 0.9688 kB / 0.5282 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.4002, allocations: 9.594 kB / 0.5282 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4002, allocations: 5.062 kB / 0.5282 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4002, allocations: 0.5625 kB / 0.5282 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006295/0.4008, allocations: 388.6 kB / 0.5286 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.4008, allocations: 22.61 kB / 0.5286 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.4009, allocations: 6.312 kB / 0.5286 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.401, allocations: 15.48 kB / 0.5287 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.71e-05/0.4011, allocations: 27.95 kB / 0.5287 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.4011, allocations: 5 kB / 0.5287 GB, free: 5.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001027/0.4012, allocations: 143.7 kB / 0.5288 GB, free: 5.027 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4012, allocations: 0 / 0.5288 GB, free: 5.027 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003183/0.4015, allocations: 40 kB / 0.5289 GB, free: 5.02 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.0007599/0.4023, allocations: 0.9226 MB / 0.5298 GB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004563/0.4028, allocations: 199.6 kB / 0.53 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4028, allocations: 0 / 0.53 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.4029, allocations: 90.72 kB / 0.53 GB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.4033, allocations: 30.03 kB / 0.5301 GB, free: 4.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.4068, allocations: 2.647 MB / 0.5327 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.4071, allocations: 0.7499 MB / 0.5334 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.4073, allocations: 31.34 kB / 0.5334 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.4074, allocations: 73.86 kB / 0.5335 GB, free: 1.484 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4074, allocations: 384 / 0.5335 GB, free: 1.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.4354, allocations: 5.017 MB / 0.5384 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.85, allocations: 9.719 kB / 0.5384 GB, free: 0.8633 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.709720087994356] Failed to read output from testmodel.py, exit status != 0: 12.022876070986968 12.051269689 11.655560279 Calling exit ...