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.001487/0.001487, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001838/0.001839, allocations: 194.3 kB / 16.14 MB, free: 6.711 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.414/1.414, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1913/0.1913, allocations: 22.36 MB / 312.3 MB, free: 12.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.88 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2578, allocations: 54.94 MB / 435.1 MB, free: 39.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002742/0.2606, allocations: 2.062 MB / 437.1 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008571/0.2615, allocations: 0.6107 MB / 437.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.2616, allocations: 2.625 kB / 437.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.2619, allocations: 38.41 kB / 437.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.2621, allocations: 38.3 kB / 437.8 MB, free: 37.6 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.0001963/0.2623, allocations: 112.8 kB / 437.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.2625, allocations: 306.2 kB / 438.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2627, allocations: 90.98 kB / 438.3 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.2628, allocations: 118.4 kB / 438.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.263, allocations: 138.9 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.384e-05/0.263, allocations: 14.59 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.406e-05/0.2631, allocations: 14.41 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.596e-05/0.2632, allocations: 74.16 kB / 438.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.755e-05/0.2633, allocations: 121.1 kB / 438.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.2634, allocations: 251.6 kB / 439 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2635, allocations: 0 / 439 MB, free: 37.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2635, allocations: 3.938 kB / 439 MB, free: 37.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.371e-06/0.2635, allocations: 2.531 kB / 439 MB, free: 37.02 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.001095/0.2646, allocations: 0.6234 MB / 439.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2646, allocations: 13.62 kB / 439.7 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.148e-05/0.2647, allocations: 34.19 kB / 439.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.2651, allocations: 309 kB / 440 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.2651, allocations: 22.5 kB / 440 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/0.2652, allocations: 36.16 kB / 440.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.2656, allocations: 296 kB / 440.3 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2656, allocations: 0 / 440.3 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.2657, allocations: 10.81 kB / 440.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2657, allocations: 11.83 kB / 440.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003773/0.266, allocations: 219.6 kB / 440.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.2677, allocations: 1.187 MB / 441.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.2681, allocations: 203.8 kB / 442 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2682, allocations: 96.67 kB / 442.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.2682, allocations: 10.7 kB / 442.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.494e-05/0.2683, allocations: 46.2 kB / 442.1 MB, free: 35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.332e-06/0.2683, allocations: 0 / 442.1 MB, free: 35 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005619/0.2688, allocations: 322.5 kB / 442.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/0.2689, allocations: 58 kB / 442.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.2692, allocations: 281.2 kB / 442.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.2692, allocations: 33.7 kB / 442.8 MB, free: 34.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.2693, allocations: 172.3 kB / 443 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.2694, allocations: 99.02 kB / 443.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.2695, allocations: 73.38 kB / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.484e-05/0.2695, allocations: 343.8 kB / 443.5 MB, free: 34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.2697, allocations: 98.25 kB / 443.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.2699, allocations: 180.5 kB / 443.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.2715, allocations: 0.6156 MB / 444.4 MB, free: 33.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2715, allocations: 7.938 kB / 444.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004795/0.272, allocations: 375 kB / 444.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.272, allocations: 9.719 kB / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.272, allocations: 2.938 kB / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.272, allocations: 3.438 kB / 444.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005177/0.2726, allocations: 105.4 kB / 444.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.2726, allocations: 13.22 kB / 444.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.2728, allocations: 50.52 kB / 444.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2729, allocations: 14.88 kB / 444.9 MB, free: 33.36 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.0001532/0.273, allocations: 154.6 kB / 445.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.2731, allocations: 39.44 kB / 445.1 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004308/0.2735, allocations: 297 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.2735, allocations: 2.625 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2735, allocations: 0 / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2735, allocations: 0 / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.274, allocations: 372.3 kB / 445.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.274, allocations: 0 / 445.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.2744, allocations: 73.53 kB / 445.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.227e-06/0.2744, allocations: 7.938 kB / 445.8 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.2744, allocations: 6.781 kB / 445.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2744, allocations: 2.844 kB / 445.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.2744, allocations: 3.281 kB / 445.9 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005263/0.2749, allocations: 477.2 kB / 446.3 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.275, allocations: 114.5 kB / 446.4 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/0.275, allocations: 6.688 kB / 446.4 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002497/0.2753, allocations: 31.59 kB / 446.5 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.2754, allocations: 18.97 kB / 446.5 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.2754, allocations: 8.938 kB / 446.5 MB, free: 32.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.2757, allocations: 201 kB / 446.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.21e-07/0.2757, allocations: 3.938 kB / 446.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.276, allocations: 64.5 kB / 446.8 MB, free: 32.25 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 8.965e-05/0.2761, allocations: 105.1 kB / 446.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003986/0.2765, allocations: 270.8 kB / 447.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2765, allocations: 0 / 447.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.2766, allocations: 132.1 kB / 447.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.277, allocations: 39.5 kB / 447.3 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.2781, allocations: 0.7956 MB / 448.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.2783, allocations: 0.7936 MB / 448.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.2784, allocations: 42.02 kB / 448.9 MB, free: 30.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.486e-05/0.2785, allocations: 28.81 kB / 449 MB, free: 30.78 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2785, allocations: 0 / 449 MB, free: 30.78 MB / 350.1 MB Notification: Performance of Templates: time 0.004757/0.2833, allocations: 2.372 MB / 451.3 MB, free: 30.61 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)