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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 116.8 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 209.6 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.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.09817/0.09817, allocations: 22.93 MB / 332.5 MB, free: 2.633 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 71.64 kB / 466.7 MB, free: 32.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1096, allocations: 59.27 MB / 0.5137 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002714/0.1123, allocations: 1.128 MB / 0.5148 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.1145, allocations: 1.35 MB / 0.5161 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1146, allocations: 7.938 kB / 0.5161 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004154/0.115, allocations: 79.55 kB / 0.5162 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.1153, allocations: 83.61 kB / 0.5163 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.1156, allocations: 135.7 kB / 0.5164 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004738/0.116, allocations: 383.3 kB / 0.5168 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1162, allocations: 40.36 kB / 0.5168 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.1164, allocations: 163.5 kB / 0.517 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.1167, allocations: 219.3 kB / 0.5172 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-05/0.1168, allocations: 20 kB / 0.5172 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.902e-05/0.1168, allocations: 24 kB / 0.5172 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.1169, allocations: 115.6 kB / 0.5173 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1171, allocations: 111.2 kB / 0.5174 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.1174, allocations: 278.8 kB / 0.5177 GB, free: 9.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1174, allocations: 0 / 0.5177 GB, free: 9.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1174, allocations: 0 / 0.5177 GB, free: 9.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1174, allocations: 0 / 0.5177 GB, free: 9.875 MB / 382.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.002202/0.1196, allocations: 0.7557 MB / 0.5184 GB, free: 9.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.1196, allocations: 12.62 kB / 0.5184 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.914e-05/0.1197, allocations: 8.469 kB / 0.5185 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.826e-05/0.1197, allocations: 50.67 kB / 0.5185 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.1198, allocations: 28.75 kB / 0.5185 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.1209, allocations: 427.5 kB / 0.5189 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1209, allocations: 12.66 kB / 0.5189 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.121, allocations: 16.38 kB / 0.519 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.1214, allocations: 187.7 kB / 0.5191 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.1214, allocations: 11.94 kB / 0.5192 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.1214, allocations: 8 kB / 0.5192 GB, free: 8.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.1214, allocations: 4 kB / 0.5192 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000407/0.1218, allocations: 196.7 kB / 0.5194 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1232, allocations: 0.6954 MB / 0.52 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.1238, allocations: 256.7 kB / 0.5203 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1241, allocations: 128.7 kB / 0.5204 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.1241, allocations: 4 kB / 0.5204 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.1241, allocations: 30.56 kB / 0.5204 GB, free: 6.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.454e-06/0.1241, allocations: 0 / 0.5204 GB, free: 6.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001992/0.1261, allocations: 0.6939 MB / 0.5211 GB, free: 6.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.1262, allocations: 51.41 kB / 0.5212 GB, free: 6.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009694/0.1271, allocations: 418.8 kB / 0.5216 GB, free: 5.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.1272, allocations: 33.7 kB / 0.5216 GB, free: 5.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.1273, allocations: 152.6 kB / 0.5217 GB, free: 5.508 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.024e-05/0.1274, allocations: 83.23 kB / 0.5218 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1275, allocations: 49.7 kB / 0.5219 GB, free: 5.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.1277, allocations: 350.7 kB / 0.5222 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.1279, allocations: 99.94 kB / 0.5223 GB, free: 4.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.1281, allocations: 103.9 kB / 0.5224 GB, free: 4.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.1304, allocations: 0.7166 MB / 0.5231 GB, free: 4.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1304, allocations: 0 / 0.5231 GB, free: 4.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000907/0.1313, allocations: 450 kB / 0.5235 GB, free: 3.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1313, allocations: 4 kB / 0.5235 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1314, allocations: 7.922 kB / 0.5235 GB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/0.1317, allocations: 92.77 kB / 0.5236 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1319, allocations: 35.92 kB / 0.5237 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/0.134, allocations: 1.845 MB / 0.5255 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004458/0.1345, allocations: 71.73 kB / 0.5255 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1345, allocations: 8 kB / 0.5255 GB, free: 1.441 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.0002617/0.1347, allocations: 172.5 kB / 0.5257 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.168e-05/0.1348, allocations: 31.8 kB / 0.5257 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.1349, allocations: 42.27 kB / 0.5258 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1349, allocations: 0 / 0.5258 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.135, allocations: 7.984 kB / 0.5258 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.135, allocations: 3.938 kB / 0.5258 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.1354, allocations: 365.3 kB / 0.5261 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1354, allocations: 0 / 0.5261 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1357, allocations: 35.91 kB / 0.5262 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/0.136, allocations: 92.77 kB / 0.5263 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.136, allocations: 11.98 kB / 0.5263 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.1381, allocations: 1.857 MB / 0.5281 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1381, allocations: 0 / 0.5281 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.1392, allocations: 0.6123 MB / 0.5287 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.1394, allocations: 116.8 kB / 0.5288 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.1394, allocations: 8 kB / 0.5288 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004546/0.1399, allocations: 55.91 kB / 0.5288 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.652e-05/0.1399, allocations: 23.91 kB / 0.5289 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.14, allocations: 4 kB / 0.5289 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008821/0.1408, allocations: 329.8 kB / 0.5292 GB, free: 13.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1408, allocations: 3.938 kB / 0.5292 GB, free: 13.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003501/0.1412, allocations: 60 kB / 0.5292 GB, free: 13.4 MB / 398.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.00149/0.1427, allocations: 1.158 MB / 0.5304 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008182/0.1435, allocations: 405.7 kB / 0.5308 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1435, allocations: 4 kB / 0.5308 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.1439, allocations: 270.5 kB / 0.531 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.1444, allocations: 46.98 kB / 0.5311 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007081/0.1515, allocations: 3.582 MB / 0.5346 GB, free: 7.809 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005721/0.152, allocations: 0.7948 MB / 0.5353 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002408/0.1523, allocations: 66.22 kB / 0.5354 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.1524, allocations: 87.41 kB / 0.5355 GB, free: 6.836 MB / 398.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1524, allocations: 0 / 0.5355 GB, free: 6.836 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.1812, allocations: 6.645 MB / 0.542 GB, free: 308 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.82, allocations: 6.25 kB / 0.542 GB, free: 304 kB / 398.1 MB " [Timeout remaining time 649] (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: 13.762152303010225] Failed to read output from testmodel.py, exit status != 0: 10.967845075007062 10.988975869 10.867374932 Calling exit ...