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.001376/0.001375, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001689/0.001689, allocations: 189.2 kB / 16.25 MB, free: 6.59 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.38/1.38, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1972/0.1972, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 55.91 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2623, allocations: 54.96 MB / 435.2 MB, free: 39.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.00281/0.2651, allocations: 2.057 MB / 437.3 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008846/0.266, allocations: 0.6132 MB / 437.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.2662, allocations: 6.656 kB / 437.9 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.2665, allocations: 38.44 kB / 438 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.2666, allocations: 30.19 kB / 438 MB, free: 37.84 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.0002073/0.2668, allocations: 111.7 kB / 438.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.2671, allocations: 336.9 kB / 438.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2673, allocations: 92.62 kB / 438.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2674, allocations: 121.2 kB / 438.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.2676, allocations: 149.6 kB / 438.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.94e-05/0.2676, allocations: 26.56 kB / 438.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.301e-05/0.2676, allocations: 26.97 kB / 438.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.2677, allocations: 83.97 kB / 438.9 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.023e-05/0.2678, allocations: 132.1 kB / 439 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.268, allocations: 267.3 kB / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.268, allocations: 0 / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.268, allocations: 0 / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.268, allocations: 0 / 439.3 MB, free: 37.2 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.001117/0.2692, allocations: 0.6257 MB / 439.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2692, allocations: 15.69 kB / 439.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.405e-05/0.2693, allocations: 31.06 kB / 440 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.2697, allocations: 303.6 kB / 440.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.2697, allocations: 24.19 kB / 440.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.2698, allocations: 27.72 kB / 440.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.2702, allocations: 308 kB / 440.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.2702, allocations: 0 / 440.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.2703, allocations: 10.78 kB / 440.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2703, allocations: 8.656 kB / 440.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.2706, allocations: 215.2 kB / 440.8 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.2723, allocations: 1.19 MB / 442 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.2727, allocations: 207.3 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2728, allocations: 100.2 kB / 442.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.2729, allocations: 6.312 kB / 442.3 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.2729, allocations: 42.73 kB / 442.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.412e-06/0.2729, allocations: 2.75 kB / 442.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005839/0.2735, allocations: 321.4 kB / 442.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2735, allocations: 58.47 kB / 442.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003582/0.2739, allocations: 286.4 kB / 443 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.2739, allocations: 29.7 kB / 443.1 MB, free: 34.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.274, allocations: 168.9 kB / 443.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.2741, allocations: 102 kB / 443.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/0.2742, allocations: 76.39 kB / 443.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.308e-05/0.2742, allocations: 340.7 kB / 443.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.2744, allocations: 98.69 kB / 443.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.2746, allocations: 178.2 kB / 444 MB, free: 34.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.2763, allocations: 0.6216 MB / 444.6 MB, free: 33.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2763, allocations: 2.844 kB / 444.6 MB, free: 33.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000484/0.2768, allocations: 364.8 kB / 445 MB, free: 33.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.2768, allocations: 14.12 kB / 445 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2769, allocations: 2.938 kB / 445 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2769, allocations: 2.75 kB / 445 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.2775, allocations: 107.2 kB / 445.1 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2775, allocations: 2.906 kB / 445.1 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.2777, allocations: 57.36 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.2778, allocations: 11.41 kB / 445.2 MB, free: 33.55 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.0001825/0.278, allocations: 164.9 kB / 445.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.278, allocations: 39.44 kB / 445.4 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004564/0.2785, allocations: 299.4 kB / 445.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.2785, allocations: 2.781 kB / 445.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2785, allocations: 0 / 445.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2785, allocations: 0 / 445.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.279, allocations: 376.3 kB / 446 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.279, allocations: 0 / 446 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.2794, allocations: 72.19 kB / 446.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2794, allocations: 6.844 kB / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.2794, allocations: 6.75 kB / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2794, allocations: 0 / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2794, allocations: 0 / 446.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.2799, allocations: 485.1 kB / 446.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.28, allocations: 113.4 kB / 446.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.027e-05/0.28, allocations: 10.22 kB / 446.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.2803, allocations: 27.52 kB / 446.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.297e-05/0.2804, allocations: 21.48 kB / 446.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.2804, allocations: 4.406 kB / 446.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002753/0.2807, allocations: 202.4 kB / 447 MB, free: 32.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2807, allocations: 4.719 kB / 447 MB, free: 32.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003116/0.281, allocations: 61 kB / 447 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 9.025e-05/0.2811, allocations: 105 kB / 447.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004579/0.2816, allocations: 291.7 kB / 447.4 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2816, allocations: 0.625 kB / 447.4 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.2817, allocations: 127.3 kB / 447.5 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.0003282/0.2821, allocations: 44.16 kB / 447.6 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2831, allocations: 0.7964 MB / 448.4 MB, free: 31.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.2833, allocations: 0.794 MB / 449.2 MB, free: 30.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.2835, allocations: 46.12 kB / 449.2 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.326e-05/0.2836, allocations: 25.91 kB / 449.3 MB, free: 30.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2836, allocations: 0 / 449.3 MB, free: 30.96 MB / 350.1 MB Notification: Performance of Templates: time 0.005095/0.2887, allocations: 2.496 MB / 451.7 MB, free: 30.78 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)