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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 107.5 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 225.6 MB / 247.8 MB, free: 3.758 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09329/0.09329, allocations: 22.69 MB / 325.4 MB, free: 7.938 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.98 kB / 457.2 MB, free: 41.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.1005, allocations: 58.02 MB / 0.5031 GB, free: 8.266 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001978/0.1025, allocations: 1.143 MB / 0.5042 GB, free: 7.121 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1036, allocations: 1.299 MB / 0.5055 GB, free: 5.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.024e-05/0.1037, allocations: 0 / 0.5055 GB, free: 5.805 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.104, allocations: 75.55 kB / 0.5056 GB, free: 5.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001733/0.1042, allocations: 87.58 kB / 0.5056 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.1044, allocations: 131.8 kB / 0.5058 GB, free: 5.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.1046, allocations: 395.3 kB / 0.5061 GB, free: 5.129 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.1047, allocations: 36.33 kB / 0.5062 GB, free: 5.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1049, allocations: 163.5 kB / 0.5063 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.1051, allocations: 207.4 kB / 0.5065 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.1051, allocations: 28 kB / 0.5066 GB, free: 4.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.837e-05/0.1051, allocations: 24 kB / 0.5066 GB, free: 4.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.755e-05/0.1052, allocations: 123.5 kB / 0.5067 GB, free: 4.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.1053, allocations: 107.3 kB / 0.5068 GB, free: 4.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.1055, allocations: 274.8 kB / 0.5071 GB, free: 4.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1055, allocations: 0 / 0.5071 GB, free: 4.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1055, allocations: 0 / 0.5071 GB, free: 4.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1055, allocations: 0 / 0.5071 GB, free: 4.184 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.001546/0.1071, allocations: 0.7596 MB / 0.5078 GB, free: 3.371 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.1071, allocations: 12.03 kB / 0.5078 GB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.1071, allocations: 46.73 kB / 0.5079 GB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.1072, allocations: 32.75 kB / 0.5079 GB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008781/0.1081, allocations: 415.5 kB / 0.5083 GB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.1081, allocations: 12.66 kB / 0.5083 GB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.1081, allocations: 24.31 kB / 0.5083 GB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.1084, allocations: 191.9 kB / 0.5085 GB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1084, allocations: 4 kB / 0.5085 GB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.1084, allocations: 4 kB / 0.5085 GB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1084, allocations: 4 kB / 0.5085 GB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.1087, allocations: 196.7 kB / 0.5087 GB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1097, allocations: 0.6995 MB / 0.5094 GB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.1102, allocations: 265 kB / 0.5096 GB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.1104, allocations: 125.4 kB / 0.5098 GB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.1104, allocations: 7.938 kB / 0.5098 GB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.1104, allocations: 30.56 kB / 0.5098 GB, free: 1.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.1104, allocations: 0 / 0.5098 GB, free: 1.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001525/0.1119, allocations: 0.6888 MB / 0.5105 GB, free: 0.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.1119, allocations: 51.41 kB / 0.5105 GB, free: 448 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006948/0.1126, allocations: 414.8 kB / 0.5109 GB, free: 20 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.1127, allocations: 33.7 kB / 0.5109 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1128, allocations: 152.5 kB / 0.5111 GB, free: 15.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.882e-05/0.1129, allocations: 91.2 kB / 0.5112 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.902e-05/0.113, allocations: 49.7 kB / 0.5112 GB, free: 15.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1131, allocations: 350.7 kB / 0.5116 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.1133, allocations: 95.94 kB / 0.5117 GB, free: 15.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.1135, allocations: 108.7 kB / 0.5118 GB, free: 15.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.1157, allocations: 0.7136 MB / 0.5125 GB, free: 14.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1157, allocations: 0 / 0.5125 GB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008481/0.1166, allocations: 446 kB / 0.5129 GB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.1166, allocations: 7.938 kB / 0.5129 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1166, allocations: 0 / 0.5129 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/0.1169, allocations: 100.8 kB / 0.513 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.1171, allocations: 35.92 kB / 0.513 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.1193, allocations: 1.845 MB / 0.5148 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.1197, allocations: 71.89 kB / 0.5149 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.1197, allocations: 11.94 kB / 0.5149 GB, free: 11.75 MB / 382.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.0002652/0.12, allocations: 176.4 kB / 0.5151 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.1201, allocations: 27.81 kB / 0.5151 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.104e-05/0.1202, allocations: 46.25 kB / 0.5151 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1202, allocations: 0 / 0.5151 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1202, allocations: 4 kB / 0.5151 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1202, allocations: 3.984 kB / 0.5151 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/0.1206, allocations: 361.2 kB / 0.5155 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1206, allocations: 0 / 0.5155 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1208, allocations: 36.11 kB / 0.5155 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.1212, allocations: 96.77 kB / 0.5156 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.1212, allocations: 11.98 kB / 0.5156 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001878/0.1231, allocations: 1.846 MB / 0.5174 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1231, allocations: 0 / 0.5174 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.1241, allocations: 0.6159 MB / 0.518 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1243, allocations: 112.8 kB / 0.5181 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.1243, allocations: 8 kB / 0.5181 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.1247, allocations: 59.91 kB / 0.5182 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/0.1248, allocations: 19.92 kB / 0.5182 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.1248, allocations: 4 kB / 0.5182 GB, free: 8.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008154/0.1256, allocations: 329.8 kB / 0.5185 GB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1256, allocations: 0 / 0.5185 GB, free: 7.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.126, allocations: 60 kB / 0.5186 GB, free: 7.73 MB / 382.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.001505/0.1275, allocations: 1.16 MB / 0.5197 GB, free: 6.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007818/0.1282, allocations: 406.2 kB / 0.5201 GB, free: 6.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1282, allocations: 0 / 0.5201 GB, free: 6.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004204/0.1287, allocations: 277.7 kB / 0.5204 GB, free: 5.852 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.1291, allocations: 51.17 kB / 0.5204 GB, free: 5.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00646/0.1355, allocations: 3.575 MB / 0.5239 GB, free: 2.125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.136, allocations: 0.7948 MB / 0.5247 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.1361, allocations: 58.23 kB / 0.5248 GB, free: 1.246 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.1363, allocations: 87.41 kB / 0.5248 GB, free: 1.16 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1363, allocations: 0 / 0.5248 GB, free: 1.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.1695, allocations: 6.606 MB / 0.5313 GB, free: 10.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.649/9.819, allocations: 9.141 kB / 0.5313 GB, free: 10.64 MB / 398.1 MB " [Timeout remaining time 650] (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 --stepSize=0.12 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.40400656312704] Failed to read output from testmodel.py, exit status != 0: 9.898419055622071 9.912284522 9.804049518 Calling exit ...