Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",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.001075/0.001075, allocations: 108 kB / 15.6 MB, free: 132 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.001076/0.001076, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2269/0.2269, allocations: 22.36 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001372, allocations: 68.06 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2853, allocations: 54.94 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003043/0.2884, allocations: 1.996 MB / 437.9 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2906, allocations: 1.807 MB / 439.7 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.2909, allocations: 9.844 kB / 439.7 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005012/0.2914, allocations: 166 kB / 439.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004702/0.2919, allocations: 217.4 kB / 440.1 MB, free: 36.77 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.2924, allocations: 387.3 kB / 440.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007027/0.2931, allocations: 1.059 MB / 441.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.2933, allocations: 161.7 kB / 441.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.2936, allocations: 407.7 kB / 442.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.294, allocations: 408.3 kB / 442.5 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.725e-05/0.2941, allocations: 65.97 kB / 442.5 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.2942, allocations: 97.56 kB / 442.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.2944, allocations: 231.5 kB / 442.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.2946, allocations: 311.1 kB / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.2951, allocations: 0.7092 MB / 443.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2951, allocations: 3.156 kB / 443.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2952, allocations: 0 / 443.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2952, allocations: 0 / 443.9 MB, free: 35.02 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002791/0.298, allocations: 1.228 MB / 445.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.298, allocations: 13.22 kB / 445.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.733e-05/0.2981, allocations: 72.53 kB / 445.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.2982, allocations: 80.78 kB / 445.3 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2997, allocations: 0.7513 MB / 446 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.2997, allocations: 30.19 kB / 446 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.719e-05/0.2998, allocations: 52.44 kB / 446.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.3004, allocations: 456.9 kB / 446.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3004, allocations: 0 / 446.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.3005, allocations: 10.94 kB / 446.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3005, allocations: 9.406 kB / 446.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.3011, allocations: 422.6 kB / 447 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.303, allocations: 1.649 MB / 448.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006106/0.3036, allocations: 479.2 kB / 449.1 MB, free: 32.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/0.3039, allocations: 204 kB / 449.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.304, allocations: 5.406 kB / 449.3 MB, free: 32.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/0.304, allocations: 37.12 kB / 449.3 MB, free: 32.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.304, allocations: 0 / 449.3 MB, free: 32.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00095/0.3049, allocations: 0.6281 MB / 449.9 MB, free: 31.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.305, allocations: 56.66 kB / 450 MB, free: 31.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.3066, allocations: 0.9086 MB / 450.9 MB, free: 31.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.3066, allocations: 36.33 kB / 450.9 MB, free: 31.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.3068, allocations: 303.9 kB / 451.2 MB, free: 31.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.137e-05/0.3069, allocations: 166.4 kB / 451.4 MB, free: 30.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.3071, allocations: 103.4 kB / 451.5 MB, free: 30.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.3072, allocations: 387.3 kB / 451.9 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.3075, allocations: 192.1 kB / 452.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/0.3078, allocations: 299 kB / 452.4 MB, free: 30.32 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003267/0.3111, allocations: 1.385 MB / 453.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3111, allocations: 3.312 kB / 453.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009793/0.3121, allocations: 0.6154 MB / 454.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3121, allocations: 5.312 kB / 454.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3121, allocations: 12.14 kB / 454.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.3122, allocations: 5.312 kB / 454.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.3129, allocations: 155.7 kB / 454.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.3129, allocations: 9.344 kB / 454.6 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006753/0.3136, allocations: 128.1 kB / 454.7 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.3136, allocations: 19.56 kB / 454.7 MB, free: 29.33 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * 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.0002977/0.314, allocations: 245.9 kB / 454.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3141, allocations: 60.31 kB / 455 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009079/0.315, allocations: 0.5402 MB / 455.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.315, allocations: 3.781 kB / 455.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.315, allocations: 9.156 kB / 455.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.315, allocations: 4 kB / 455.6 MB, free: 28.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006818/0.3157, allocations: 0.6142 MB / 456.2 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3157, allocations: 0 / 456.2 MB, free: 28.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005239/0.3162, allocations: 90.88 kB / 456.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3163, allocations: 2.625 kB / 456.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.3163, allocations: 15.28 kB / 456.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3163, allocations: 2.562 kB / 456.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3163, allocations: 3.938 kB / 456.3 MB, free: 28.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.3174, allocations: 0.8358 MB / 457.1 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.3176, allocations: 164.4 kB / 457.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.05e-05/0.3177, allocations: 13.06 kB / 457.3 MB, free: 27.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006679/0.3183, allocations: 92.53 kB / 457.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-05/0.3185, allocations: 30.41 kB / 457.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.3185, allocations: 14.75 kB / 457.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001461/0.32, allocations: 0.6802 MB / 458.1 MB, free: 27.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.32, allocations: 4 kB / 458.1 MB, free: 27.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004475/0.3204, allocations: 110.9 kB / 458.2 MB, free: 27.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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.001632/0.3221, allocations: 1.382 MB / 459.6 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.3232, allocations: 0.5312 MB / 460.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3232, allocations: 1.125 kB / 460.1 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004181/0.3237, allocations: 234.9 kB / 460.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.3243, allocations: 95.05 kB / 460.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.3348, allocations: 6.622 MB / 467.1 MB, free: 23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.3354, allocations: 0.9599 MB / 468 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003837/0.3358, allocations: 110.8 kB / 468.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/0.3361, allocations: 249.8 kB / 468.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3361, allocations: 0 / 468.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.3689, allocations: 12.25 MB / 480.6 MB, free: 16.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.827, allocations: 15.09 kB / 480.7 MB, free: 16.57 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)