Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.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.Tuning_brushup.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital",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.001267/0.001267, allocations: 91.84 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.007455/0.007455, allocations: 170.8 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.12/1.12, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1564/0.1564, allocations: 22.35 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 8 kB / 382.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.199, allocations: 55.98 MB / 438.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.PI_loop_analogue_digital): time 0.00139/0.2004, allocations: 1.714 MB / 440.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008606/0.2013, allocations: 0.6874 MB / 441.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.2014, allocations: 6.594 kB / 441.1 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.2016, allocations: 43.5 kB / 441.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.2018, allocations: 43.59 kB / 441.2 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.2021, allocations: 154.7 kB / 441.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.2023, allocations: 327.8 kB / 441.6 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2024, allocations: 75.58 kB / 441.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2026, allocations: 109 kB / 441.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.2027, allocations: 140 kB / 442 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.408e-05/0.2028, allocations: 11.84 kB / 442 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.436e-05/0.2028, allocations: 13.47 kB / 442 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.295e-05/0.2029, allocations: 70.17 kB / 442.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.338e-05/0.203, allocations: 129.2 kB / 442.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.2031, allocations: 270.9 kB / 442.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2031, allocations: 2.75 kB / 442.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2031, allocations: 0 / 442.5 MB, free: 37.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.2032, allocations: 0 / 442.5 MB, free: 37.01 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001082/0.2042, allocations: 0.6862 MB / 443.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.2043, allocations: 15.47 kB / 443.2 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.2043, allocations: 47.69 kB / 443.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.283e-05/0.2044, allocations: 32.09 kB / 443.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004938/0.2049, allocations: 356 kB / 443.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.2049, allocations: 13.55 kB / 443.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.2049, allocations: 16.53 kB / 443.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.2053, allocations: 261.3 kB / 443.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.2053, allocations: 3.938 kB / 443.9 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2053, allocations: 6.969 kB / 443.9 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2054, allocations: 6.812 kB / 443.9 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.2057, allocations: 206.3 kB / 444.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008764/0.2066, allocations: 0.7142 MB / 444.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.2071, allocations: 275.7 kB / 445.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.2073, allocations: 131.8 kB / 445.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.2073, allocations: 2.781 kB / 445.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.2076, allocations: 208.7 kB / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.2076, allocations: 0 / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001873/0.2095, allocations: 0.9676 MB / 446.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.2095, allocations: 137.5 kB / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.2099, allocations: 316.6 kB / 446.8 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.21, allocations: 32.64 kB / 446.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.21, allocations: 158.2 kB / 447 MB, free: 34.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.2101, allocations: 81.08 kB / 447.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.2101, allocations: 33.05 kB / 447.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.226e-05/0.2102, allocations: 338.5 kB / 447.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.2104, allocations: 112.7 kB / 447.6 MB, free: 33.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.2106, allocations: 147.4 kB / 447.7 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.2121, allocations: 0.7462 MB / 448.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2121, allocations: 0 / 448.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008237/0.2129, allocations: 0.5313 MB / 449 MB, free: 33.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.213, allocations: 159.8 kB / 449.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.213, allocations: 4 kB / 449.1 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/0.2132, allocations: 80.2 kB / 449.2 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.2133, allocations: 39.7 kB / 449.2 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.2149, allocations: 1.774 MB / 451 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.2151, allocations: 60.11 kB / 451.1 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.2152, allocations: 10.66 kB / 451.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.099e-06/0.2152, allocations: 5.25 kB / 451.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005205/0.2157, allocations: 406.6 kB / 451.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.2157, allocations: 0 / 451.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001347/0.2158, allocations: 59.77 kB / 451.6 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.216, allocations: 39.73 kB / 451.6 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008827/0.2169, allocations: 1.666 MB / 453.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.2171, allocations: 45.97 kB / 453.3 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.2171, allocations: 12.84 kB / 453.3 MB, free: 29.79 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: Process_d.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_d.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_a.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: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.PI_d.u,$PRE.PI_d.ulino,$PRE.PI_d.ulin,$PRE.PI_d.xfb,PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.2173, allocations: 269.7 kB / 453.6 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.2173, allocations: 28.94 kB / 453.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.11e-05/0.2174, allocations: 38.91 kB / 453.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2174, allocations: 2 kB / 453.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2174, allocations: 2.031 kB / 453.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2174, allocations: 7.422 kB / 453.7 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.2176, allocations: 353 kB / 454 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2177, allocations: 0 / 454 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.2178, allocations: 22.16 kB / 454 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003702/0.2182, allocations: 194.5 kB / 454.2 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.2182, allocations: 16.36 kB / 454.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.22, allocations: 2.484 MB / 456.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.22, allocations: 0 / 456.7 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.2211, allocations: 0.7207 MB / 457.4 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.2211, allocations: 105.2 kB / 457.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.2211, allocations: 6.812 kB / 457.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/0.2214, allocations: 42.69 kB / 457.6 MB, free: 26.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.236e-05/0.2215, allocations: 24.56 kB / 457.6 MB, free: 26.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.2215, allocations: 10.7 kB / 457.6 MB, free: 26.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003964/0.2219, allocations: 238.8 kB / 457.9 MB, free: 26.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2219, allocations: 0.9688 kB / 457.9 MB, free: 26.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003787/0.2223, allocations: 112.5 kB / 458 MB, free: 26.46 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Process_a.x_scaled[1],Process_a.x_scaled[2],PI_a.FO.y,Process_d.x_scaled[1],Process_d.x_scaled[2]) * Number of discrete variables: 5 ($whenCondition1,PI_d.xfb,PI_d.ulin,PI_d.ulino,PI_d.u) * Number of discrete states: 5 (PI_d.u,PI_d.ulino,PI_d.ulin,PI_d.xfb,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00122/0.2235, allocations: 1.263 MB / 459.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000939/0.2245, allocations: 0.9053 MB / 460.1 MB, free: 24.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2245, allocations: 1.344 kB / 460.1 MB, free: 24.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.2249, allocations: 373.9 kB / 460.5 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.2252, allocations: 46.02 kB / 460.5 MB, free: 24.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.2297, allocations: 3.482 MB / 464 MB, free: 22.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.2298, allocations: 0.7783 MB / 464.8 MB, free: 22.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.23, allocations: 61.98 kB / 464.9 MB, free: 22.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.467e-05/0.2301, allocations: 80.56 kB / 464.9 MB, free: 21.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2301, allocations: 0 / 464.9 MB, free: 21.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.2497, allocations: 7.033 MB / 472 MB, free: 21.44 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00014/0.2499, allocations: 227.7 kB / 472.2 MB, free: 21.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.795, allocations: 3.938 kB / 472.2 MB, free: 21.18 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_PI_loop_analogue_digital.fmu > AES_AES.Coursework.Tuning_brushup.PI_loop_analogue_digital.pipe 2>&1)