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.0008611/0.0008612, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008638/0.0008639, allocations: 168.7 kB / 15.95 MB, free: 204 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.437/1.437, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2349/0.2349, allocations: 22.37 MB / 313.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003447, allocations: 12 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 55.98 MB / 438 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.002029/0.3315, allocations: 1.585 MB / 439.6 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.3326, allocations: 0.64 MB / 440.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.3327, allocations: 2.438 kB / 440.3 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004084/0.3331, allocations: 49.08 kB / 440.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.3334, allocations: 91.05 kB / 440.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.3336, allocations: 118.6 kB / 440.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004207/0.3341, allocations: 367.6 kB / 440.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.3342, allocations: 45 kB / 440.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.3344, allocations: 184.5 kB / 441.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002724/0.3347, allocations: 183.8 kB / 441.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.3348, allocations: 8.812 kB / 441.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.331e-05/0.3348, allocations: 12.88 kB / 441.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3349, allocations: 76.72 kB / 441.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.335, allocations: 62.3 kB / 441.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.3352, allocations: 195.9 kB / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3352, allocations: 0 / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3352, allocations: 4 kB / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.657e-06/0.3352, allocations: 0 / 441.6 MB, free: 37.29 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.001685/0.3369, allocations: 0.7099 MB / 442.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.337, allocations: 8.938 kB / 442.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.3371, allocations: 47.72 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.3371, allocations: 29.41 kB / 442.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007926/0.3379, allocations: 411.3 kB / 442.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.338, allocations: 9.656 kB / 442.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.338, allocations: 19.39 kB / 442.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003262/0.3383, allocations: 172.1 kB / 443 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.3384, allocations: 7.953 kB / 443 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.3384, allocations: 6.906 kB / 443 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3384, allocations: 2.781 kB / 443 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.3387, allocations: 179.1 kB / 443.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.3397, allocations: 0.6519 MB / 443.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.3403, allocations: 253.8 kB / 444.1 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.3405, allocations: 106.2 kB / 444.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.3405, allocations: 3.031 kB / 444.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.3405, allocations: 37.38 kB / 444.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.3405, allocations: 0 / 444.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006173/0.3412, allocations: 335.9 kB / 444.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.3412, allocations: 54.47 kB / 444.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007312/0.342, allocations: 428.3 kB / 445 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.342, allocations: 32.58 kB / 445.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.464e-05/0.3421, allocations: 155 kB / 445.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.3421, allocations: 82.36 kB / 445.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.367e-05/0.3422, allocations: 7 kB / 445.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.3423, allocations: 343.6 kB / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.3424, allocations: 84.23 kB / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3426, allocations: 87.83 kB / 445.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.3427, allocations: 105.6 kB / 445.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3428, allocations: 4 kB / 445.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004581/0.3432, allocations: 310.1 kB / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3432, allocations: 2.875 kB / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3433, allocations: 2.688 kB / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3433, allocations: 0 / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.3435, allocations: 53.66 kB / 446.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3435, allocations: 3.938 kB / 446.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.3439, allocations: 69.7 kB / 446.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.3439, allocations: 9.562 kB / 446.4 MB, free: 34.57 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: 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] Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.3441, allocations: 176 kB / 446.5 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.039e-05/0.3442, allocations: 30.89 kB / 446.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.3447, allocations: 309.5 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3447, allocations: 3 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3447, allocations: 0 / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3447, allocations: 3.281 kB / 446.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.3451, allocations: 350.6 kB / 447.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3451, allocations: 4 kB / 447.2 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.3453, allocations: 46.88 kB / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3454, allocations: 2.719 kB / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.3454, allocations: 10.41 kB / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.3454, allocations: 0 / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3454, allocations: 0 / 447.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.346, allocations: 495.4 kB / 447.8 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.3461, allocations: 120.8 kB / 447.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.3461, allocations: 10.22 kB / 447.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.3465, allocations: 53.39 kB / 447.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.591e-05/0.3465, allocations: 10.83 kB / 448 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3466, allocations: 9.828 kB / 448 MB, free: 33.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006182/0.3472, allocations: 333.5 kB / 448.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3472, allocations: 0 / 448.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.3475, allocations: 47.41 kB / 448.3 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: 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 (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.0007896/0.3483, allocations: 1.032 MB / 449.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000409/0.3487, allocations: 234.1 kB / 449.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3487, allocations: 0 / 449.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.3489, allocations: 123 kB / 449.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.3494, allocations: 52.86 kB / 449.8 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004022/0.3534, allocations: 2.277 MB / 452.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.3537, allocations: 0.7908 MB / 452.8 MB, free: 30.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001711/0.3538, allocations: 63.78 kB / 452.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.354, allocations: 104.5 kB / 453 MB, free: 30.78 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.354, allocations: 0 / 453 MB, free: 30.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.3726, allocations: 5.541 MB / 458.5 MB, free: 30.41 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/0.373, allocations: 190.5 kB / 458.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.184, allocations: 4.375 kB / 458.7 MB, free: 30.17 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/linux/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) Environment - environmentSimulation: