Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.0009956/0.0009957, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0009745/0.0009745, allocations: 195.1 kB / 16.26 MB, free: 6.621 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.164/1.164, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1626/0.1626, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2021, allocations: 54.95 MB / 435.4 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002367/0.2045, allocations: 2.047 MB / 437.4 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008195/0.2053, allocations: 0.678 MB / 438.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.935e-05/0.2054, allocations: 2.562 kB / 438.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.2057, allocations: 63.45 kB / 438.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.2059, allocations: 90.25 kB / 438.2 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.2061, allocations: 150 kB / 438.4 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002895/0.2064, allocations: 452.9 kB / 438.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.2065, allocations: 75.34 kB / 438.9 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.2067, allocations: 191.9 kB / 439.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.2069, allocations: 209.2 kB / 439.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.2069, allocations: 23.5 kB / 439.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.302e-05/0.207, allocations: 23.91 kB / 439.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.2071, allocations: 103 kB / 439.4 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.611e-05/0.2071, allocations: 131 kB / 439.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.2073, allocations: 289.8 kB / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2073, allocations: 0 / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2073, allocations: 3.969 kB / 439.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.68e-06/0.2073, allocations: 0 / 439.8 MB, free: 36.95 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001509/0.2089, allocations: 0.7554 MB / 440.6 MB, free: 36.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.2089, allocations: 15.47 kB / 440.6 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.643e-05/0.2089, allocations: 54.78 kB / 440.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.209, allocations: 34.84 kB / 440.7 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007238/0.2097, allocations: 421.3 kB / 441.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.2097, allocations: 14.42 kB / 441.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.2098, allocations: 28.66 kB / 441.2 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.2101, allocations: 201.4 kB / 441.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2101, allocations: 0 / 441.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.2101, allocations: 6.844 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2101, allocations: 2.688 kB / 441.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002881/0.2104, allocations: 202.7 kB / 441.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.2113, allocations: 0.698 MB / 442.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000572/0.2119, allocations: 315.9 kB / 442.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.212, allocations: 119.8 kB / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.2121, allocations: 14.69 kB / 442.7 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.116e-05/0.2121, allocations: 37.28 kB / 442.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.2121, allocations: 3.938 kB / 442.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005124/0.2126, allocations: 364 kB / 443.1 MB, free: 35.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.613e-05/0.2126, allocations: 54.16 kB / 443.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000704/0.2134, allocations: 421.6 kB / 443.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.2134, allocations: 29.7 kB / 443.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.2134, allocations: 166.2 kB / 443.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.032e-05/0.2135, allocations: 89.16 kB / 443.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/0.2136, allocations: 41.89 kB / 443.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.603e-05/0.2136, allocations: 352.5 kB / 444.2 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.2137, allocations: 92.72 kB / 444.3 MB, free: 34.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.2139, allocations: 95.03 kB / 444.4 MB, free: 34.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.216, allocations: 0.666 MB / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.216, allocations: 0 / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000385/0.2164, allocations: 326.2 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.2164, allocations: 6.312 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.2164, allocations: 7.938 kB / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.2164, allocations: 0 / 445.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.2167, allocations: 59.44 kB / 445.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.2167, allocations: 2.406 kB / 445.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.217, allocations: 58.84 kB / 445.5 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.217, allocations: 8.922 kB / 445.5 MB, free: 33.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001474/0.2172, allocations: 166.6 kB / 445.7 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.908e-05/0.2173, allocations: 39.5 kB / 445.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004614/0.2177, allocations: 339.7 kB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2177, allocations: 2.562 kB / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2177, allocations: 0 / 446.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2178, allocations: 7.312 kB / 446.1 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002703/0.218, allocations: 366.5 kB / 446.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.218, allocations: 3.938 kB / 446.4 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.2183, allocations: 48.25 kB / 446.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2183, allocations: 4 kB / 446.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.2184, allocations: 12.72 kB / 446.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2184, allocations: 0 / 446.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2184, allocations: 0 / 446.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005244/0.2189, allocations: 0.5143 MB / 447 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.138e-05/0.219, allocations: 119.7 kB / 447.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.219, allocations: 9.766 kB / 447.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.2194, allocations: 53.23 kB / 447.2 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.2195, allocations: 16.55 kB / 447.2 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.2195, allocations: 11.06 kB / 447.2 MB, free: 32.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006124/0.2201, allocations: 333.3 kB / 447.5 MB, free: 32.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2201, allocations: 0 / 447.5 MB, free: 32.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002542/0.2204, allocations: 58.75 kB / 447.6 MB, free: 32.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,CA2.x_scaled[1],CA1.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0006479/0.221, allocations: 1.064 MB / 448.7 MB, free: 31.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003793/0.2214, allocations: 294.1 kB / 449 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.2214, allocations: 0 / 449 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.2216, allocations: 126.1 kB / 449.1 MB, free: 31.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.222, allocations: 58.67 kB / 449.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/0.226, allocations: 3.471 MB / 452.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.2261, allocations: 0.8005 MB / 453.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.2263, allocations: 61.69 kB / 453.5 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.2264, allocations: 101.4 kB / 453.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2264, allocations: 4 kB / 453.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.2418, allocations: 5.928 MB / 459.5 MB, free: 28.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001354/0.242, allocations: 209.6 kB / 459.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.591/1.833, allocations: 1 kB / 459.7 MB, free: 28.29 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)