Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.001531/0.001532, 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.001121/0.001121, allocations: 194.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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2002/0.2002, allocations: 22.35 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001349, allocations: 55.91 kB / 380.9 MB, free: 10.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2691, allocations: 54.94 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002353/0.2715, allocations: 0.9724 MB / 436.8 MB, free: 39.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.273, allocations: 1.197 MB / 438 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.848e-05/0.2731, allocations: 0 / 438 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.2734, allocations: 29.2 kB / 438.1 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2735, allocations: 54.77 kB / 438.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.2737, allocations: 69.19 kB / 438.2 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.2739, allocations: 201.2 kB / 438.4 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.274, allocations: 31.66 kB / 438.4 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.322e-05/0.2741, allocations: 82.38 kB / 438.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2742, allocations: 94.5 kB / 438.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.2743, allocations: 11.62 kB / 438.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.432e-05/0.2743, allocations: 12.12 kB / 438.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.716e-05/0.2744, allocations: 51.53 kB / 438.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.65e-05/0.2745, allocations: 61.92 kB / 438.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.2746, allocations: 124.6 kB / 438.8 MB, free: 37.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2746, allocations: 0 / 438.8 MB, free: 37.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2746, allocations: 0 / 438.8 MB, free: 37.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2746, allocations: 3.031 kB / 438.8 MB, free: 37.81 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001039/0.2757, allocations: 0.5212 MB / 439.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2757, allocations: 15.66 kB / 439.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.2757, allocations: 44.84 kB / 439.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.2758, allocations: 14.5 kB / 439.4 MB, free: 37.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.2763, allocations: 288.9 kB / 439.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.2763, allocations: 3.469 kB / 439.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.2763, allocations: 10.34 kB / 439.7 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.2765, allocations: 117 kB / 439.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.2765, allocations: 0 / 439.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.2765, allocations: 7.984 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.2766, allocations: 6.688 kB / 439.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.2768, allocations: 100.2 kB / 440 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005911/0.2774, allocations: 464.1 kB / 440.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.2777, allocations: 159 kB / 440.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.2779, allocations: 65.8 kB / 440.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.2779, allocations: 0 / 440.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2779, allocations: 37.34 kB / 440.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 9.52e-07/0.2779, allocations: 0 / 440.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009831/0.2789, allocations: 402.8 kB / 441.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.2789, allocations: 51.41 kB / 441.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.2794, allocations: 244.9 kB / 441.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.2794, allocations: 36.36 kB / 441.4 MB, free: 36.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.2795, allocations: 109.1 kB / 441.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.2795, allocations: 48.58 kB / 441.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.492e-05/0.2795, allocations: 26.02 kB / 441.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.305e-05/0.2796, allocations: 325 kB / 441.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.719e-05/0.2797, allocations: 53.86 kB / 441.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.886e-05/0.2798, allocations: 48.73 kB / 442 MB, free: 35.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009892/0.2808, allocations: 346 kB / 442.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2808, allocations: 0 / 442.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004111/0.2812, allocations: 232.6 kB / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2812, allocations: 5.969 kB / 442.6 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2813, allocations: 4 kB / 442.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.2814, allocations: 54.97 kB / 442.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-05/0.2815, allocations: 22.2 kB / 442.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009791/0.2825, allocations: 1.606 MB / 444.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.2828, allocations: 32.02 kB / 444.3 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.2828, allocations: 2.906 kB / 444.3 MB, free: 33.84 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.2829, allocations: 143.6 kB / 444.4 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.283, allocations: 9.281 kB / 444.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.315e-05/0.283, allocations: 30 kB / 444.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.283, allocations: 0 / 444.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.283, allocations: 2.688 kB / 444.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.283, allocations: 0 / 444.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.2832, allocations: 253.6 kB / 444.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2833, allocations: 2.719 kB / 444.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.2834, allocations: 18.69 kB / 444.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001481/0.2835, allocations: 51.81 kB / 444.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.2836, allocations: 14.88 kB / 444.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009371/0.2845, allocations: 1.599 MB / 446.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2845, allocations: 0 / 446.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.285, allocations: 380 kB / 446.8 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.531e-05/0.2851, allocations: 90.67 kB / 446.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.2851, allocations: 10.78 kB / 446.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.2854, allocations: 28.72 kB / 446.9 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.2854, allocations: 10.27 kB / 446.9 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-06/0.2854, allocations: 6.969 kB / 446.9 MB, free: 31.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.2858, allocations: 196.7 kB / 447.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2858, allocations: 0 / 447.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002657/0.2861, allocations: 39.66 kB / 447.1 MB, free: 31.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006713/0.2867, allocations: 0.9096 MB / 448 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000441/0.2872, allocations: 268.3 kB / 448.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2872, allocations: 0 / 448.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.2874, allocations: 192 kB / 448.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.2878, allocations: 22.16 kB / 448.5 MB, free: 30.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.2906, allocations: 2.265 MB / 450.8 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.2908, allocations: 0.7313 MB / 451.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.055e-05/0.2909, allocations: 30.58 kB / 451.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.2909, allocations: 44.31 kB / 451.6 MB, free: 28.17 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2909, allocations: 0 / 451.6 MB, free: 28.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.3145, allocations: 3.701 MB / 455.3 MB, free: 27.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.614/9.928, allocations: 19.77 kB / 455.3 MB, free: 27.66 MB / 350.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)