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.0007173/0.0007173, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0009002/0.0009002, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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.8797/0.8797, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.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.06182/0.06182, allocations: 18.12 MB / 278.1 MB, free: 11.54 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) 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: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 1.125 kB / 415.8 MB, free: 12.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.024e-05/2.236e-05, allocations: 2.281 kB / 415.9 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002345/0.002368, allocations: 1.814 MB / 417.7 MB, free: 11.11 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005544/0.002922, allocations: 189.8 kB / 417.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.003038, allocations: 7.031 kB / 417.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.003183, allocations: 34.89 kB / 417.9 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 6.638e-05/0.00325, allocations: 27.34 kB / 417.9 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.003529, allocations: 93.66 kB / 418 MB, free: 10.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.003837, allocations: 235.6 kB / 418.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.004002, allocations: 41.98 kB / 418.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.83e-05/0.0041, allocations: 85.88 kB / 418.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.004218, allocations: 64.47 kB / 418.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.004268, allocations: 19.19 kB / 418.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.894e-05/0.004297, allocations: 22.88 kB / 418.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.563e-05/0.004343, allocations: 53.78 kB / 418.5 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.004415, allocations: 59.3 kB / 418.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.004701, allocations: 198.3 kB / 418.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004703, allocations: 0 / 418.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.004704, allocations: 3.938 kB / 418.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.004711, allocations: 3.938 kB / 418.8 MB, free: 10.52 MB / 330.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.0006156/0.005327, allocations: 444.6 kB / 419.2 MB, free: 10.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.005368, allocations: 11.39 kB / 419.2 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.005408, allocations: 57.33 kB / 419.3 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.005448, allocations: 25.86 kB / 419.3 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.00568, allocations: 181 kB / 419.5 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.005712, allocations: 18.5 kB / 419.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.00575, allocations: 25.05 kB / 419.5 MB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.006057, allocations: 241.4 kB / 419.8 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.006066, allocations: 192 / 419.8 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.006081, allocations: 6.844 kB / 419.8 MB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.00609, allocations: 13.19 kB / 419.8 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.006334, allocations: 156.7 kB / 419.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.007405, allocations: 0.9505 MB / 420.9 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.007696, allocations: 146 kB / 421 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.007803, allocations: 68.58 kB / 421.1 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.007833, allocations: 2.375 kB / 421.1 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.454e-05/0.007848, allocations: 37.5 kB / 421.1 MB, free: 8.828 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.007849, allocations: 0 / 421.1 MB, free: 8.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004166/0.008266, allocations: 234.7 kB / 421.4 MB, free: 8.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.008293, allocations: 63.09 kB / 421.4 MB, free: 8.656 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.008457, allocations: 224 kB / 421.6 MB, free: 8.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.00847, allocations: 30.92 kB / 421.7 MB, free: 8.473 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.728e-05/0.008537, allocations: 151 kB / 421.8 MB, free: 8.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.008591, allocations: 84.69 kB / 421.9 MB, free: 8.273 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.468e-05/0.008666, allocations: 74.94 kB / 422 MB, free: 8.227 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.215e-05/0.008718, allocations: 335.3 kB / 422.3 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.008836, allocations: 75.67 kB / 422.4 MB, free: 7.879 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.008986, allocations: 167 kB / 422.5 MB, free: 7.742 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008623/0.009849, allocations: 486.4 kB / 423 MB, free: 7.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.009852, allocations: 4.656 kB / 423 MB, free: 7.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003387/0.01019, allocations: 302.4 kB / 423.3 MB, free: 7.359 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.01021, allocations: 13.06 kB / 423.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.01022, allocations: 4.328 kB / 423.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.01023, allocations: 8.719 kB / 423.3 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.01041, allocations: 78.61 kB / 423.4 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.01041, allocations: 5.656 kB / 423.4 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.94e-05/0.0105, allocations: 40.31 kB / 423.5 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.01052, allocations: 11.41 kB / 423.5 MB, free: 7.32 MB / 330.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.0001297/0.01065, allocations: 147.4 kB / 423.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.01067, allocations: 17.19 kB / 423.6 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003002/0.01097, allocations: 241.8 kB / 423.9 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.01098, allocations: 10.27 kB / 423.9 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.01098, allocations: 0 / 423.9 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01099, allocations: 2.375 kB / 423.9 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.01128, allocations: 258.4 kB / 424.1 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01128, allocations: 0.5625 kB / 424.1 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001787/0.01146, allocations: 58.08 kB / 424.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.01146, allocations: 2 kB / 424.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.01148, allocations: 15 kB / 424.2 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.01148, allocations: 4.969 kB / 424.2 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01148, allocations: 0 / 424.2 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003963/0.01188, allocations: 373.7 kB / 424.6 MB, free: 6.605 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.0119, allocations: 19.7 kB / 424.6 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.01192, allocations: 9.797 kB / 424.6 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.356e-05/0.012, allocations: 12.28 kB / 424.6 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.01206, allocations: 24.16 kB / 424.6 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.01207, allocations: 5.609 kB / 424.6 MB, free: 6.578 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.477e-05/0.01214, allocations: 147.1 kB / 424.8 MB, free: 6.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01214, allocations: 0 / 424.8 MB, free: 6.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002092/0.01235, allocations: 49.36 kB / 424.8 MB, free: 6.465 MB / 330.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.0004575/0.01281, allocations: 0.9187 MB / 425.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.01312, allocations: 200.4 kB / 426 MB, free: 5.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.01312, allocations: 0 / 426 MB, free: 5.641 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.01323, allocations: 93.73 kB / 426 MB, free: 5.609 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.01345, allocations: 25.88 kB / 426.1 MB, free: 5.598 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.01558, allocations: 2.623 MB / 428.7 MB, free: 3.715 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.01569, allocations: 141.6 kB / 428.8 MB, free: 3.633 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.7e-05/0.01577, allocations: 27.77 kB / 428.9 MB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.856e-05/0.01586, allocations: 73.62 kB / 428.9 MB, free: 3.578 MB / 330.7 MB Notification: Performance of SimCode: time 1.083e-06/0.01586, allocations: 1.125 kB / 428.9 MB, free: 3.578 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.03776, allocations: 5.376 MB / 434.3 MB, free: 2.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.877/6.915, allocations: 6.75 kB / 434.3 MB, free: 2.09 MB / 330.7 MB " [Timeout remaining time 653] (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: 8.920273263007402] Failed to read output from testmodel.py, exit status != 0: 6.9997372049838305 7.00825976 7.001898972 Calling exit ...