Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.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_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",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.001031/0.001031, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.0067/0.0067, allocations: 168.9 kB / 16.26 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.32/1.32, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1821/0.1821, allocations: 22.34 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 8 kB / 382.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2337, allocations: 55.98 MB / 438.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.00148/0.2352, allocations: 1.626 MB / 440.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000848/0.236, allocations: 0.6629 MB / 441 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.2362, allocations: 3.062 kB / 441 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002711/0.2364, allocations: 59.91 kB / 441 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.2367, allocations: 83.39 kB / 441.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.2369, allocations: 144.3 kB / 441.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.2372, allocations: 417.5 kB / 441.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.2374, allocations: 47.36 kB / 441.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.2375, allocations: 154.9 kB / 441.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.2378, allocations: 181.3 kB / 442 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.2379, allocations: 7.625 kB / 442 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.438e-05/0.2379, allocations: 14.09 kB / 442.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.229e-05/0.238, allocations: 80.72 kB / 442.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.582e-05/0.2381, allocations: 132 kB / 442.3 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.2383, allocations: 252.3 kB / 442.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2383, allocations: 0 / 442.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2383, allocations: 3.125 kB / 442.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.2383, allocations: 0 / 442.5 MB, free: 37.15 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001525/0.2398, allocations: 0.704 MB / 443.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2399, allocations: 12.31 kB / 443.2 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.95e-05/0.2399, allocations: 47.86 kB / 443.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.24, allocations: 42.38 kB / 443.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007804/0.2408, allocations: 416.7 kB / 443.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.2408, allocations: 17.47 kB / 443.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.2408, allocations: 17.66 kB / 443.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2411, allocations: 172.7 kB / 443.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.2411, allocations: 2.844 kB / 443.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.2411, allocations: 4 kB / 443.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2412, allocations: 2.844 kB / 443.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.2415, allocations: 182 kB / 444.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008882/0.2424, allocations: 0.657 MB / 444.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000426/0.2428, allocations: 242.4 kB / 445 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2429, allocations: 108.2 kB / 445.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.243, allocations: 6.844 kB / 445.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.294e-05/0.243, allocations: 41.47 kB / 445.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.243, allocations: 0 / 445.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005313/0.2435, allocations: 338.3 kB / 445.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/0.2436, allocations: 51.41 kB / 445.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007544/0.2443, allocations: 425.5 kB / 446 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.2444, allocations: 25.7 kB / 446 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.163e-05/0.2444, allocations: 162.4 kB / 446.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.2445, allocations: 77.25 kB / 446.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.2445, allocations: 29.2 kB / 446.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.2446, allocations: 338.5 kB / 446.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.2447, allocations: 99.39 kB / 446.7 MB, free: 34.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2449, allocations: 96.66 kB / 446.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002107/0.247, allocations: 0.6375 MB / 447.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.247, allocations: 0 / 447.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000389/0.2474, allocations: 305.4 kB / 447.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.2474, allocations: 7.875 kB / 447.7 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.2474, allocations: 7.875 kB / 447.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2474, allocations: 4 kB / 447.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.2477, allocations: 54.44 kB / 447.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2477, allocations: 7.281 kB / 447.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.248, allocations: 56.8 kB / 447.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.248, allocations: 10.3 kB / 447.8 MB, free: 34.28 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 FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] FA2.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 (28): * Single equations (assignments): 28 * 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.000158/0.2482, allocations: 180.5 kB / 448 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.912e-05/0.2483, allocations: 26.16 kB / 448 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004552/0.2487, allocations: 315.6 kB / 448.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2487, allocations: 3.969 kB / 448.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2487, allocations: 0 / 448.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2488, allocations: 3.375 kB / 448.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.249, allocations: 348 kB / 448.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.249, allocations: 0 / 448.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.2493, allocations: 41.08 kB / 448.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.2493, allocations: 0 / 448.7 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.2494, allocations: 18.16 kB / 448.8 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2494, allocations: 3.984 kB / 448.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2494, allocations: 2.844 kB / 448.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005265/0.2499, allocations: 0.4899 MB / 449.3 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.592e-05/0.25, allocations: 116.7 kB / 449.4 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.25, allocations: 10.59 kB / 449.4 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.2504, allocations: 52.95 kB / 449.4 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.2505, allocations: 16.38 kB / 449.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.2505, allocations: 5.031 kB / 449.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006447/0.2511, allocations: 332.1 kB / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2511, allocations: 0 / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.2514, allocations: 49.5 kB / 449.8 MB, free: 33.17 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,FA2.x_scaled[1],FA1.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 (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.0006416/0.252, allocations: 1.033 MB / 450.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003209/0.2524, allocations: 237 kB / 451.1 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2524, allocations: 6.562 kB / 451.1 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.2525, allocations: 116.3 kB / 451.2 MB, free: 32.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.253, allocations: 58.31 kB / 451.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004103/0.2571, allocations: 3.415 MB / 454.7 MB, free: 30.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.2572, allocations: 0.7888 MB / 455.5 MB, free: 29.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.2574, allocations: 64.67 kB / 455.5 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.2575, allocations: 98.64 kB / 455.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2576, allocations: 0 / 455.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1891/0.4467, allocations: 5.435 MB / 461.1 MB, free: 29.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.4469, allocations: 207.6 kB / 461.3 MB, free: 28.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.449, allocations: 4.938 kB / 461.3 MB, free: 28.91 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)