Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.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.000795/0.000795, allocations: 107 kB / 19.71 MB, free: 0.5078 MB / 13.93 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.0007746/0.0007746, allocations: 219 kB / 23.02 MB, free: 3.094 MB / 13.93 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 0.9078/0.9078, allocations: 230.6 MB / 256.8 MB, free: 3.207 MB / 202.7 MB " [Timeout remaining time 179] 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.06342/0.06342, allocations: 24.39 MB / 337.6 MB, free: 7.312 MB / 266.7 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_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",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.0009918/0.0009918, allocations: 67.89 kB / 475.2 MB, free: 1.496 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3157, allocations: 59.67 MB / 0.5224 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.002237/0.318, allocations: 1.897 MB / 0.5242 GB, free: 8.785 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003639/0.3183, allocations: 201.1 kB / 0.5244 GB, free: 8.641 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.514e-05/0.3184, allocations: 10.19 kB / 0.5244 GB, free: 8.633 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.3185, allocations: 34.09 kB / 0.5245 GB, free: 8.605 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.467e-05/0.3186, allocations: 18.56 kB / 0.5245 GB, free: 8.59 MB / 378.7 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.0002304/0.3188, allocations: 101.3 kB / 0.5246 GB, free: 8.531 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002553/0.3191, allocations: 235.6 kB / 0.5248 GB, free: 8.422 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.3192, allocations: 46.08 kB / 0.5248 GB, free: 8.402 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.46e-05/0.3193, allocations: 80.88 kB / 0.5249 GB, free: 8.363 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.3194, allocations: 97.08 kB / 0.525 GB, free: 8.309 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/0.3195, allocations: 18.97 kB / 0.525 GB, free: 8.309 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.708e-05/0.3195, allocations: 19.81 kB / 0.5251 GB, free: 8.309 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.089e-05/0.3195, allocations: 47.73 kB / 0.5251 GB, free: 8.277 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.154e-05/0.3196, allocations: 103.9 kB / 0.5252 GB, free: 8.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.3198, allocations: 189.4 kB / 0.5254 GB, free: 8.117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3198, allocations: 1.156 kB / 0.5254 GB, free: 8.117 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3198, allocations: 0.7969 kB / 0.5254 GB, free: 8.117 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3198, allocations: 0 / 0.5254 GB, free: 8.117 MB / 378.7 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.000541/0.3204, allocations: 450.5 kB / 0.5258 GB, free: 7.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3204, allocations: 15.14 kB / 0.5258 GB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.3204, allocations: 57.62 kB / 0.5259 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.3205, allocations: 27.42 kB / 0.5259 GB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.3207, allocations: 183.6 kB / 0.5261 GB, free: 7.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.3207, allocations: 18.81 kB / 0.5261 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.3208, allocations: 25.41 kB / 0.5261 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.3211, allocations: 236.5 kB / 0.5264 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3211, allocations: 3.938 kB / 0.5264 GB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.3211, allocations: 10.31 kB / 0.5264 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.3211, allocations: 5.906 kB / 0.5264 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.3213, allocations: 157.5 kB / 0.5265 GB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.3225, allocations: 0.9905 MB / 0.5275 GB, free: 6.547 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.3227, allocations: 148.1 kB / 0.5276 GB, free: 6.477 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.894e-05/0.3228, allocations: 61.38 kB / 0.5277 GB, free: 6.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.3229, allocations: 11.09 kB / 0.5277 GB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.3229, allocations: 36.59 kB / 0.5277 GB, free: 6.398 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.3229, allocations: 0 / 0.5277 GB, free: 6.398 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004132/0.3233, allocations: 235.5 kB / 0.528 GB, free: 6.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.441e-05/0.3233, allocations: 58 kB / 0.528 GB, free: 6.227 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.3235, allocations: 212.3 kB / 0.5282 GB, free: 6.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.3235, allocations: 30.2 kB / 0.5282 GB, free: 6.055 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.3236, allocations: 163.2 kB / 0.5284 GB, free: 5.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.3236, allocations: 80.77 kB / 0.5285 GB, free: 5.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.365e-05/0.3237, allocations: 67.31 kB / 0.5285 GB, free: 5.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.3237, allocations: 335.7 kB / 0.5289 GB, free: 5.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.3238, allocations: 71.73 kB / 0.5289 GB, free: 5.461 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.324, allocations: 172.8 kB / 0.5291 GB, free: 5.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008157/0.3248, allocations: 462 kB / 0.5295 GB, free: 5.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3248, allocations: 1.031 kB / 0.5295 GB, free: 5.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003307/0.3251, allocations: 306.5 kB / 0.5298 GB, free: 4.941 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3252, allocations: 7.031 kB / 0.5298 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3252, allocations: 2.469 kB / 0.5298 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3252, allocations: 4.781 kB / 0.5298 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.3254, allocations: 81.67 kB / 0.5299 GB, free: 4.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3254, allocations: 9.844 kB / 0.5299 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.023e-05/0.3255, allocations: 44.05 kB / 0.53 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.3255, allocations: 14.69 kB / 0.53 GB, free: 4.895 MB / 378.7 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.000146/0.3256, allocations: 145.2 kB / 0.5301 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.3257, allocations: 24.7 kB / 0.5301 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002928/0.3259, allocations: 223.2 kB / 0.5304 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3259, allocations: 2.562 kB / 0.5304 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.326, allocations: 1.312 kB / 0.5304 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.326, allocations: 0 / 0.5304 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003043/0.3263, allocations: 286.7 kB / 0.5306 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.3263, allocations: 4.562 kB / 0.5306 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.3264, allocations: 53.53 kB / 0.5307 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3264, allocations: 1.031 kB / 0.5307 GB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3265, allocations: 14.84 kB / 0.5307 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3265, allocations: 1.125 kB / 0.5307 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3265, allocations: 0.7031 kB / 0.5307 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.3268, allocations: 372.8 kB / 0.5311 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.339e-05/0.3269, allocations: 32.25 kB / 0.5311 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.3269, allocations: 1.062 kB / 0.5311 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.223e-05/0.3269, allocations: 12.84 kB / 0.5311 GB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.327, allocations: 21.66 kB / 0.5311 GB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.327, allocations: 5.266 kB / 0.5311 GB, free: 4.137 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.473e-05/0.3271, allocations: 143.2 kB / 0.5313 GB, free: 4.043 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3271, allocations: 0 / 0.5313 GB, free: 4.043 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001989/0.3273, allocations: 40.47 kB / 0.5313 GB, free: 4.035 MB / 378.7 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.0004417/0.3277, allocations: 0.9198 MB / 0.5322 GB, free: 3.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002833/0.328, allocations: 193.6 kB / 0.5324 GB, free: 3.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.328, allocations: 4.125 kB / 0.5324 GB, free: 3.199 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.3281, allocations: 90.45 kB / 0.5325 GB, free: 3.172 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.3284, allocations: 28.27 kB / 0.5325 GB, free: 3.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.3303, allocations: 2.64 MB / 0.5351 GB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.3304, allocations: 0.7497 MB / 0.5358 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.808e-05/0.3305, allocations: 27.44 kB / 0.5358 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.777e-05/0.3306, allocations: 73.36 kB / 0.5359 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.3306, allocations: 0 / 0.5359 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.3517, allocations: 4.944 MB / 0.5407 GB, free: 15.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.952/7.304, allocations: 9.344 kB / 0.5408 GB, free: 15.14 MB / 394.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_basic_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_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.34131408506073] Failed to read output from testmodel.py, exit status != 0: 7.383990362053737 7.395082697 7.073082245 Calling exit ...