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.001432/0.001432, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00155/0.00155, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.477/1.477, allocations: 230.6 MB / 256 MB, free: 8.039 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.1106/0.1106, allocations: 24.11 MB / 336.6 MB, free: 11.49 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="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.002111/0.002111, allocations: 73.92 kB / 474.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3545, allocations: 59.6 MB / 0.5212 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00265/0.3572, allocations: 1.898 MB / 0.523 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004383/0.3576, allocations: 202.3 kB / 0.5232 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.412e-05/0.3577, allocations: 5.125 kB / 0.5232 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3578, allocations: 38.61 kB / 0.5233 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.2e-05/0.3579, allocations: 19.53 kB / 0.5233 GB, free: 9.055 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.0002399/0.3581, allocations: 92.47 kB / 0.5234 GB, free: 9.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.3584, allocations: 241.1 kB / 0.5236 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.3585, allocations: 45.38 kB / 0.5236 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.147e-05/0.3586, allocations: 89.56 kB / 0.5237 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.3587, allocations: 92.69 kB / 0.5238 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.914e-05/0.3588, allocations: 19.66 kB / 0.5238 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.3588, allocations: 19.31 kB / 0.5239 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.3588, allocations: 48.58 kB / 0.5239 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.426e-05/0.3589, allocations: 95.05 kB / 0.524 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.3591, allocations: 200.5 kB / 0.5242 GB, free: 8.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3591, allocations: 0 / 0.5242 GB, free: 8.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3591, allocations: 0 / 0.5242 GB, free: 8.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.3591, allocations: 0 / 0.5242 GB, free: 8.582 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.0006963/0.3598, allocations: 450.3 kB / 0.5246 GB, free: 8.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3599, allocations: 10.81 kB / 0.5246 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.193e-05/0.3599, allocations: 54.05 kB / 0.5247 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.36, allocations: 30.02 kB / 0.5247 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002399/0.3602, allocations: 181.2 kB / 0.5249 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.3602, allocations: 22.78 kB / 0.5249 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.3603, allocations: 24.33 kB / 0.5249 GB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.3607, allocations: 235.2 kB / 0.5251 GB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3607, allocations: 5.188 kB / 0.5252 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.3607, allocations: 9.156 kB / 0.5252 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.3607, allocations: 6.312 kB / 0.5252 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.361, allocations: 161.5 kB / 0.5253 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.3624, allocations: 0.9958 MB / 0.5263 GB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.3627, allocations: 149.8 kB / 0.5264 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.3628, allocations: 68.2 kB / 0.5265 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.3629, allocations: 3.156 kB / 0.5265 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.211e-05/0.3629, allocations: 36.11 kB / 0.5265 GB, free: 6.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.3629, allocations: 1.062 kB / 0.5265 GB, free: 6.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.000552/0.3634, allocations: 241.8 kB / 0.5268 GB, free: 6.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.127e-05/0.3635, allocations: 55.42 kB / 0.5268 GB, free: 6.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.3636, allocations: 219.5 kB / 0.527 GB, free: 6.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.3636, allocations: 35.11 kB / 0.5271 GB, free: 6.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/0.3637, allocations: 153.9 kB / 0.5272 GB, free: 6.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.3638, allocations: 85.77 kB / 0.5273 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/0.3638, allocations: 66.23 kB / 0.5274 GB, free: 6.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.024e-05/0.3639, allocations: 333.8 kB / 0.5277 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.3641, allocations: 77.73 kB / 0.5278 GB, free: 5.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.3643, allocations: 172 kB / 0.5279 GB, free: 5.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.3656, allocations: 467.5 kB / 0.5284 GB, free: 5.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3656, allocations: 5.125 kB / 0.5284 GB, free: 5.547 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004829/0.3661, allocations: 313.6 kB / 0.5287 GB, free: 5.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3661, allocations: 6.781 kB / 0.5287 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.3661, allocations: 2.344 kB / 0.5287 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.3661, allocations: 6.281 kB / 0.5287 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.3664, allocations: 79.2 kB / 0.5288 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3664, allocations: 10.5 kB / 0.5288 GB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.3666, allocations: 41.97 kB / 0.5288 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.3666, allocations: 15.91 kB / 0.5288 GB, free: 5.359 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.0001803/0.3668, allocations: 149 kB / 0.529 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.577e-05/0.3668, allocations: 25.95 kB / 0.529 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004377/0.3673, allocations: 221.4 kB / 0.5292 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.3673, allocations: 2.344 kB / 0.5292 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3673, allocations: 5.609 kB / 0.5292 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3673, allocations: 5.781 kB / 0.5292 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004305/0.3677, allocations: 282.5 kB / 0.5295 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3677, allocations: 5.031 kB / 0.5295 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.3681, allocations: 54.42 kB / 0.5295 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3681, allocations: 0.9375 kB / 0.5295 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3681, allocations: 6.516 kB / 0.5295 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3681, allocations: 1.125 kB / 0.5295 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3681, allocations: 1.672 kB / 0.5295 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005205/0.3686, allocations: 388.8 kB / 0.5299 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.3686, allocations: 26.55 kB / 0.5299 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.3687, allocations: 5.766 kB / 0.53 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.3688, allocations: 9.516 kB / 0.53 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.565e-05/0.3689, allocations: 24.67 kB / 0.53 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.3689, allocations: 11.06 kB / 0.53 GB, free: 4.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.072e-05/0.369, allocations: 136.8 kB / 0.5301 GB, free: 4.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.369, allocations: 4 kB / 0.5301 GB, free: 4.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.3693, allocations: 40.88 kB / 0.5302 GB, free: 4.492 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.0006545/0.37, allocations: 0.9279 MB / 0.5311 GB, free: 3.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004182/0.3704, allocations: 202.2 kB / 0.5313 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3704, allocations: 0 / 0.5313 GB, free: 3.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.3705, allocations: 85.14 kB / 0.5313 GB, free: 3.633 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.3709, allocations: 30.36 kB / 0.5314 GB, free: 3.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3737, allocations: 2.651 MB / 0.534 GB, free: 1.707 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.3738, allocations: 0.7462 MB / 0.5347 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.3739, allocations: 31.41 kB / 0.5347 GB, free: 1.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.374, allocations: 74.59 kB / 0.5348 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of SimCode: time 8.91e-07/0.374, allocations: 0 / 0.5348 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03501/0.4091, allocations: 4.998 MB / 0.5397 GB, free: 216 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.74, allocations: 1.125 kB / 0.5397 GB, free: 216 kB / 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 & 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: 14.552272969995101] Failed to read output from testmodel.py, exit status != 0: 11.839800104004098 11.856352836 11.493890142 Calling exit ...