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.001119/0.001119, allocations: 100 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.001282/0.001282, allocations: 177.3 kB / 15.94 MB, free: 228 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.445/1.445, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.253/0.253, allocations: 22.34 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003135, allocations: 12 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3576, allocations: 55.98 MB / 437.9 MB, free: 39.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002133/0.3598, allocations: 1.655 MB / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.361, allocations: 0.6501 MB / 440.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002311/0.3613, allocations: 6.75 kB / 440.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004265/0.3617, allocations: 57.25 kB / 440.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003807/0.3621, allocations: 93.27 kB / 440.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.3625, allocations: 122.2 kB / 440.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005543/0.3631, allocations: 260.5 kB / 440.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.3633, allocations: 58.89 kB / 440.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.3638, allocations: 198.6 kB / 441 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.3641, allocations: 171.8 kB / 441.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.822e-05/0.3642, allocations: 11.06 kB / 441.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.3643, allocations: 10 kB / 441.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.3644, allocations: 87.47 kB / 441.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.3645, allocations: 58.45 kB / 441.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002363/0.3647, allocations: 207.7 kB / 441.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3647, allocations: 0 / 441.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3647, allocations: 0 / 441.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3647, allocations: 4 kB / 441.5 MB, free: 36.92 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.001855/0.3666, allocations: 0.7237 MB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3667, allocations: 8.688 kB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.182e-05/0.3667, allocations: 48.12 kB / 442.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.132e-05/0.3668, allocations: 35.53 kB / 442.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009275/0.3678, allocations: 427.7 kB / 442.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.3678, allocations: 11.98 kB / 442.8 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/0.3679, allocations: 19.06 kB / 442.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.3682, allocations: 204.7 kB / 443 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3682, allocations: 0 / 443 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.3682, allocations: 13.91 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3682, allocations: 2.938 kB / 443 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.3686, allocations: 200.5 kB / 443.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.3698, allocations: 0.7037 MB / 443.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006822/0.3705, allocations: 308.7 kB / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.3706, allocations: 2.906 kB / 444.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.3706, allocations: 37.03 kB / 444.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3706, allocations: 0 / 444.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006202/0.3712, allocations: 365.1 kB / 444.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.3713, allocations: 65.95 kB / 444.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008033/0.3721, allocations: 423.7 kB / 445.1 MB, free: 34.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.3721, allocations: 32.86 kB / 445.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.3722, allocations: 160.3 kB / 445.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.3723, allocations: 90.27 kB / 445.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.965e-05/0.3723, allocations: 7.031 kB / 445.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.3724, allocations: 345.9 kB / 445.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.3726, allocations: 90.94 kB / 445.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.3728, allocations: 90.89 kB / 445.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.373, allocations: 115.8 kB / 446 MB, free: 34.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.373, allocations: 0 / 446 MB, free: 34.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005096/0.3735, allocations: 331.2 kB / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.3735, allocations: 6.406 kB / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3735, allocations: 0 / 446.3 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3736, allocations: 3.938 kB / 446.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.3738, allocations: 49.42 kB / 446.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3739, allocations: 7.891 kB / 446.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.3743, allocations: 76.72 kB / 446.4 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.3743, allocations: 9.906 kB / 446.5 MB, free: 34.13 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.000228/0.3745, allocations: 170.1 kB / 446.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.3746, allocations: 30.72 kB / 446.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005591/0.3752, allocations: 327.5 kB / 447 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3752, allocations: 2.938 kB / 447 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3752, allocations: 0 / 447 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.3752, allocations: 3.953 kB / 447 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.3756, allocations: 374.8 kB / 447.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3756, allocations: 3.938 kB / 447.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.3759, allocations: 45.66 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3759, allocations: 3.781 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.376, allocations: 7.188 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.376, allocations: 3.938 kB / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.376, allocations: 0 / 447.4 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007032/0.3767, allocations: 0.5261 MB / 447.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3768, allocations: 117.2 kB / 448 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.3769, allocations: 6.719 kB / 448.1 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004347/0.3773, allocations: 52.94 kB / 448.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.3774, allocations: 15.62 kB / 448.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.3774, allocations: 9.812 kB / 448.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007679/0.3782, allocations: 338.4 kB / 448.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3782, allocations: 4 kB / 448.5 MB, free: 32.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.3785, allocations: 46.59 kB / 448.5 MB, free: 32.98 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.0008973/0.3794, allocations: 1.063 MB / 449.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.3799, allocations: 254.5 kB / 449.8 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3799, allocations: 4 kB / 449.8 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.3801, allocations: 125.8 kB / 449.9 MB, free: 32.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.3805, allocations: 45.23 kB / 450 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00441/0.3849, allocations: 2.34 MB / 452.3 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3852, allocations: 0.8057 MB / 453.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.3854, allocations: 60.52 kB / 453.2 MB, free: 30.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.3856, allocations: 102.4 kB / 453.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3856, allocations: 3.938 kB / 453.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.4071, allocations: 5.704 MB / 459 MB, free: 29.86 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/0.4074, allocations: 190.4 kB / 459.2 MB, free: 29.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.16, allocations: 0 / 459.2 MB, free: 29.61 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: