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.0009429/0.0009429, allocations: 88.41 kB / 15.36 MB, free: 0.7383 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.006306/0.006306, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.28/1.28, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2517/0.2517, allocations: 22.33 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002875, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2734, allocations: 55.98 MB / 438.7 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.001704/0.2752, allocations: 1.696 MB / 440.4 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008779/0.2761, allocations: 0.6664 MB / 441 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.2762, allocations: 6.594 kB / 441 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.2765, allocations: 65.83 kB / 441.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002089/0.2767, allocations: 88.53 kB / 441.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.277, allocations: 151.8 kB / 441.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.2773, allocations: 430.3 kB / 441.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.2775, allocations: 78.83 kB / 441.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.2776, allocations: 151.9 kB / 442 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.2778, allocations: 188.3 kB / 442.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.2779, allocations: 8.719 kB / 442.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.933e-05/0.2779, allocations: 11.12 kB / 442.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.392e-05/0.278, allocations: 86.2 kB / 442.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.898e-05/0.2781, allocations: 140.3 kB / 442.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.2783, allocations: 273.9 kB / 442.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2783, allocations: 0 / 442.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2783, allocations: 4 kB / 442.7 MB, free: 37.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2783, allocations: 0 / 442.7 MB, free: 37.04 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.00162/0.28, allocations: 0.7217 MB / 443.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.28, allocations: 13 kB / 443.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.2801, allocations: 50.84 kB / 443.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.2801, allocations: 37.81 kB / 443.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008085/0.2809, allocations: 428.5 kB / 443.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.281, allocations: 10.2 kB / 443.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.281, allocations: 22.38 kB / 444 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.2813, allocations: 196.5 kB / 444.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2813, allocations: 4 kB / 444.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.2814, allocations: 11.62 kB / 444.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2814, allocations: 2.719 kB / 444.2 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003159/0.2817, allocations: 202 kB / 444.4 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009941/0.2827, allocations: 0.7027 MB / 445.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006542/0.2834, allocations: 314.9 kB / 445.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.2835, allocations: 124.2 kB / 445.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.2836, allocations: 10.81 kB / 445.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.2836, allocations: 34.55 kB / 445.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.2836, allocations: 4 kB / 445.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000588/0.2842, allocations: 367.2 kB / 445.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.2842, allocations: 54.38 kB / 446 MB, free: 35.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007916/0.285, allocations: 431.7 kB / 446.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.2851, allocations: 29.7 kB / 446.4 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.2851, allocations: 163.9 kB / 446.6 MB, free: 34.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.2852, allocations: 92.23 kB / 446.7 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.2853, allocations: 28.81 kB / 446.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.97e-05/0.2853, allocations: 348.6 kB / 447 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.2855, allocations: 97.22 kB / 447.1 MB, free: 34.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.2856, allocations: 103.7 kB / 447.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002313/0.2879, allocations: 0.6691 MB / 447.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.288, allocations: 0 / 447.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004433/0.2884, allocations: 328 kB / 448.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.2884, allocations: 3 kB / 448.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.2884, allocations: 3.938 kB / 448.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.2885, allocations: 7.969 kB / 448.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.2887, allocations: 56.72 kB / 448.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.2887, allocations: 2.062 kB / 448.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003894/0.2891, allocations: 64.72 kB / 448.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.2892, allocations: 9.719 kB / 448.4 MB, free: 34.04 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 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] 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.2893, allocations: 168.5 kB / 448.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/0.2894, allocations: 28.12 kB / 448.5 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005283/0.2899, allocations: 336.3 kB / 448.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.29, allocations: 2.5 kB / 448.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.29, allocations: 0 / 448.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.29, allocations: 5.75 kB / 448.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.2903, allocations: 364.2 kB / 449.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2903, allocations: 3.938 kB / 449.2 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/0.2906, allocations: 49.97 kB / 449.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2906, allocations: 1.844 kB / 449.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.2907, allocations: 11.72 kB / 449.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2907, allocations: 0.5938 kB / 449.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2907, allocations: 3.938 kB / 449.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.2913, allocations: 0.511 MB / 449.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.2914, allocations: 116.7 kB / 449.9 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.474e-05/0.2914, allocations: 9.766 kB / 449.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004288/0.2919, allocations: 59.06 kB / 450 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.2919, allocations: 12.33 kB / 450 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.2919, allocations: 10.33 kB / 450 MB, free: 33.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006951/0.2926, allocations: 336.8 kB / 450.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2926, allocations: 0 / 450.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000282/0.2929, allocations: 60.19 kB / 450.4 MB, free: 32.89 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 (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.0007597/0.2937, allocations: 1.068 MB / 451.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003932/0.2941, allocations: 266.3 kB / 451.7 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2941, allocations: 0 / 451.7 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.2943, allocations: 129.3 kB / 451.9 MB, free: 31.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.2948, allocations: 58.39 kB / 451.9 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.2994, allocations: 3.508 MB / 455.4 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.2996, allocations: 0.7953 MB / 456.2 MB, free: 29.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.2998, allocations: 61.06 kB / 456.3 MB, free: 29.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3, allocations: 106.2 kB / 456.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3, allocations: 0 / 456.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4134/0.7134, allocations: 5.633 MB / 462 MB, free: 28.79 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.7136, allocations: 205.8 kB / 462.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/2.951, allocations: 1.312 kB / 462.2 MB, free: 28.54 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/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)