Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.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.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",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.00118/0.00118, allocations: 108 kB / 15.61 MB, free: 152 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.001583/0.001583, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.334/1.334, 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.203/0.203, allocations: 22.34 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.89 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3176, allocations: 54.94 MB / 435.9 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002987/0.3207, allocations: 2.015 MB / 437.9 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3218, allocations: 0.6261 MB / 438.5 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.3219, allocations: 7.875 kB / 438.5 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.3223, allocations: 52.36 kB / 438.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.3225, allocations: 42.05 kB / 438.6 MB, free: 37.75 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.0002621/0.3227, allocations: 122.7 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.3231, allocations: 332.1 kB / 439 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001982/0.3233, allocations: 91.12 kB / 439.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.3234, allocations: 121.3 kB / 439.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3236, allocations: 151.8 kB / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.675e-05/0.3237, allocations: 26.66 kB / 439.4 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4e-05/0.3237, allocations: 26.31 kB / 439.5 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.723e-05/0.3238, allocations: 83.5 kB / 439.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.554e-05/0.3239, allocations: 135 kB / 439.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.3241, allocations: 260.7 kB / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3241, allocations: 0 / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3241, allocations: 3 kB / 439.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3242, allocations: 0 / 439.9 MB, free: 37.12 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001161/0.3253, allocations: 0.6293 MB / 440.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3254, allocations: 8.719 kB / 440.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.579e-05/0.3254, allocations: 62.05 kB / 440.6 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.3255, allocations: 32.25 kB / 440.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.326, allocations: 295.8 kB / 440.9 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.326, allocations: 34.62 kB / 441 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.437e-05/0.3261, allocations: 25.72 kB / 441 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.3265, allocations: 298.6 kB / 441.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.3266, allocations: 2.594 kB / 441.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.3266, allocations: 10.5 kB / 441.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.3266, allocations: 5.094 kB / 441.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.327, allocations: 225.9 kB / 441.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.3288, allocations: 1.194 MB / 442.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004055/0.3292, allocations: 203.8 kB / 442.9 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.3294, allocations: 96.75 kB / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.3294, allocations: 3.109 kB / 443 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3294, allocations: 49.88 kB / 443.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.024e-06/0.3295, allocations: 0 / 443.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006062/0.3301, allocations: 324.8 kB / 443.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.3301, allocations: 54.34 kB / 443.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.3305, allocations: 278.8 kB / 443.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.3305, allocations: 32.8 kB / 443.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.124e-05/0.3306, allocations: 172.9 kB / 443.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.3306, allocations: 96.84 kB / 444 MB, free: 34.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.68e-05/0.3308, allocations: 78.48 kB / 444.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.996e-05/0.3308, allocations: 342.1 kB / 444.4 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.331, allocations: 97.33 kB / 444.5 MB, free: 34.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.3312, allocations: 178.4 kB / 444.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.3329, allocations: 0.6206 MB / 445.3 MB, free: 33.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.3329, allocations: 0 / 445.3 MB, free: 33.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005472/0.3334, allocations: 377.9 kB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3335, allocations: 6.25 kB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3335, allocations: 3.75 kB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3335, allocations: 2.625 kB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/0.3341, allocations: 101.1 kB / 445.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.3341, allocations: 10.81 kB / 445.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.3343, allocations: 60.05 kB / 445.9 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.3344, allocations: 11.56 kB / 445.9 MB, free: 33.4 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false start = y_filter.y_start fixed = true ) "Connector of Real output signal" type: Real 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: 11 * Number of states: 0 () * Number of discrete variables: 9 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0002119/0.3346, allocations: 169.6 kB / 446 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.3347, allocations: 30.44 kB / 446.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004885/0.3352, allocations: 299.1 kB / 446.4 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.3352, allocations: 3.062 kB / 446.4 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3352, allocations: 8 kB / 446.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3352, allocations: 3.375 kB / 446.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005093/0.3357, allocations: 370.8 kB / 446.7 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3357, allocations: 0 / 446.7 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.3361, allocations: 71.94 kB / 446.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3361, allocations: 0 / 446.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.3361, allocations: 10.88 kB / 446.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3361, allocations: 6.688 kB / 446.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3361, allocations: 0 / 446.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006415/0.3368, allocations: 493.1 kB / 447.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.3369, allocations: 105.4 kB / 447.4 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.3369, allocations: 6.812 kB / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.3372, allocations: 25.77 kB / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.3372, allocations: 22.58 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.3373, allocations: 7.719 kB / 447.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002888/0.3376, allocations: 209 kB / 447.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3376, allocations: 0 / 447.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000319/0.3379, allocations: 58.56 kB / 447.7 MB, free: 32.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * 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.0008017/0.3387, allocations: 1.021 MB / 448.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005033/0.3392, allocations: 286.9 kB / 449 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3392, allocations: 0 / 449 MB, free: 31.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.3394, allocations: 138.1 kB / 449.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.3398, allocations: 36.89 kB / 449.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.3435, allocations: 3.191 MB / 452.4 MB, free: 29.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.3437, allocations: 0.7755 MB / 453.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.3439, allocations: 44.64 kB / 453.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.344, allocations: 102.2 kB / 453.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.344, allocations: 0 / 453.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.3679, allocations: 5.616 MB / 458.9 MB, free: 27.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.233/7.601, allocations: 25.48 kB / 459 MB, free: 27.88 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)