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.0009168/0.0009168, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009222/0.0009222, allocations: 177.3 kB / 15.95 MB, free: 216 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.629/1.629, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2542/0.2542, allocations: 22.34 MB / 313.3 MB, free: 13.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003489, allocations: 12 kB / 381.9 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 55.97 MB / 437.9 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.001729/0.3391, allocations: 1.598 MB / 439.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009355/0.34, allocations: 0.631 MB / 440.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.3401, allocations: 0 / 440.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.3405, allocations: 60.92 kB / 440.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.3407, allocations: 93.16 kB / 440.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002581/0.341, allocations: 115.2 kB / 440.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003036/0.3413, allocations: 248.9 kB / 440.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.3414, allocations: 47.5 kB / 440.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.3417, allocations: 182 kB / 440.9 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.3419, allocations: 172.4 kB / 441 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.331e-05/0.342, allocations: 7.906 kB / 441 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.324e-05/0.342, allocations: 10.91 kB / 441 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3421, allocations: 84.38 kB / 441.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.957e-05/0.3422, allocations: 57.2 kB / 441.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.3424, allocations: 193.7 kB / 441.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3424, allocations: 0 / 441.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3424, allocations: 3.938 kB / 441.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3424, allocations: 0 / 441.4 MB, free: 37.07 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.001594/0.344, allocations: 0.7142 MB / 442.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.344, allocations: 8.406 kB / 442.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.3441, allocations: 44.86 kB / 442.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.3441, allocations: 32.16 kB / 442.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.345, allocations: 404.6 kB / 442.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.345, allocations: 10.09 kB / 442.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.3451, allocations: 17.28 kB / 442.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.3454, allocations: 175.9 kB / 442.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3454, allocations: 3.953 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.3454, allocations: 4 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.3454, allocations: 9.781 kB / 442.8 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002924/0.3457, allocations: 178.3 kB / 443 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3467, allocations: 0.6571 MB / 443.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.3472, allocations: 241.5 kB / 443.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.3472, allocations: 7.078 kB / 443.9 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.3473, allocations: 44.66 kB / 443.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.3473, allocations: 0 / 443.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005519/0.3478, allocations: 338.9 kB / 444.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.3479, allocations: 58.34 kB / 444.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007548/0.3486, allocations: 420.3 kB / 444.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3487, allocations: 32.52 kB / 444.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.344e-05/0.3488, allocations: 157.3 kB / 444.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.048e-05/0.3488, allocations: 79.34 kB / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.3489, allocations: 0 / 445 MB, free: 34.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.349, allocations: 349.5 kB / 445.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.3491, allocations: 86.38 kB / 445.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.3492, allocations: 89.73 kB / 445.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.3494, allocations: 107.2 kB / 445.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3494, allocations: 2.906 kB / 445.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004375/0.3499, allocations: 306.6 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3499, allocations: 5.75 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.3499, allocations: 0 / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3499, allocations: 6.797 kB / 445.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.3502, allocations: 56.77 kB / 445.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3502, allocations: 0 / 445.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000354/0.3506, allocations: 69.12 kB / 446 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.3506, allocations: 7.719 kB / 446 MB, free: 34.39 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.0002235/0.3508, allocations: 174.3 kB / 446.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.3509, allocations: 23.94 kB / 446.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004977/0.3514, allocations: 313.3 kB / 446.5 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3514, allocations: 7.031 kB / 446.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3514, allocations: 0 / 446.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3514, allocations: 0 / 446.5 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.3518, allocations: 354.1 kB / 446.9 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3518, allocations: 0 / 446.9 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.3521, allocations: 46.94 kB / 446.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.3521, allocations: 2.969 kB / 446.9 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.3521, allocations: 10.25 kB / 446.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3521, allocations: 0 / 446.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3521, allocations: 4 kB / 446.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006233/0.3528, allocations: 498 kB / 447.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.992e-05/0.3529, allocations: 116.1 kB / 447.5 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.452e-05/0.3529, allocations: 7.062 kB / 447.5 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003711/0.3533, allocations: 53.44 kB / 447.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.3534, allocations: 23.69 kB / 447.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3534, allocations: 3.031 kB / 447.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006513/0.354, allocations: 332.1 kB / 447.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-07/0.354, allocations: 0 / 447.9 MB, free: 33.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.3543, allocations: 48.78 kB / 448 MB, free: 33.29 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.0007299/0.3551, allocations: 1.039 MB / 449 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003772/0.3554, allocations: 234.1 kB / 449.3 MB, free: 32.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3555, allocations: 0 / 449.3 MB, free: 32.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.3556, allocations: 113.9 kB / 449.4 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.356, allocations: 54.81 kB / 449.4 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.3602, allocations: 2.261 MB / 451.7 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.3605, allocations: 0.7984 MB / 452.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.3607, allocations: 64.78 kB / 452.5 MB, free: 30.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.3608, allocations: 92.83 kB / 452.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3608, allocations: 3.938 kB / 452.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.3776, allocations: 5.527 MB / 458.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.3778, allocations: 181.4 kB / 458.3 MB, free: 30 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.801/2.179, allocations: 1.375 kB / 458.3 MB, free: 30 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: