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.0008235/0.0008235, allocations: 99.47 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.0008073/0.0008073, allocations: 177.3 kB / 15.95 MB, free: 216 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.119/1.119, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1693/0.1693, allocations: 22.35 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002842, allocations: 12 kB / 381.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2327, allocations: 55.96 MB / 437.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001356/0.2341, allocations: 1.56 MB / 439.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.2355, allocations: 1.759 MB / 441.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.2357, allocations: 13.78 kB / 441.2 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.236, allocations: 122 kB / 441.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.2364, allocations: 188.9 kB / 441.5 MB, free: 36.56 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.0003394/0.2367, allocations: 267.6 kB / 441.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.2372, allocations: 0.5531 MB / 442.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2373, allocations: 127.7 kB / 442.5 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000311/0.2377, allocations: 399.3 kB / 442.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.2379, allocations: 323 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.772e-05/0.238, allocations: 20.91 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.946e-05/0.2381, allocations: 47.34 kB / 443.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.2382, allocations: 178.2 kB / 443.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.024e-05/0.2383, allocations: 120.2 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.2386, allocations: 0.5373 MB / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.2386, allocations: 0 / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2386, allocations: 0 / 444.1 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.2386, allocations: 4 kB / 444.1 MB, free: 35.57 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.00225/0.2409, allocations: 1.144 MB / 445.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2409, allocations: 8.812 kB / 445.2 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.241, allocations: 75.23 kB / 445.3 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.355e-05/0.2411, allocations: 77.31 kB / 445.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.2424, allocations: 0.7397 MB / 446.1 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.2424, allocations: 29.97 kB / 446.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/0.2425, allocations: 53.59 kB / 446.2 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005033/0.243, allocations: 445.5 kB / 446.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.243, allocations: 7.938 kB / 446.6 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.243, allocations: 14.88 kB / 446.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.243, allocations: 11.81 kB / 446.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.2436, allocations: 414.6 kB / 447.1 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2453, allocations: 1.664 MB / 448.7 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005107/0.2458, allocations: 474.2 kB / 449.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.2458, allocations: 9.359 kB / 449.2 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.272e-05/0.2459, allocations: 30.56 kB / 449.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.483e-06/0.2459, allocations: 0 / 449.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0008135/0.2467, allocations: 0.6291 MB / 449.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.2467, allocations: 56.66 kB / 449.9 MB, free: 32.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.248, allocations: 0.9094 MB / 450.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2481, allocations: 36.39 kB / 450.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.2482, allocations: 309.7 kB / 451.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.634e-05/0.2483, allocations: 167.5 kB / 451.3 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.2483, allocations: 14.78 kB / 451.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.127e-05/0.2484, allocations: 377.8 kB / 451.7 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.2487, allocations: 187.6 kB / 451.9 MB, free: 31.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.249, allocations: 300.5 kB / 452.2 MB, free: 31.08 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.2517, allocations: 1.14 MB / 453.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2517, allocations: 6.625 kB / 453.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007053/0.2525, allocations: 0.6036 MB / 453.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2525, allocations: 12.8 kB / 454 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2525, allocations: 3.469 kB / 454 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.2525, allocations: 8.781 kB / 454 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006002/0.2531, allocations: 158.3 kB / 454.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2531, allocations: 5.5 kB / 454.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005851/0.2537, allocations: 132.8 kB / 454.3 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.2538, allocations: 29.59 kB / 454.3 MB, free: 30.39 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 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002249/0.254, allocations: 235.9 kB / 454.5 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.118e-05/0.2541, allocations: 64.16 kB / 454.6 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007271/0.2548, allocations: 0.5393 MB / 455.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2548, allocations: 4 kB / 455.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2548, allocations: 4.266 kB / 455.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2549, allocations: 0 / 455.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.2554, allocations: 0.6112 MB / 455.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2554, allocations: 0 / 455.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/0.2559, allocations: 89.67 kB / 455.8 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.2559, allocations: 2.312 kB / 455.8 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.2559, allocations: 23.28 kB / 455.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.2559, allocations: 5.266 kB / 455.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2559, allocations: 1.312 kB / 455.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009493/0.2569, allocations: 0.8278 MB / 456.7 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.257, allocations: 166.6 kB / 456.8 MB, free: 28.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.075e-05/0.2571, allocations: 15.81 kB / 456.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.2577, allocations: 98.34 kB / 457 MB, free: 28.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.959e-05/0.2578, allocations: 35.89 kB / 457 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.2578, allocations: 18.55 kB / 457 MB, free: 28.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.2591, allocations: 0.6834 MB / 457.7 MB, free: 28.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2591, allocations: 0 / 457.7 MB, free: 28.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.2595, allocations: 117.1 kB / 457.8 MB, free: 28.68 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 (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.00111/0.2606, allocations: 1.381 MB / 459.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.2612, allocations: 485.6 kB / 459.7 MB, free: 27.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2613, allocations: 0 / 459.7 MB, free: 27.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002872/0.2615, allocations: 227.5 kB / 459.9 MB, free: 27.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.2619, allocations: 82.22 kB / 460 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007738/0.2697, allocations: 6.814 MB / 466.8 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.2701, allocations: 0.9705 MB / 467.7 MB, free: 22.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003002/0.2704, allocations: 114.1 kB / 467.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.2707, allocations: 245.3 kB / 468.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2707, allocations: 0 / 468.1 MB, free: 22.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9296/1.2, allocations: 12.14 MB / 480.2 MB, free: 18.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003351/1.201, allocations: 170 kB / 480.4 MB, free: 18.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/3.365, allocations: 0 / 480.4 MB, free: 18.24 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/linux/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) Environment - environmentSimulation: