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.008232/0.008232, allocations: 99.56 kB / 15.73 MB, free: 6.48 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.001794/0.001794, allocations: 193.4 kB / 16.68 MB, free: 6.363 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.523/1.523, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1955/0.1955, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 65.34 kB / 436.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.0879, allocations: 54.97 MB / 491.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002024/0.08996, allocations: 1.058 MB / 492.6 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.09128, allocations: 1.249 MB / 493.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.5e-05/0.09137, allocations: 3.938 kB / 493.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002962/0.09167, allocations: 55.64 kB / 493.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.09188, allocations: 63.73 kB / 494 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.0921, allocations: 103.8 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.09241, allocations: 299.5 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.09256, allocations: 49.59 kB / 494.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.09272, allocations: 123.6 kB / 494.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.09296, allocations: 147.5 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.09301, allocations: 23.98 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.327e-05/0.09305, allocations: 20 kB / 494.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.09317, allocations: 95.78 kB / 494.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.09328, allocations: 95.39 kB / 494.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.09355, allocations: 234.9 kB / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.09356, allocations: 0 / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09357, allocations: 0 / 495.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.09358, allocations: 0 / 495.1 MB, free: 14.07 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.001599/0.09518, allocations: 0.6698 MB / 495.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.09523, allocations: 12.03 kB / 495.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.09528, allocations: 54.61 kB / 495.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.224e-05/0.09534, allocations: 24.8 kB / 495.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008337/0.09618, allocations: 358.9 kB / 496.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.0962, allocations: 8.375 kB / 496.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.09625, allocations: 12.38 kB / 496.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.09655, allocations: 178.9 kB / 496.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.09658, allocations: 4 kB / 496.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.0966, allocations: 7.984 kB / 496.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.09661, allocations: 4 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.09693, allocations: 163.9 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.09796, allocations: 0.6252 MB / 497.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.09832, allocations: 222.5 kB / 497.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.09851, allocations: 108.8 kB / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.09854, allocations: 0 / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.09857, allocations: 38.5 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 2.284e-06/0.09858, allocations: 4 kB / 497.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.001743/0.1003, allocations: 0.642 MB / 498.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.1004, allocations: 55.41 kB / 498.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000744/0.1011, allocations: 340.9 kB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.1012, allocations: 29.7 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.863e-05/0.1012, allocations: 140.4 kB / 498.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.1013, allocations: 75.33 kB / 498.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.379e-05/0.1014, allocations: 41.7 kB / 498.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1015, allocations: 346.8 kB / 499.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.1017, allocations: 87.94 kB / 499.3 MB, free: 9.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.1019, allocations: 87.94 kB / 499.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001967/0.1038, allocations: 0.6277 MB / 0.4883 GB, free: 8.902 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1039, allocations: 0 / 0.4883 GB, free: 8.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007764/0.1046, allocations: 394 kB / 0.4887 GB, free: 8.508 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1047, allocations: 7.938 kB / 0.4887 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1047, allocations: 0 / 0.4887 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.105, allocations: 100.8 kB / 0.4888 GB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.1052, allocations: 27.98 kB / 0.4888 GB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.1071, allocations: 1.841 MB / 0.4906 GB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.1075, allocations: 55.83 kB / 0.4907 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.1075, allocations: 4 kB / 0.4907 GB, free: 6.332 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.0002018/0.1077, allocations: 175.7 kB / 0.4909 GB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.249e-05/0.1078, allocations: 23.86 kB / 0.4909 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.263e-05/0.1078, allocations: 38.17 kB / 0.4909 GB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1078, allocations: 0 / 0.4909 GB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1078, allocations: 4 kB / 0.4909 GB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1079, allocations: 4 kB / 0.4909 GB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.1083, allocations: 333.3 kB / 0.4912 GB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.1083, allocations: 0 / 0.4912 GB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.1085, allocations: 24.17 kB / 0.4913 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/0.1088, allocations: 96.7 kB / 0.4914 GB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1088, allocations: 8 kB / 0.4914 GB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/0.1105, allocations: 1.846 MB / 0.4932 GB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.1105, allocations: 3.938 kB / 0.4932 GB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009131/0.1115, allocations: 0.5553 MB / 0.4937 GB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.1116, allocations: 109 kB / 0.4938 GB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.1116, allocations: 8 kB / 0.4938 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.112, allocations: 44 kB / 0.4939 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.112, allocations: 23.91 kB / 0.4939 GB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.1121, allocations: 4.312 kB / 0.4939 GB, free: 2.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006475/0.1127, allocations: 272.3 kB / 0.4942 GB, free: 2.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1127, allocations: 0 / 0.4942 GB, free: 2.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1131, allocations: 63.89 kB / 0.4942 GB, free: 2.488 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.001199/0.1143, allocations: 1.097 MB / 0.4953 GB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006899/0.115, allocations: 377.2 kB / 0.4956 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.115, allocations: 0 / 0.4956 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.1153, allocations: 254.5 kB / 0.4959 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.1157, allocations: 45.53 kB / 0.4959 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005359/0.1211, allocations: 3.136 MB / 0.499 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1214, allocations: 0.7675 MB / 0.4997 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.1216, allocations: 53.91 kB / 0.4998 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1217, allocations: 75.41 kB / 0.4999 GB, free: 12.54 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1217, allocations: 0 / 0.4999 GB, free: 12.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.1475, allocations: 5.661 MB / 0.5054 GB, free: 6.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.339/9.486, allocations: 18.58 kB / 0.5054 GB, free: 6.949 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)