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.0009691/0.0009692, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008064/0.008064, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.377/1.377, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2183/0.2183, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005141/0.0005142, allocations: 8 kB / 382.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3333, allocations: 55.98 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.001983/0.3353, allocations: 1.703 MB / 440.3 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009003/0.3362, allocations: 0.6044 MB / 440.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3363, allocations: 2.625 kB / 440.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003173/0.3367, allocations: 45.69 kB / 440.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.3368, allocations: 27.25 kB / 441 MB, free: 37.71 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.0002345/0.3371, allocations: 106.1 kB / 441.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.3374, allocations: 317.7 kB / 441.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.3376, allocations: 85.52 kB / 441.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.3377, allocations: 107.8 kB / 441.6 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.3379, allocations: 127.1 kB / 441.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.76e-05/0.3379, allocations: 11.97 kB / 441.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.607e-05/0.338, allocations: 10.94 kB / 441.7 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.954e-05/0.3381, allocations: 61.2 kB / 441.8 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.639e-05/0.3381, allocations: 137.3 kB / 441.9 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.3383, allocations: 243.1 kB / 442.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3384, allocations: 0 / 442.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3384, allocations: 0 / 442.1 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3384, allocations: 2.562 kB / 442.1 MB, free: 37.16 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.001076/0.3395, allocations: 0.5939 MB / 442.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3395, allocations: 11.81 kB / 442.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.3396, allocations: 32.56 kB / 442.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.34, allocations: 297.2 kB / 443.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.34, allocations: 22.16 kB / 443.1 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.3401, allocations: 35.22 kB / 443.1 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.3405, allocations: 303.7 kB / 443.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.3406, allocations: 3.906 kB / 443.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.3406, allocations: 10.66 kB / 443.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3406, allocations: 5.625 kB / 443.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003985/0.341, allocations: 220.8 kB / 443.7 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.3427, allocations: 1.202 MB / 444.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.3431, allocations: 201.2 kB / 445 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.3432, allocations: 95.33 kB / 445.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.3433, allocations: 7.047 kB / 445.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.3433, allocations: 42.58 kB / 445.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.3433, allocations: 0 / 445.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005711/0.3439, allocations: 321.4 kB / 445.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.3439, allocations: 62.67 kB / 445.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.3443, allocations: 279.1 kB / 445.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.3443, allocations: 29.7 kB / 445.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.45e-05/0.3444, allocations: 172.7 kB / 446 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.3444, allocations: 102.9 kB / 446.1 MB, free: 34.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.3445, allocations: 46.27 kB / 446.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.786e-05/0.3446, allocations: 342.8 kB / 446.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.3447, allocations: 100.5 kB / 446.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.3449, allocations: 179.6 kB / 446.8 MB, free: 34.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.3466, allocations: 0.6393 MB / 447.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3467, allocations: 0 / 447.4 MB, free: 33.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005174/0.3472, allocations: 378.2 kB / 447.8 MB, free: 33.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3472, allocations: 9.438 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3472, allocations: 3.125 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.3472, allocations: 6.188 kB / 447.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005587/0.3478, allocations: 96.92 kB / 447.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.3478, allocations: 9.156 kB / 447.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.3481, allocations: 63.98 kB / 448 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.3481, allocations: 15 kB / 448 MB, free: 33.53 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.0001777/0.3483, allocations: 156.4 kB / 448.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.3484, allocations: 30.03 kB / 448.2 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000473/0.3488, allocations: 301.2 kB / 448.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.3489, allocations: 2.812 kB / 448.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3489, allocations: 3.938 kB / 448.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3489, allocations: 3.328 kB / 448.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.3493, allocations: 372.3 kB / 448.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3494, allocations: 0 / 448.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/0.3497, allocations: 67.52 kB / 448.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3497, allocations: 14.09 kB / 448.9 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.3497, allocations: 6.781 kB / 448.9 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3497, allocations: 7.938 kB / 448.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3498, allocations: 3.984 kB / 448.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005398/0.3503, allocations: 482.8 kB / 449.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.3504, allocations: 110.7 kB / 449.5 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.3504, allocations: 10.75 kB / 449.5 MB, free: 32.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.3507, allocations: 32.19 kB / 449.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.3507, allocations: 25.59 kB / 449.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.3508, allocations: 6.219 kB / 449.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002703/0.351, allocations: 201.2 kB / 449.8 MB, free: 32.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.351, allocations: 0 / 449.8 MB, free: 32.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.3513, allocations: 59.34 kB / 449.9 MB, free: 32.42 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.549e-05/0.3514, allocations: 107.4 kB / 450 MB, free: 32.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004196/0.3519, allocations: 271.2 kB / 450.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.3519, allocations: 0 / 450.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.3521, allocations: 131.1 kB / 450.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003559/0.3524, allocations: 39.28 kB / 450.4 MB, free: 32.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3535, allocations: 0.8354 MB / 451.2 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002031/0.3537, allocations: 0.7855 MB / 452 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.3539, allocations: 45.84 kB / 452.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.448e-05/0.354, allocations: 24.47 kB / 452.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.354, allocations: 0 / 452.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of Templates: time 0.005272/0.3592, allocations: 2.326 MB / 454.4 MB, free: 30.8 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)