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.007274/0.007274, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.001886/0.001886, allocations: 201.6 kB / 16.68 MB, free: 5.973 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.431/1.431, 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.1968/0.1968, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 61.66 kB / 436.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08518/0.08695, allocations: 54.96 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.001777/0.08877, allocations: 1.071 MB / 492.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.09006, allocations: 1.245 MB / 493.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.197e-05/0.09014, allocations: 3.938 kB / 493.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.09045, allocations: 55.69 kB / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.09063, allocations: 63.62 kB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.09086, allocations: 103.8 kB / 494.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003389/0.09121, allocations: 299.5 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.09134, allocations: 41.61 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.09153, allocations: 131.6 kB / 494.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.09177, allocations: 155.5 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-05/0.09182, allocations: 16 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.869e-05/0.09187, allocations: 20 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.092, allocations: 91.72 kB / 494.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.09212, allocations: 107.4 kB / 494.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002519/0.09238, allocations: 223 kB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.09239, allocations: 0 / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09239, allocations: 0 / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.0924, allocations: 0 / 495.1 MB, free: 14.11 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.001581/0.09399, allocations: 0.6776 MB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.09403, allocations: 8.031 kB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.122e-05/0.09411, allocations: 46.73 kB / 495.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.09416, allocations: 24.8 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008182/0.09499, allocations: 366.8 kB / 496.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.09502, allocations: 8.375 kB / 496.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.09506, allocations: 16.38 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.09537, allocations: 171 kB / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.09539, allocations: 0 / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.09541, allocations: 11.98 kB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.09542, allocations: 4 kB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003259/0.09575, allocations: 167.9 kB / 496.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.0968, allocations: 0.6252 MB / 497.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.09716, allocations: 214.4 kB / 497.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.09737, allocations: 116.7 kB / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.09739, allocations: 0 / 497.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.09743, allocations: 38.55 kB / 497.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.082e-06/0.09744, allocations: 0 / 497.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001759/0.0992, allocations: 0.6398 MB / 498.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.09925, allocations: 55.41 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007359/0.09999, allocations: 340.8 kB / 498.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.1, allocations: 33.7 kB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.557e-05/0.1001, allocations: 136.5 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.081e-05/0.1002, allocations: 83.33 kB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.1003, allocations: 37.7 kB / 498.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1005, allocations: 338.8 kB / 499.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.1006, allocations: 95.88 kB / 499.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.1008, allocations: 88.8 kB / 499.4 MB, free: 9.562 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/0.1027, allocations: 0.6163 MB / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1027, allocations: 0 / 0.4883 GB, free: 8.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007562/0.1035, allocations: 394 kB / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1035, allocations: 22.73 kB / 0.4887 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1035, allocations: 0 / 0.4887 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.1039, allocations: 88.77 kB / 0.4888 GB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.104, allocations: 31.92 kB / 0.4888 GB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.1059, allocations: 1.849 MB / 0.4906 GB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.1063, allocations: 59.91 kB / 0.4907 GB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.1063, allocations: 8 kB / 0.4907 GB, free: 6.352 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.0001898/0.1065, allocations: 163.8 kB / 0.4909 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.1066, allocations: 23.86 kB / 0.4909 GB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.181e-05/0.1067, allocations: 42.17 kB / 0.4909 GB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1067, allocations: 0 / 0.4909 GB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1067, allocations: 4 kB / 0.4909 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1067, allocations: 0 / 0.4909 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003683/0.1071, allocations: 325.3 kB / 0.4912 GB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1071, allocations: 3.984 kB / 0.4912 GB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.1072, allocations: 27.92 kB / 0.4913 GB, free: 5.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/0.1075, allocations: 100.8 kB / 0.4914 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.1076, allocations: 192 / 0.4914 GB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.1094, allocations: 1.857 MB / 0.4932 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1094, allocations: 3.938 kB / 0.4932 GB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000958/0.1104, allocations: 0.5552 MB / 0.4937 GB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.1104, allocations: 101 kB / 0.4938 GB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.1105, allocations: 12.05 kB / 0.4938 GB, free: 2.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.1109, allocations: 43.88 kB / 0.4939 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.1109, allocations: 19.91 kB / 0.4939 GB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1109, allocations: 8 kB / 0.4939 GB, free: 2.844 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006434/0.1116, allocations: 268.3 kB / 0.4942 GB, free: 2.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1116, allocations: 0 / 0.4942 GB, free: 2.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1119, allocations: 63.88 kB / 0.4942 GB, free: 2.52 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.00127/0.1132, allocations: 1.103 MB / 0.4953 GB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006617/0.1139, allocations: 374.4 kB / 0.4957 GB, free: 1.012 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1139, allocations: 0 / 0.4957 GB, free: 1.012 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.1143, allocations: 254.5 kB / 0.4959 GB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.1146, allocations: 32.42 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.005195/0.1198, allocations: 3.142 MB / 0.499 GB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.1202, allocations: 0.7714 MB / 0.4998 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.1204, allocations: 57.91 kB / 0.4998 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.1205, allocations: 63.42 kB / 0.4999 GB, free: 12.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1205, allocations: 0 / 0.4999 GB, free: 12.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03097/0.1515, allocations: 5.664 MB / 0.5054 GB, free: 6.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.493/9.644, allocations: 17.59 kB / 0.5054 GB, free: 6.98 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)