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.001311/0.001311, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001522/0.001522, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2671/0.2671, allocations: 22.34 MB / 313.3 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003229, allocations: 8 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3807, allocations: 55.97 MB / 437.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002018/0.3827, allocations: 1.513 MB / 439.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004871/0.3833, allocations: 198.5 kB / 439.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.3834, allocations: 2.469 kB / 439.6 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.478e-05/0.3834, allocations: 11.25 kB / 439.6 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.3836, allocations: 34.5 kB / 439.6 MB, free: 37.87 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.0002395/0.3838, allocations: 68.69 kB / 439.7 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.3841, allocations: 136 kB / 439.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.3842, allocations: 45.3 kB / 439.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.3843, allocations: 64.66 kB / 440 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.3845, allocations: 84.14 kB / 440 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.945e-05/0.3845, allocations: 9.219 kB / 440 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.366e-05/0.3845, allocations: 6.188 kB / 440 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.051e-05/0.3846, allocations: 42.38 kB / 440.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.3846, allocations: 52.42 kB / 440.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.3848, allocations: 129.3 kB / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3848, allocations: 7.031 kB / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3848, allocations: 0 / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3848, allocations: 0 / 440.3 MB, free: 37.57 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.0007528/0.3856, allocations: 481.6 kB / 440.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3856, allocations: 8.75 kB / 440.8 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.861e-05/0.3857, allocations: 51.61 kB / 440.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.3858, allocations: 23.56 kB / 440.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.3861, allocations: 241.4 kB / 441.1 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.3861, allocations: 17.09 kB / 441.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.3862, allocations: 26.53 kB / 441.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.3866, allocations: 239.8 kB / 441.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3866, allocations: 3.953 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.3866, allocations: 8 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.3866, allocations: 9.969 kB / 441.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.387, allocations: 162.1 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3885, allocations: 1.034 MB / 442.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.3887, allocations: 162.8 kB / 442.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3888, allocations: 7.031 kB / 442.7 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.3888, allocations: 37.94 kB / 442.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.3888, allocations: 0 / 442.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005206/0.3893, allocations: 238.7 kB / 443 MB, free: 35.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.3894, allocations: 51.41 kB / 443 MB, free: 35.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.3896, allocations: 219.6 kB / 443.3 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3896, allocations: 29.7 kB / 443.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.3897, allocations: 153.5 kB / 443.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.3897, allocations: 81.62 kB / 443.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.3898, allocations: 7.094 kB / 443.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.695e-05/0.3899, allocations: 332 kB / 443.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.39, allocations: 67.17 kB / 443.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.3902, allocations: 174.4 kB / 444.1 MB, free: 34.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.3904, allocations: 98.33 kB / 444.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3904, allocations: 2.625 kB / 444.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005519/0.391, allocations: 308.3 kB / 444.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.391, allocations: 5.25 kB / 444.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.391, allocations: 3.438 kB / 444.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.3911, allocations: 3.906 kB / 444.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.3914, allocations: 83.78 kB / 444.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.3914, allocations: 9.5 kB / 444.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.3916, allocations: 47.67 kB / 444.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.3916, allocations: 16.94 kB / 444.6 MB, free: 34.46 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: PI_I.xfb:VARIABLE(fixed = true ) type: Real PI_E.xfb:VARIABLE(fixed = true ) 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_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001933/0.3918, allocations: 150.8 kB / 444.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.3918, allocations: 19.27 kB / 444.8 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000413/0.3923, allocations: 239.3 kB / 445 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3923, allocations: 3.062 kB / 445 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3923, allocations: 4 kB / 445.1 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.3923, allocations: 0 / 445.1 MB, free: 34.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.3927, allocations: 308 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3927, allocations: 2.906 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.393, allocations: 50.83 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.393, allocations: 10.92 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.3931, allocations: 7.422 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3931, allocations: 6.906 kB / 445.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3931, allocations: 0 / 445.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000497/0.3936, allocations: 376 kB / 445.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.015e-05/0.3936, allocations: 101.8 kB / 445.9 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/0.3937, allocations: 10.98 kB / 445.9 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3938, allocations: 10.3 kB / 445.9 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.3939, allocations: 29.34 kB / 445.9 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.3939, allocations: 2.969 kB / 445.9 MB, free: 33.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.218e-05/0.394, allocations: 149.1 kB / 446.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.394, allocations: 0 / 446.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00028/0.3943, allocations: 40.22 kB / 446.1 MB, free: 33.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007834/0.3951, allocations: 0.9112 MB / 447 MB, free: 32.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003664/0.3955, allocations: 206.2 kB / 447.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3955, allocations: 0.75 kB / 447.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.3957, allocations: 97.25 kB / 447.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.3959, allocations: 29.16 kB / 447.4 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.3982, allocations: 3.312 MB / 450.7 MB, free: 29.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.3985, allocations: 0.7521 MB / 451.4 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.3986, allocations: 31.12 kB / 451.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3987, allocations: 76.39 kB / 451.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3987, allocations: 0 / 451.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.4166, allocations: 4.051 MB / 455.6 MB, free: 28.86 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.4168, allocations: 181.4 kB / 455.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.281, allocations: 0 / 455.8 MB, free: 28.62 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/linux/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) Environment - environmentSimulation: