Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.00542/0.00542, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001267/0.001267, allocations: 193.5 kB / 16.67 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2064/0.2064, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 60.97 kB / 436.6 MB, free: 33.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09866/0.1, allocations: 54.97 MB / 491.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001925/0.102, allocations: 1.139 MB / 492.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1035, allocations: 1.303 MB / 494 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.1036, allocations: 0 / 494 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.1039, allocations: 63.62 kB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1042, allocations: 91.59 kB / 494.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.1045, allocations: 131.8 kB / 494.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004435/0.105, allocations: 387.3 kB / 494.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.1051, allocations: 44.39 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.1053, allocations: 167.5 kB / 494.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.1057, allocations: 191.3 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.1057, allocations: 20 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.1058, allocations: 24 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.1059, allocations: 119.7 kB / 495.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1061, allocations: 111.3 kB / 495.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.1063, allocations: 275.8 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1064, allocations: 0 / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1064, allocations: 0 / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.1064, allocations: 4 kB / 495.6 MB, free: 13.66 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002006/0.1084, allocations: 0.748 MB / 496.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1084, allocations: 8.031 kB / 496.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.749e-05/0.1085, allocations: 50.73 kB / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.84e-05/0.1086, allocations: 36.5 kB / 496.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.1097, allocations: 411.4 kB / 496.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.1097, allocations: 16.59 kB / 496.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/0.1097, allocations: 16.28 kB / 496.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.1101, allocations: 203.8 kB / 497 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1101, allocations: 0 / 497 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.1101, allocations: 4 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.1101, allocations: 4 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003751/0.1105, allocations: 204.7 kB / 497.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.1117, allocations: 0.6955 MB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.1123, allocations: 262.4 kB / 498.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.1125, allocations: 132.7 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1125, allocations: 4 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.1125, allocations: 38.56 kB / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.352e-06/0.1125, allocations: 0 / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001845/0.1144, allocations: 0.6838 MB / 499.1 MB, free: 9.973 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1144, allocations: 55.41 kB / 499.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009296/0.1154, allocations: 418.8 kB / 499.5 MB, free: 9.484 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1154, allocations: 29.7 kB / 499.6 MB, free: 9.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.1155, allocations: 148.5 kB / 499.7 MB, free: 9.301 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-05/0.1156, allocations: 86.75 kB / 499.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.284e-05/0.1157, allocations: 41.7 kB / 499.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1158, allocations: 346.7 kB / 0.4884 GB, free: 8.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.116, allocations: 107.9 kB / 0.4885 GB, free: 8.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.1162, allocations: 104.7 kB / 0.4886 GB, free: 8.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/0.1185, allocations: 0.7128 MB / 0.4893 GB, free: 7.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1185, allocations: 4 kB / 0.4893 GB, free: 7.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009044/0.1194, allocations: 433.8 kB / 0.4898 GB, free: 7.457 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.1194, allocations: 13.8 kB / 0.4898 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1195, allocations: 0 / 0.4898 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.1198, allocations: 100.8 kB / 0.4899 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.12, allocations: 35.98 kB / 0.4899 GB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.122, allocations: 1.841 MB / 0.4917 GB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.1224, allocations: 71.77 kB / 0.4918 GB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.1225, allocations: 11.94 kB / 0.4918 GB, free: 5.242 MB / 366.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0002232/0.1227, allocations: 176.4 kB / 0.4919 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.1227, allocations: 23.72 kB / 0.492 GB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.248e-05/0.1228, allocations: 42.25 kB / 0.492 GB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1229, allocations: 4 kB / 0.492 GB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1229, allocations: 3.938 kB / 0.492 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1229, allocations: 3.984 kB / 0.492 GB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.1233, allocations: 365.2 kB / 0.4924 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1233, allocations: 192 / 0.4924 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.1235, allocations: 35.92 kB / 0.4924 GB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.1238, allocations: 92.77 kB / 0.4925 GB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.1239, allocations: 11.98 kB / 0.4925 GB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.1257, allocations: 1.845 MB / 0.4943 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1257, allocations: 4.031 kB / 0.4943 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009966/0.1267, allocations: 0.616 MB / 0.4949 GB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1268, allocations: 116.7 kB / 0.495 GB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.1268, allocations: 4 kB / 0.495 GB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004471/0.1273, allocations: 55.91 kB / 0.4951 GB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.1274, allocations: 27.91 kB / 0.4951 GB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1274, allocations: 4.188 kB / 0.4951 GB, free: 1.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008382/0.1282, allocations: 321.8 kB / 0.4954 GB, free: 1.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1283, allocations: 4 kB / 0.4954 GB, free: 1.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000352/0.1286, allocations: 64 kB / 0.4955 GB, free: 1.215 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.001338/0.13, allocations: 1.159 MB / 0.4966 GB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008648/0.1308, allocations: 411.3 kB / 0.497 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1309, allocations: 0 / 0.497 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.1313, allocations: 270.5 kB / 0.4973 GB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.1317, allocations: 52.8 kB / 0.4973 GB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006487/0.1382, allocations: 3.576 MB / 0.5008 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.1386, allocations: 0.787 MB / 0.5016 GB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.1388, allocations: 66.17 kB / 0.5016 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.139, allocations: 87.41 kB / 0.5017 GB, free: 10.64 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.139, allocations: 4 kB / 0.5017 GB, free: 10.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0283/0.1673, allocations: 6.647 MB / 0.5082 GB, free: 4.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.447/9.614, allocations: 19.78 kB / 0.5082 GB, free: 4.062 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)