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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 189.4 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.188/1.188, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1758/0.1758, allocations: 22.36 MB / 312.4 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 55.91 kB / 380.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.224, allocations: 54.94 MB / 435.3 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002353/0.2263, allocations: 1.912 MB / 437.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003543/0.2267, allocations: 189.5 kB / 437.4 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.042e-05/0.2268, allocations: 3.938 kB / 437.4 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.2269, allocations: 25.61 kB / 437.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.179e-05/0.227, allocations: 13.7 kB / 437.5 MB, free: 38.22 MB / 350.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.0001861/0.2272, allocations: 87.42 kB / 437.6 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.2274, allocations: 235.2 kB / 437.8 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.2275, allocations: 56.86 kB / 437.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.48e-05/0.2276, allocations: 83.67 kB / 437.9 MB, free: 38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.517e-05/0.2277, allocations: 93.58 kB / 438 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.855e-05/0.2277, allocations: 25.34 kB / 438.1 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.397e-05/0.2278, allocations: 18.09 kB / 438.1 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.209e-05/0.2278, allocations: 52.36 kB / 438.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.2279, allocations: 97.64 kB / 438.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.228, allocations: 183 kB / 438.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.228, allocations: 2.812 kB / 438.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.228, allocations: 0 / 438.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.228, allocations: 0 / 438.4 MB, free: 37.75 MB / 350.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.0006043/0.2286, allocations: 0.5102 MB / 438.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.2287, allocations: 10.84 kB / 438.9 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.2287, allocations: 51.48 kB / 439 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.2288, allocations: 28.31 kB / 439 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.2289, allocations: 237.1 kB / 439.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.229, allocations: 19.94 kB / 439.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.229, allocations: 25.62 kB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.2293, allocations: 241.2 kB / 439.5 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2294, allocations: 3.938 kB / 439.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.2294, allocations: 10.78 kB / 439.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2294, allocations: 5.531 kB / 439.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.2297, allocations: 162.1 kB / 439.7 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2309, allocations: 1.031 MB / 440.7 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.2312, allocations: 151.1 kB / 440.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.2313, allocations: 78.83 kB / 440.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.2313, allocations: 2.969 kB / 440.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.097e-05/0.2313, allocations: 30.56 kB / 441 MB, free: 35.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.2313, allocations: 0 / 441 MB, free: 35.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004461/0.2318, allocations: 240.5 kB / 441.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.834e-05/0.2318, allocations: 58.12 kB / 441.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.2319, allocations: 217.6 kB / 441.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.232, allocations: 29.7 kB / 441.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.232, allocations: 153.1 kB / 441.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.2321, allocations: 82.41 kB / 441.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.78e-05/0.2321, allocations: 69.55 kB / 441.8 MB, free: 35.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.337e-05/0.2322, allocations: 339.1 kB / 442.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.2323, allocations: 79.67 kB / 442.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.2325, allocations: 165.5 kB / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.2336, allocations: 477 kB / 442.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2336, allocations: 0 / 442.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004118/0.2341, allocations: 311.6 kB / 443.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.2341, allocations: 7.594 kB / 443.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2341, allocations: 2.594 kB / 443.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.2341, allocations: 9.391 kB / 443.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2344, allocations: 79.86 kB / 443.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2344, allocations: 6.938 kB / 443.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2346, allocations: 39.86 kB / 443.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2346, allocations: 13.53 kB / 443.3 MB, free: 34.35 MB / 350.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.0001652/0.2348, allocations: 154.3 kB / 443.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.796e-05/0.2348, allocations: 25.34 kB / 443.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.2352, allocations: 228.4 kB / 443.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.095e-06/0.2352, allocations: 2.906 kB / 443.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2352, allocations: 0 / 443.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2352, allocations: 0 / 443.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.2355, allocations: 315 kB / 444 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2356, allocations: 0 / 444 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.2359, allocations: 54.97 kB / 444.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2359, allocations: 3.031 kB / 444.1 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.2359, allocations: 14.45 kB / 444.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2359, allocations: 3.938 kB / 444.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2359, allocations: 0 / 444.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.2363, allocations: 385.3 kB / 444.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.851e-05/0.2364, allocations: 101.7 kB / 444.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.2364, allocations: 11.06 kB / 444.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.2366, allocations: 10.95 kB / 444.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.706e-05/0.2366, allocations: 20.08 kB / 444.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2366, allocations: 16.69 kB / 444.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.036e-05/0.2367, allocations: 142.6 kB / 444.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2367, allocations: 0 / 444.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.237, allocations: 42.88 kB / 444.8 MB, free: 33.35 MB / 350.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.0005564/0.2376, allocations: 0.9212 MB / 445.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003616/0.2379, allocations: 215 kB / 445.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2379, allocations: 0.75 kB / 445.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.2381, allocations: 95.67 kB / 446 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.2384, allocations: 28.59 kB / 446.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.2405, allocations: 2.733 MB / 448.8 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001113/0.2406, allocations: 0.7492 MB / 449.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.2407, allocations: 26.14 kB / 449.6 MB, free: 29.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.305e-05/0.2408, allocations: 79.78 kB / 449.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2408, allocations: 4 kB / 449.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01328/0.2541, allocations: 4.342 MB / 454 MB, free: 29.34 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.2543, allocations: 206.8 kB / 454.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/1.885, allocations: 0 / 454.2 MB, free: 29.09 MB / 350.1 MB (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 --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)