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.001493/0.001493, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002149/0.002149, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.483/1.483, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.195/0.195, allocations: 22.36 MB / 312.8 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2363, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.002489/0.2389, allocations: 1.937 MB / 437.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008817/0.2398, allocations: 0.6631 MB / 438.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.247e-05/0.2399, allocations: 12.81 kB / 438.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.2402, allocations: 77.12 kB / 438.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.2404, allocations: 98.91 kB / 438.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.2406, allocations: 144.2 kB / 438.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.2409, allocations: 435.8 kB / 439.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2411, allocations: 57.17 kB / 439.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.2412, allocations: 170.3 kB / 439.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.2414, allocations: 192.6 kB / 439.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.2415, allocations: 26.41 kB / 439.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.872e-05/0.2415, allocations: 21.84 kB / 439.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2416, allocations: 98.36 kB / 439.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.749e-05/0.2417, allocations: 118.2 kB / 439.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.2419, allocations: 260 kB / 440.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2419, allocations: 0 / 440.1 MB, free: 37.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2419, allocations: 3.969 kB / 440.2 MB, free: 37.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2419, allocations: 0 / 440.2 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.001607/0.2435, allocations: 0.7414 MB / 440.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.2436, allocations: 11.53 kB / 440.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.2436, allocations: 45.06 kB / 440.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.2437, allocations: 36.53 kB / 441 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007917/0.2445, allocations: 421.8 kB / 441.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.2445, allocations: 10.25 kB / 441.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.2446, allocations: 12.22 kB / 441.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.2448, allocations: 184.6 kB / 441.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2448, allocations: 0 / 441.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.2449, allocations: 6.906 kB / 441.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2449, allocations: 6.969 kB / 441.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.2452, allocations: 176.6 kB / 441.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008881/0.2461, allocations: 0.651 MB / 442.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004449/0.2465, allocations: 250.5 kB / 442.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.2467, allocations: 107 kB / 442.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.2467, allocations: 6.75 kB / 442.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.186e-05/0.2467, allocations: 34.56 kB / 442.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2468, allocations: 6.781 kB / 442.8 MB, free: 35.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005548/0.2473, allocations: 344.7 kB / 443.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/0.2473, allocations: 58.38 kB / 443.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007779/0.2481, allocations: 415.5 kB / 443.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.2482, allocations: 25.7 kB / 443.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.328e-05/0.2482, allocations: 164 kB / 443.8 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.246e-05/0.2483, allocations: 83.09 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.556e-05/0.2484, allocations: 46.31 kB / 443.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.557e-05/0.2484, allocations: 340.6 kB / 444.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2486, allocations: 85.39 kB / 444.4 MB, free: 34.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.2487, allocations: 92.09 kB / 444.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.2508, allocations: 0.6279 MB / 445.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2509, allocations: 4 kB / 445.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004198/0.2513, allocations: 309 kB / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2513, allocations: 9.688 kB / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2513, allocations: 2.938 kB / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.2513, allocations: 0 / 445.4 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.2516, allocations: 55.75 kB / 445.4 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.2516, allocations: 3.047 kB / 445.5 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003664/0.252, allocations: 65.7 kB / 445.5 MB, free: 34.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.252, allocations: 3.969 kB / 445.5 MB, free: 34.24 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.0001705/0.2522, allocations: 168.5 kB / 445.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.532e-05/0.2522, allocations: 33 kB / 445.7 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004887/0.2527, allocations: 300.5 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2527, allocations: 1.906 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2528, allocations: 2.688 kB / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2528, allocations: 0 / 446 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.2531, allocations: 347.2 kB / 446.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2531, allocations: 4 kB / 446.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.2534, allocations: 52.19 kB / 446.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2534, allocations: 3.938 kB / 446.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.2534, allocations: 9.562 kB / 446.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2534, allocations: 0 / 446.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2534, allocations: 0 / 446.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.254, allocations: 0.4919 MB / 446.9 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.2541, allocations: 107.7 kB / 447 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.679e-05/0.2541, allocations: 18.02 kB / 447 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.2545, allocations: 53.36 kB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.2546, allocations: 13.64 kB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2546, allocations: 9.438 kB / 447.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006746/0.2553, allocations: 329.1 kB / 447.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2553, allocations: 0 / 447.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2556, allocations: 49.91 kB / 447.5 MB, free: 33.15 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.0007/0.2563, allocations: 1.038 MB / 448.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003964/0.2567, allocations: 257.6 kB / 448.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2567, allocations: 2.656 kB / 448.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2569, allocations: 123.8 kB / 448.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.2573, allocations: 68.41 kB / 449 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.2617, allocations: 3.295 MB / 452.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001798/0.2619, allocations: 0.7911 MB / 453 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.262, allocations: 59.67 kB / 453.1 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001452/0.2622, allocations: 104.5 kB / 453.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2622, allocations: 0 / 453.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.2861, allocations: 5.851 MB / 459.1 MB, free: 28.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.5, allocations: 8.812 kB / 459.1 MB, free: 28.95 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)