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.009288/0.009288, allocations: 105 kB / 15.74 MB, free: 6.492 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.002313/0.002313, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1949/0.1949, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.59 kB / 436.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09119, allocations: 54.97 MB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.001914/0.09314, allocations: 0.9756 MB / 492.5 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.09444, allocations: 1.198 MB / 493.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.712e-05/0.09455, allocations: 0 / 493.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.09485, allocations: 39.78 kB / 493.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.09501, allocations: 39.77 kB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.0952, allocations: 71.83 kB / 493.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.09546, allocations: 203.6 kB / 494.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.09557, allocations: 29.44 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.09571, allocations: 87.66 kB / 494.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.0959, allocations: 95.7 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.09595, allocations: 12 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.197e-05/0.09597, allocations: 8 kB / 494.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.797e-05/0.09606, allocations: 47.83 kB / 494.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.303e-05/0.09614, allocations: 71.58 kB / 494.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.0963, allocations: 131.5 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09632, allocations: 0 / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09632, allocations: 0 / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.09633, allocations: 0 / 494.5 MB, free: 14.7 MB / 366.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.001156/0.09749, allocations: 0.5229 MB / 495.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.09754, allocations: 8.031 kB / 495.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.236e-05/0.09758, allocations: 42.73 kB / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.939e-05/0.09763, allocations: 16.75 kB / 495.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005664/0.0982, allocations: 292.6 kB / 495.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.09823, allocations: 4.375 kB / 495.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.09826, allocations: 8.375 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002175/0.09848, allocations: 109.8 kB / 495.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.0985, allocations: 3.984 kB / 495.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.09852, allocations: 8 kB / 495.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.09853, allocations: 0 / 495.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002316/0.09877, allocations: 107.9 kB / 495.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006919/0.09947, allocations: 452.4 kB / 496.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003943/0.09988, allocations: 166.4 kB / 496.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.1, allocations: 60.83 kB / 496.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1, allocations: 0 / 496.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.1001, allocations: 42.55 kB / 496.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.103e-06/0.1001, allocations: 0 / 496.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001015/0.1011, allocations: 395.5 kB / 496.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.1011, allocations: 55.41 kB / 496.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004719/0.1016, allocations: 250.6 kB / 497 MB, free: 11.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1016, allocations: 25.7 kB / 497.1 MB, free: 11.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.1017, allocations: 108 kB / 497.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.011e-05/0.1018, allocations: 55.28 kB / 497.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.1018, allocations: 25.72 kB / 497.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.1019, allocations: 330.8 kB / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.102, allocations: 55.97 kB / 497.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.997e-05/0.1021, allocations: 43.97 kB / 497.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.1032, allocations: 346.5 kB / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1032, allocations: 0 / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004787/0.1037, allocations: 238.1 kB / 498.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1037, allocations: 6.344 kB / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.1038, allocations: 0 / 498.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002175/0.104, allocations: 60.75 kB / 498.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1041, allocations: 15.98 kB / 498.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.1055, allocations: 1.606 MB / 499.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.1057, allocations: 31.92 kB / 500 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.1057, allocations: 8.062 kB / 500 MB, free: 8.867 MB / 366.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.0001522/0.1059, allocations: 133.8 kB / 0.4884 GB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.1059, allocations: 15.81 kB / 0.4884 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.563e-05/0.106, allocations: 25.34 kB / 0.4884 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.106, allocations: 4 kB / 0.4884 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.106, allocations: 0 / 0.4884 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.106, allocations: 7.984 kB / 0.4884 GB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.1063, allocations: 245.5 kB / 0.4887 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1063, allocations: 0 / 0.4887 GB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.1064, allocations: 15.94 kB / 0.4887 GB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/0.1066, allocations: 52.8 kB / 0.4887 GB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1066, allocations: 11.94 kB / 0.4887 GB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1079, allocations: 1.603 MB / 0.4903 GB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1079, allocations: 0 / 0.4903 GB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.1085, allocations: 380 kB / 0.4907 GB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.534e-05/0.1085, allocations: 96.95 kB / 0.4908 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.1086, allocations: 7.938 kB / 0.4908 GB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.1088, allocations: 27.91 kB / 0.4908 GB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.635e-05/0.1089, allocations: 15.98 kB / 0.4908 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.1089, allocations: 7.984 kB / 0.4908 GB, free: 5.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004039/0.1093, allocations: 200.2 kB / 0.491 GB, free: 5.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1093, allocations: 0 / 0.491 GB, free: 5.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002779/0.1096, allocations: 31.94 kB / 0.491 GB, free: 5.77 MB / 366.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.0008349/0.1104, allocations: 0.9049 MB / 0.4919 GB, free: 4.836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.1109, allocations: 269.4 kB / 0.4922 GB, free: 4.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.111, allocations: 0 / 0.4922 GB, free: 4.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.1112, allocations: 202.5 kB / 0.4924 GB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.1115, allocations: 25.47 kB / 0.4924 GB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.115, allocations: 2.249 MB / 0.4946 GB, free: 1.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.1153, allocations: 0.728 MB / 0.4953 GB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.756e-05/0.1154, allocations: 29.06 kB / 0.4953 GB, free: 1.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.585e-05/0.1155, allocations: 43.42 kB / 0.4954 GB, free: 1.172 MB / 366.1 MB Notification: Performance of SimCode: time 1.863e-06/0.1155, allocations: 0 / 0.4954 GB, free: 1.172 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.1385, allocations: 3.838 MB / 0.4991 GB, free: 13.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.27/9.409, allocations: 19.62 kB / 0.4991 GB, free: 13.4 MB / 382.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)