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.0009491/0.0009491, allocations: 91.77 kB / 15.36 MB, free: 0.7344 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.006374/0.006375, allocations: 169.3 kB / 16.26 MB, free: 6.617 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.399/1.399, 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.1949/0.1949, allocations: 22.35 MB / 313.8 MB, free: 13.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002948, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2507, allocations: 55.97 MB / 438.7 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001654/0.2524, allocations: 1.642 MB / 440.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.2545, allocations: 1.789 MB / 442.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/0.2548, allocations: 7 kB / 442.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.2552, allocations: 131.9 kB / 442.2 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004408/0.2557, allocations: 200.3 kB / 442.4 MB, free: 36.66 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.0005019/0.2562, allocations: 349.5 kB / 442.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006455/0.2569, allocations: 0.9981 MB / 443.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.2571, allocations: 155.3 kB / 443.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.2573, allocations: 320 kB / 444.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.2577, allocations: 365 kB / 444.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.2577, allocations: 21.03 kB / 444.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.2578, allocations: 65.3 kB / 444.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.258, allocations: 185.3 kB / 444.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.2582, allocations: 283.8 kB / 445.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004115/0.2586, allocations: 0.6631 MB / 445.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2586, allocations: 0 / 445.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2586, allocations: 2.469 kB / 445.8 MB, free: 35.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2586, allocations: 0 / 445.8 MB, free: 35.21 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.002553/0.2612, allocations: 1.13 MB / 446.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2612, allocations: 16 kB / 446.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.908e-05/0.2613, allocations: 78.08 kB / 447 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.732e-05/0.2614, allocations: 76.97 kB / 447.1 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.2628, allocations: 0.7543 MB / 447.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.2628, allocations: 35.47 kB / 447.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.695e-05/0.2629, allocations: 42.75 kB / 447.9 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.2635, allocations: 460.1 kB / 448.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2636, allocations: 0 / 448.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.2636, allocations: 14.88 kB / 448.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.2636, allocations: 9.688 kB / 448.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000632/0.2643, allocations: 426.9 kB / 448.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.2661, allocations: 1.661 MB / 450.5 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.2667, allocations: 476.8 kB / 450.9 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.267, allocations: 201.4 kB / 451.1 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.2671, allocations: 9.75 kB / 451.2 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.2671, allocations: 33.98 kB / 451.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.583e-06/0.2671, allocations: 0 / 451.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.000915/0.268, allocations: 0.6309 MB / 451.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.268, allocations: 56.97 kB / 451.9 MB, free: 31.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.2696, allocations: 0.9142 MB / 452.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.2696, allocations: 36.36 kB / 452.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.2698, allocations: 310.6 kB / 453.1 MB, free: 31.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.364e-05/0.2698, allocations: 156.4 kB / 453.3 MB, free: 31.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.2699, allocations: 65.58 kB / 453.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.002e-05/0.27, allocations: 387.9 kB / 453.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.2703, allocations: 188.2 kB / 453.9 MB, free: 30.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.2706, allocations: 297.8 kB / 454.2 MB, free: 30.59 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/0.2738, allocations: 1.416 MB / 455.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2739, allocations: 3.938 kB / 455.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000859/0.2747, allocations: 0.6231 MB / 456.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2747, allocations: 6.781 kB / 456.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2748, allocations: 2.719 kB / 456.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2748, allocations: 5.125 kB / 456.3 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.2755, allocations: 153 kB / 456.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.2755, allocations: 6.375 kB / 456.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006703/0.2762, allocations: 139.4 kB / 456.5 MB, free: 29.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.2762, allocations: 24.06 kB / 456.6 MB, free: 29.59 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 sytem: 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.000258/0.2765, allocations: 240.3 kB / 456.8 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.263e-05/0.2766, allocations: 65.44 kB / 456.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008262/0.2774, allocations: 0.5366 MB / 457.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.2774, allocations: 4.906 kB / 457.4 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2774, allocations: 3.938 kB / 457.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.2775, allocations: 4 kB / 457.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005541/0.278, allocations: 0.6151 MB / 458 MB, free: 28.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.278, allocations: 0 / 458 MB, free: 28.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.2786, allocations: 90.67 kB / 458.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2786, allocations: 2.594 kB / 458.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.2786, allocations: 16.19 kB / 458.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2786, allocations: 1.344 kB / 458.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2786, allocations: 5.344 kB / 458.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.2797, allocations: 0.8277 MB / 459 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.2798, allocations: 171.4 kB / 459.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.2799, allocations: 11.62 kB / 459.2 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006622/0.2805, allocations: 101.1 kB / 459.3 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.2806, allocations: 38.55 kB / 459.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2807, allocations: 12.84 kB / 459.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.2821, allocations: 0.6939 MB / 460 MB, free: 27.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2821, allocations: 0 / 460 MB, free: 27.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004672/0.2826, allocations: 110.8 kB / 460.1 MB, free: 27.89 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.0013/0.2839, allocations: 1.382 MB / 461.5 MB, free: 26.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007969/0.2847, allocations: 482.1 kB / 462 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2847, allocations: 0.875 kB / 462 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000355/0.2851, allocations: 242.7 kB / 462.2 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005976/0.2857, allocations: 91.3 kB / 462.3 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.2961, allocations: 6.846 MB / 469.1 MB, free: 23.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.2966, allocations: 0.9558 MB / 470.1 MB, free: 22.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000377/0.297, allocations: 114.6 kB / 470.2 MB, free: 22.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.2973, allocations: 244.9 kB / 470.4 MB, free: 22.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2973, allocations: 0 / 470.4 MB, free: 22.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.3208, allocations: 11.56 MB / 482 MB, free: 17.32 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001293/0.321, allocations: 186.2 kB / 482.2 MB, free: 17.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.413, allocations: 0 / 482.2 MB, free: 17.07 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)