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.001157/0.001157, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00113/0.001129, allocations: 195 kB / 16.14 MB, free: 6.648 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.175/1.175, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1724/0.1724, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 55.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2026, allocations: 54.94 MB / 435.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002114/0.2047, allocations: 1.923 MB / 437.1 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002917/0.205, allocations: 183.2 kB / 437.3 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.543e-05/0.2051, allocations: 6.781 kB / 437.3 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.952e-05/0.2052, allocations: 22.94 kB / 437.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-05/0.2053, allocations: 10.84 kB / 437.3 MB, free: 38.03 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.0001573/0.2055, allocations: 92.06 kB / 437.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.2056, allocations: 229.9 kB / 437.6 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.2057, allocations: 55.3 kB / 437.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.128e-05/0.2058, allocations: 74.75 kB / 437.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.675e-05/0.2059, allocations: 90.28 kB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.439e-05/0.2059, allocations: 10.53 kB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.887e-05/0.206, allocations: 10.41 kB / 437.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.206, allocations: 45.83 kB / 437.9 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.532e-05/0.2061, allocations: 91.8 kB / 438 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.2062, allocations: 175.2 kB / 438.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2062, allocations: 0 / 438.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.2062, allocations: 0 / 438.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.2062, allocations: 0 / 438.2 MB, free: 37.61 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.0005964/0.2068, allocations: 0.5098 MB / 438.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.2069, allocations: 12.22 kB / 438.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.64e-05/0.2069, allocations: 54.47 kB / 438.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.2069, allocations: 27.16 kB / 438.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.2071, allocations: 238.9 kB / 439 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.2071, allocations: 20.19 kB / 439 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.2072, allocations: 29.59 kB / 439 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.2075, allocations: 233.8 kB / 439.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.2075, allocations: 3.938 kB / 439.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.2075, allocations: 7.156 kB / 439.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.2075, allocations: 5.969 kB / 439.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.2078, allocations: 165 kB / 439.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.209, allocations: 1.022 MB / 440.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.2093, allocations: 154.3 kB / 440.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2094, allocations: 66.25 kB / 440.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.2094, allocations: 10.33 kB / 440.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.106e-05/0.2094, allocations: 41.38 kB / 440.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.2095, allocations: 0 / 440.7 MB, free: 35.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004379/0.2099, allocations: 237.7 kB / 441 MB, free: 35.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/0.2099, allocations: 61.62 kB / 441 MB, free: 35.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2101, allocations: 209.8 kB / 441.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.2101, allocations: 29.7 kB / 441.3 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.2101, allocations: 157.9 kB / 441.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.2102, allocations: 80.7 kB / 441.5 MB, free: 35.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.2102, allocations: 68.62 kB / 441.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.2103, allocations: 335.3 kB / 441.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.2104, allocations: 78.5 kB / 442 MB, free: 34.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.2106, allocations: 173.7 kB / 442.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.2117, allocations: 475.9 kB / 442.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2118, allocations: 0 / 442.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003986/0.2122, allocations: 310.4 kB / 442.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.2122, allocations: 5.219 kB / 442.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2122, allocations: 7.25 kB / 442.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2122, allocations: 5.062 kB / 442.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.2125, allocations: 83.67 kB / 443 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.2125, allocations: 5.781 kB / 443 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.2126, allocations: 38.98 kB / 443 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.2127, allocations: 15.16 kB / 443.1 MB, free: 34.2 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.0001436/0.2128, allocations: 149.1 kB / 443.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.849e-05/0.2129, allocations: 27.44 kB / 443.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003609/0.2132, allocations: 231.8 kB / 443.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2132, allocations: 2.969 kB / 443.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2133, allocations: 0 / 443.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2133, allocations: 0 / 443.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/0.2136, allocations: 320.4 kB / 443.8 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2136, allocations: 0 / 443.8 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.2139, allocations: 52.5 kB / 443.8 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2139, allocations: 0 / 443.8 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.214, allocations: 14.11 kB / 443.8 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.214, allocations: 3.938 kB / 443.8 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.214, allocations: 4 kB / 443.8 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/0.2144, allocations: 378.5 kB / 444.2 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.968e-05/0.2145, allocations: 98.73 kB / 444.3 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.2145, allocations: 2.844 kB / 444.3 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.2146, allocations: 13.22 kB / 444.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.2147, allocations: 22.66 kB / 444.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.2147, allocations: 9.594 kB / 444.4 MB, free: 33.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.78e-05/0.2148, allocations: 149.1 kB / 444.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2148, allocations: 0 / 444.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002674/0.2151, allocations: 46.16 kB / 444.5 MB, free: 33.21 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.0005499/0.2156, allocations: 0.9198 MB / 445.5 MB, free: 32.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000317/0.216, allocations: 207.5 kB / 445.7 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.216, allocations: 0 / 445.7 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.2161, allocations: 93.95 kB / 445.8 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.2164, allocations: 31.16 kB / 445.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.2185, allocations: 2.742 MB / 448.5 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.2187, allocations: 0.7472 MB / 449.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2188, allocations: 32.61 kB / 449.3 MB, free: 29.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.262e-05/0.2189, allocations: 70.47 kB / 449.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2189, allocations: 0 / 449.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01198/0.2309, allocations: 4.218 MB / 453.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/0.231, allocations: 207.5 kB / 453.8 MB, free: 28.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/1.821, allocations: 0 / 453.8 MB, free: 28.96 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)