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: translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, 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.001188/0.001188, allocations: 197.1 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2575/0.2575, allocations: 22.36 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001223, allocations: 67.89 kB / 380.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2958, allocations: 54.94 MB / 435.8 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003523/0.2994, allocations: 2.001 MB / 437.8 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3009, allocations: 0.6281 MB / 438.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.301, allocations: 2.594 kB / 438.4 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.3014, allocations: 53.19 kB / 438.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.3016, allocations: 40.77 kB / 438.5 MB, free: 37.86 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.0002404/0.3018, allocations: 128.3 kB / 438.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.3021, allocations: 321.5 kB / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.3023, allocations: 98.62 kB / 439 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.3025, allocations: 122.3 kB / 439.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.3027, allocations: 152.4 kB / 439.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.745e-05/0.3027, allocations: 25.72 kB / 439.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.993e-05/0.3028, allocations: 24.72 kB / 439.4 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.3029, allocations: 82.8 kB / 439.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.303, allocations: 133.1 kB / 439.6 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.3033, allocations: 266 kB / 439.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3033, allocations: 3.234 kB / 439.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3033, allocations: 0 / 439.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.3033, allocations: 0 / 439.8 MB, free: 37.22 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.00125/0.3046, allocations: 0.6184 MB / 440.4 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3046, allocations: 11.91 kB / 440.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.3047, allocations: 39.69 kB / 440.5 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.3052, allocations: 303.2 kB / 440.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.3052, allocations: 21.66 kB / 440.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.3053, allocations: 32.47 kB / 440.8 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000441/0.3057, allocations: 307 kB / 441.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.3058, allocations: 0 / 441.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.3058, allocations: 14.66 kB / 441.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.3058, allocations: 5.5 kB / 441.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003943/0.3062, allocations: 218.7 kB / 441.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3079, allocations: 1.195 MB / 442.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.3083, allocations: 203.1 kB / 442.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.3084, allocations: 97.97 kB / 442.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.3085, allocations: 5.672 kB / 442.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.79e-05/0.3085, allocations: 42.73 kB / 442.9 MB, free: 35.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.373e-06/0.3085, allocations: 0 / 442.9 MB, free: 35.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005958/0.3091, allocations: 331.1 kB / 443.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.3091, allocations: 54.31 kB / 443.3 MB, free: 34.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.3095, allocations: 281.7 kB / 443.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.3095, allocations: 29.7 kB / 443.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/0.3096, allocations: 172.9 kB / 443.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.3097, allocations: 100.2 kB / 443.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.3098, allocations: 77.33 kB / 443.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.947e-05/0.3098, allocations: 339.1 kB / 444.3 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.31, allocations: 95.94 kB / 444.4 MB, free: 34.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.3102, allocations: 183.8 kB / 444.5 MB, free: 34.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.3118, allocations: 0.6212 MB / 445.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3118, allocations: 0 / 445.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004875/0.3123, allocations: 373.9 kB / 445.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3123, allocations: 9.781 kB / 445.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.3124, allocations: 2.75 kB / 445.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.3124, allocations: 2.656 kB / 445.5 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/0.3129, allocations: 102.3 kB / 445.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.3129, allocations: 5.281 kB / 445.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.3132, allocations: 57.67 kB / 445.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.3132, allocations: 15.5 kB / 445.7 MB, free: 33.56 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.0001729/0.3134, allocations: 159.3 kB / 445.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.239e-05/0.3135, allocations: 34.72 kB / 445.9 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004545/0.3139, allocations: 298.2 kB / 446.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3139, allocations: 2.594 kB / 446.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.314, allocations: 0 / 446.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.314, allocations: 0 / 446.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.3144, allocations: 376.1 kB / 446.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3145, allocations: 3.938 kB / 446.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003459/0.3148, allocations: 71.92 kB / 446.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3148, allocations: 6.625 kB / 446.6 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.3148, allocations: 6.656 kB / 446.7 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3149, allocations: 4 kB / 446.7 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3149, allocations: 2.781 kB / 446.7 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.3154, allocations: 493.5 kB / 447.1 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.3155, allocations: 108 kB / 447.2 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.3155, allocations: 7.969 kB / 447.3 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.3158, allocations: 22.28 kB / 447.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.3158, allocations: 23.16 kB / 447.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.3159, allocations: 19.5 kB / 447.3 MB, free: 32.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002765/0.3162, allocations: 194.2 kB / 447.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3162, allocations: 0 / 447.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.3165, allocations: 63.38 kB / 447.6 MB, free: 32.44 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.0001041/0.3166, allocations: 110.4 kB / 447.7 MB, free: 32.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004765/0.3171, allocations: 289.1 kB / 448 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3171, allocations: 0 / 448 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.3172, allocations: 131.4 kB / 448.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.3176, allocations: 37.5 kB / 448.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.3186, allocations: 0.6945 MB / 448.8 MB, free: 31.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.3189, allocations: 0.7866 MB / 449.6 MB, free: 31.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.319, allocations: 47.08 kB / 449.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.257e-05/0.3191, allocations: 31.03 kB / 449.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3191, allocations: 0 / 449.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of Templates: time 0.005574/0.3247, allocations: 2.627 MB / 452.3 MB, free: 30.88 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile (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 & ./AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)