Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.0008679/0.0008679, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001515/0.001515, allocations: 172.7 kB / 15.95 MB, free: 208 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.398/1.398, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2559/0.2559, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 19.86 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3599, allocations: 55.98 MB / 438 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002255/0.3622, allocations: 1.648 MB / 439.7 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00091/0.3631, allocations: 0.6484 MB / 440.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.3632, allocations: 6.5 kB / 440.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003322/0.3636, allocations: 53.14 kB / 440.4 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.3638, allocations: 86.45 kB / 440.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.364, allocations: 136.2 kB / 440.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003764/0.3644, allocations: 379.1 kB / 441 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.3646, allocations: 67.02 kB / 441 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.3648, allocations: 182.5 kB / 441.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.3651, allocations: 195.7 kB / 441.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.3651, allocations: 10.25 kB / 441.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.3652, allocations: 8.625 kB / 441.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.3653, allocations: 88.77 kB / 441.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.9e-05/0.3654, allocations: 68.73 kB / 441.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.3656, allocations: 202.9 kB / 441.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3656, allocations: 0 / 441.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3656, allocations: 0 / 441.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3656, allocations: 2.562 kB / 441.8 MB, free: 37.01 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001606/0.3672, allocations: 0.7242 MB / 442.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3673, allocations: 10.69 kB / 442.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.951e-05/0.3673, allocations: 55.75 kB / 442.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.621e-05/0.3674, allocations: 36.31 kB / 442.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.3682, allocations: 413.1 kB / 443 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.3682, allocations: 14.11 kB / 443 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.3682, allocations: 19.78 kB / 443 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.3686, allocations: 197.4 kB / 443.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/0.3686, allocations: 0 / 443.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.3686, allocations: 10.97 kB / 443.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.3686, allocations: 3 kB / 443.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003268/0.369, allocations: 200.8 kB / 443.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.37, allocations: 0.7049 MB / 444.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.3707, allocations: 307.9 kB / 444.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3709, allocations: 133.4 kB / 444.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.3709, allocations: 0 / 444.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.3709, allocations: 37.16 kB / 444.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.022e-06/0.371, allocations: 0 / 444.6 MB, free: 35.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006271/0.3716, allocations: 370.5 kB / 445 MB, free: 35.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.3716, allocations: 51.41 kB / 445 MB, free: 35.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.3724, allocations: 426.1 kB / 445.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3724, allocations: 32.7 kB / 445.5 MB, free: 35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.3725, allocations: 160.9 kB / 445.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.995e-05/0.3726, allocations: 89.86 kB / 445.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.3726, allocations: 10.84 kB / 445.7 MB, free: 34.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.766e-05/0.3727, allocations: 343 kB / 446.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.3728, allocations: 93.62 kB / 446.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.373, allocations: 91.64 kB / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.3732, allocations: 110.6 kB / 446.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3732, allocations: 0 / 446.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004289/0.3736, allocations: 328.3 kB / 446.7 MB, free: 34.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3736, allocations: 5.75 kB / 446.7 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3736, allocations: 4 kB / 446.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3737, allocations: 6.75 kB / 446.7 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.3739, allocations: 53.36 kB / 446.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.3739, allocations: 7.109 kB / 446.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.3743, allocations: 68.03 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.3743, allocations: 9.781 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.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 (31): * Single equations (assignments): 31 * 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.0001968/0.3745, allocations: 172.1 kB / 447 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.3746, allocations: 34.38 kB / 447 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005355/0.3751, allocations: 331.8 kB / 447.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3751, allocations: 0 / 447.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3751, allocations: 0 / 447.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3751, allocations: 11.17 kB / 447.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.3755, allocations: 371.9 kB / 447.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3755, allocations: 0 / 447.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.3758, allocations: 49 kB / 447.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3758, allocations: 4 kB / 447.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.3758, allocations: 6.406 kB / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3759, allocations: 5.812 kB / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.3759, allocations: 3.281 kB / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006386/0.3765, allocations: 0.519 MB / 448.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.554e-05/0.3766, allocations: 118.5 kB / 448.4 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.3766, allocations: 7.406 kB / 448.4 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.377, allocations: 57.25 kB / 448.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/0.377, allocations: 13.02 kB / 448.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.3771, allocations: 3.5 kB / 448.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006084/0.3777, allocations: 338.9 kB / 448.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3777, allocations: 0 / 448.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.378, allocations: 49.62 kB / 448.9 MB, free: 33.03 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,CA2.x_scaled[1],CA1.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 (26): * Single equations (assignments): 26 * 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.0007908/0.3788, allocations: 1.068 MB / 449.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000389/0.3792, allocations: 251.5 kB / 450.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3792, allocations: 0 / 450.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.3794, allocations: 129.6 kB / 450.3 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.3798, allocations: 56.33 kB / 450.4 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003835/0.3837, allocations: 2.355 MB / 452.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.3839, allocations: 0.8024 MB / 453.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.3841, allocations: 60.31 kB / 453.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3842, allocations: 112.8 kB / 453.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3842, allocations: 0 / 453.7 MB, free: 30.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.4031, allocations: 5.717 MB / 459.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.4034, allocations: 205.2 kB / 459.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.277, allocations: 1.156 kB / 459.6 MB, free: 29.65 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1) Environment - environmentSimulation: