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.001041/0.001041, allocations: 105.4 kB / 15.7 MB, free: 28 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.001078/0.001078, allocations: 194.4 kB / 16.64 MB, free: 6.453 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.412/1.412, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2296/0.2296, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.91 kB / 381.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3018, allocations: 54.95 MB / 436.1 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.003023/0.3049, allocations: 1.938 MB / 438 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3059, allocations: 0.6644 MB / 438.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.3061, allocations: 2.812 kB / 438.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000344/0.3064, allocations: 73.52 kB / 438.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002264/0.3066, allocations: 99.88 kB / 438.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.3069, allocations: 148.9 kB / 439 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004449/0.3074, allocations: 430.1 kB / 439.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.3076, allocations: 60.2 kB / 439.5 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.3078, allocations: 178.3 kB / 439.6 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.308, allocations: 189.7 kB / 439.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/0.3081, allocations: 19.78 kB / 439.8 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.188e-05/0.3081, allocations: 22.69 kB / 439.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3083, allocations: 98.59 kB / 440 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.984e-05/0.3084, allocations: 119.4 kB / 440.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.3086, allocations: 270.5 kB / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3086, allocations: 2.688 kB / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3086, allocations: 0 / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.3087, allocations: 7.938 kB / 440.3 MB, free: 37.09 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.001706/0.3104, allocations: 0.7433 MB / 441.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.3104, allocations: 10.81 kB / 441.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.848e-05/0.3105, allocations: 47.69 kB / 441.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.617e-05/0.3106, allocations: 33.81 kB / 441.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008207/0.3114, allocations: 419.3 kB / 441.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.3114, allocations: 10.31 kB / 441.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.175e-05/0.3115, allocations: 20.14 kB / 441.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.3117, allocations: 171.1 kB / 441.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3118, allocations: 7.688 kB / 441.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.3118, allocations: 4 kB / 441.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3118, allocations: 3.719 kB / 441.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.3121, allocations: 182.8 kB / 442 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009292/0.3131, allocations: 0.6496 MB / 442.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.3135, allocations: 247.9 kB / 442.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3137, allocations: 106.8 kB / 443 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.3137, allocations: 3.938 kB / 443 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.3138, allocations: 37.41 kB / 443 MB, free: 35.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.3138, allocations: 0 / 443 MB, free: 35.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005881/0.3144, allocations: 346.1 kB / 443.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.3144, allocations: 54.5 kB / 443.4 MB, free: 35.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000777/0.3152, allocations: 421.5 kB / 443.8 MB, free: 35.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.3152, allocations: 28.42 kB / 443.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.3153, allocations: 154.7 kB / 444 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.673e-05/0.3153, allocations: 83.78 kB / 444.1 MB, free: 34.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-05/0.3154, allocations: 40.23 kB / 444.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.449e-05/0.3155, allocations: 344.6 kB / 444.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.3156, allocations: 92.84 kB / 444.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.3158, allocations: 88.53 kB / 444.6 MB, free: 34.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/0.3179, allocations: 0.6277 MB / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3179, allocations: 0 / 445.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004241/0.3184, allocations: 309.1 kB / 445.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3184, allocations: 5.75 kB / 445.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.3184, allocations: 7.922 kB / 445.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.3184, allocations: 2.875 kB / 445.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.3187, allocations: 52.33 kB / 445.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3187, allocations: 0 / 445.6 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/0.3191, allocations: 61.55 kB / 445.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.3191, allocations: 9.219 kB / 445.7 MB, free: 34.2 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.0001962/0.3193, allocations: 175.8 kB / 445.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.464e-05/0.3194, allocations: 33.75 kB / 445.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005003/0.3199, allocations: 306.1 kB / 446.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3199, allocations: 2.969 kB / 446.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3199, allocations: 0 / 446.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3199, allocations: 0 / 446.2 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.3202, allocations: 360.1 kB / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3202, allocations: 0 / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.3205, allocations: 48.8 kB / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3205, allocations: 0 / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.3206, allocations: 13.66 kB / 446.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3206, allocations: 0 / 446.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3206, allocations: 0 / 446.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005863/0.3212, allocations: 0.4895 MB / 447.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.3212, allocations: 110.9 kB / 447.2 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.3213, allocations: 14.77 kB / 447.2 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.3217, allocations: 47.47 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.3217, allocations: 18.25 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.3218, allocations: 5.688 kB / 447.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006624/0.3224, allocations: 330.9 kB / 447.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3224, allocations: 0 / 447.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.3227, allocations: 54.22 kB / 447.7 MB, free: 33.1 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.0007599/0.3235, allocations: 1.036 MB / 448.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.3239, allocations: 233.8 kB / 448.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3239, allocations: 3.938 kB / 448.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.3241, allocations: 121.3 kB / 449.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.3246, allocations: 58.61 kB / 449.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.3294, allocations: 3.275 MB / 452.4 MB, free: 30.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3297, allocations: 0.7917 MB / 453.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.3298, allocations: 66.72 kB / 453.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.33, allocations: 96.44 kB / 453.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.33, allocations: 3 kB / 453.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.3557, allocations: 5.87 MB / 459.2 MB, free: 28.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.112, allocations: 17.77 kB / 459.2 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 & /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)