Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.00766/0.00766, allocations: 100.5 kB / 15.73 MB, free: 6.023 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.001286/0.001286, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2318/0.2318, allocations: 22.36 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001356, allocations: 62.78 kB / 436.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1005, allocations: 54.96 MB / 491.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002011/0.1025, allocations: 1.07 MB / 492.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.1038, allocations: 1.244 MB / 493.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.49e-05/0.1039, allocations: 3.938 kB / 493.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.1043, allocations: 51.7 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.1045, allocations: 67.67 kB / 494 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.1047, allocations: 103.8 kB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.1051, allocations: 303.5 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1052, allocations: 37.67 kB / 494.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1054, allocations: 127.6 kB / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.1056, allocations: 155.5 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.1056, allocations: 16 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.185e-05/0.1057, allocations: 20 kB / 494.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1058, allocations: 99.7 kB / 494.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.106, allocations: 99.39 kB / 494.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.1062, allocations: 219.8 kB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1062, allocations: 3.938 kB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1062, allocations: 0 / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1062, allocations: 0 / 495.1 MB, free: 14.09 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001598/0.1078, allocations: 0.6741 MB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.1079, allocations: 8.031 kB / 495.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.058e-05/0.1079, allocations: 46.73 kB / 495.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.108, allocations: 28.56 kB / 495.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.1088, allocations: 358.7 kB / 496.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.1089, allocations: 8.375 kB / 496.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.1089, allocations: 16.38 kB / 496.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.1092, allocations: 174.9 kB / 496.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1093, allocations: 0 / 496.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.1093, allocations: 4 kB / 496.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1093, allocations: 4 kB / 496.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.1097, allocations: 167.9 kB / 496.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.1109, allocations: 0.6212 MB / 497.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1113, allocations: 218.4 kB / 497.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.1115, allocations: 116.8 kB / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.1115, allocations: 0 / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.1116, allocations: 38.5 kB / 497.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.1116, allocations: 0 / 497.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001812/0.1134, allocations: 0.6419 MB / 498.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.1134, allocations: 55.41 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.1141, allocations: 344.9 kB / 498.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.1142, allocations: 29.7 kB / 498.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.1143, allocations: 132.4 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.1144, allocations: 82.89 kB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-05/0.1145, allocations: 37.7 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1147, allocations: 342.8 kB / 499.2 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1148, allocations: 95.88 kB / 499.3 MB, free: 9.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.115, allocations: 83.95 kB / 499.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.117, allocations: 0.6155 MB / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.117, allocations: 0 / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007901/0.1178, allocations: 393.9 kB / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1178, allocations: 11.94 kB / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1178, allocations: 0 / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003635/0.1182, allocations: 96.75 kB / 0.4888 GB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.1184, allocations: 31.92 kB / 0.4888 GB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.1204, allocations: 1.845 MB / 0.4906 GB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003669/0.1208, allocations: 59.64 kB / 0.4907 GB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.1209, allocations: 8 kB / 0.4907 GB, free: 6.355 MB / 366.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (21): * Single equations (assignments): 20 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002272/0.1211, allocations: 167.8 kB / 0.4908 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.1211, allocations: 19.72 kB / 0.4909 GB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.048e-05/0.1212, allocations: 38.19 kB / 0.4909 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1213, allocations: 4 kB / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1213, allocations: 7.984 kB / 0.4909 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1213, allocations: 3.984 kB / 0.4909 GB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/0.1217, allocations: 325.3 kB / 0.4912 GB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1217, allocations: 0 / 0.4912 GB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.1219, allocations: 27.92 kB / 0.4913 GB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002737/0.1222, allocations: 100.8 kB / 0.4913 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.1222, allocations: 192 / 0.4913 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.1241, allocations: 1.865 MB / 0.4932 GB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1241, allocations: 0 / 0.4932 GB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009812/0.1251, allocations: 0.5556 MB / 0.4937 GB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.224e-05/0.1252, allocations: 100.8 kB / 0.4938 GB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1252, allocations: 12.12 kB / 0.4938 GB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.1256, allocations: 47.92 kB / 0.4939 GB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.1257, allocations: 11.92 kB / 0.4939 GB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.1257, allocations: 8 kB / 0.4939 GB, free: 2.844 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006289/0.1264, allocations: 272.3 kB / 0.4941 GB, free: 2.578 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.1264, allocations: 0 / 0.4941 GB, free: 2.578 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003878/0.1268, allocations: 55.94 kB / 0.4942 GB, free: 2.523 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001354/0.1281, allocations: 1.109 MB / 0.4953 GB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007651/0.1289, allocations: 365.5 kB / 0.4956 GB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1289, allocations: 0 / 0.4956 GB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.1293, allocations: 254.5 kB / 0.4959 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003687/0.1297, allocations: 43.17 kB / 0.4959 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005558/0.1353, allocations: 3.117 MB / 0.499 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.1358, allocations: 0.7714 MB / 0.4997 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.136, allocations: 61.89 kB / 0.4998 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.1361, allocations: 63.42 kB / 0.4998 GB, free: 12.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1361, allocations: 0 / 0.4998 GB, free: 12.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/0.1634, allocations: 5.611 MB / 0.5053 GB, free: 7.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.216/9.379, allocations: 22.72 kB / 0.5053 GB, free: 7.051 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)