Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.001531/0.001531, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001584/0.001584, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.393/1.393, allocations: 225.6 MB / 247.8 MB, free: 13.92 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.1/0.1, allocations: 22.7 MB / 325.4 MB, free: 3.531 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.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 67.89 kB / 457.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1066, allocations: 58.04 MB / 0.5031 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003045/0.1097, allocations: 1.744 MB / 0.5048 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.1111, allocations: 0.7012 MB / 0.5055 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.834e-05/0.1112, allocations: 0 / 0.5055 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.1115, allocations: 83.66 kB / 0.5056 GB, free: 5.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.1117, allocations: 87.62 kB / 0.5057 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.1122, allocations: 147.6 kB / 0.5058 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003386/0.1126, allocations: 267.5 kB / 0.5061 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.1127, allocations: 25.48 kB / 0.5061 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1128, allocations: 119.6 kB / 0.5062 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.1131, allocations: 171.5 kB / 0.5064 GB, free: 4.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.1132, allocations: 16 kB / 0.5064 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.1133, allocations: 83.88 kB / 0.5065 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.1134, allocations: 67.8 kB / 0.5065 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.1135, allocations: 91.41 kB / 0.5066 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.1139, allocations: 235.1 kB / 0.5068 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1139, allocations: 0 / 0.5068 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1139, allocations: 0 / 0.5068 GB, free: 3.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.839e-06/0.1139, allocations: 0 / 0.5068 GB, free: 3.793 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001362/0.1153, allocations: 0.6363 MB / 0.5075 GB, free: 3.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1153, allocations: 8.031 kB / 0.5075 GB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.1154, allocations: 42.73 kB / 0.5075 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.1154, allocations: 24.8 kB / 0.5075 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.1161, allocations: 318.8 kB / 0.5078 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.1161, allocations: 8.375 kB / 0.5078 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.1161, allocations: 12.38 kB / 0.5078 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.1165, allocations: 153.7 kB / 0.508 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1165, allocations: 0 / 0.508 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1165, allocations: 4 kB / 0.508 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1165, allocations: 4 kB / 0.508 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.1168, allocations: 135.9 kB / 0.5081 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009061/0.1177, allocations: 0.5004 MB / 0.5086 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.1182, allocations: 178.5 kB / 0.5088 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.1183, allocations: 92.81 kB / 0.5089 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.1183, allocations: 0 / 0.5089 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.1186, allocations: 189 kB / 0.5091 GB, free: 1.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 3.386e-06/0.1186, allocations: 3.984 kB / 0.5091 GB, free: 1.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001352/0.12, allocations: 0.5774 MB / 0.5096 GB, free: 0.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.1201, allocations: 89.03 kB / 0.5097 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005896/0.1206, allocations: 308.9 kB / 0.51 GB, free: 292 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1207, allocations: 29.7 kB / 0.51 GB, free: 256 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.1208, allocations: 140 kB / 0.5102 GB, free: 112 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.1208, allocations: 63.48 kB / 0.5102 GB, free: 48 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.1209, allocations: 37.7 kB / 0.5103 GB, free: 4 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.204/0.3249, allocations: 333.7 kB / 0.5106 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/0.3251, allocations: 83.06 kB / 0.5107 GB, free: 15.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3252, allocations: 88.58 kB / 0.5107 GB, free: 15.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.3267, allocations: 0.5767 MB / 0.5113 GB, free: 15.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3267, allocations: 0.5 kB / 0.5113 GB, free: 15.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007172/0.3274, allocations: 395.5 kB / 0.5117 GB, free: 15.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.233e-05/0.3274, allocations: 41.16 kB / 0.5117 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3274, allocations: 1.844 kB / 0.5117 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/0.3277, allocations: 55.33 kB / 0.5118 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.3278, allocations: 22.34 kB / 0.5118 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.329, allocations: 1.6 MB / 0.5134 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.3292, allocations: 39.83 kB / 0.5134 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.3293, allocations: 8.812 kB / 0.5134 GB, free: 14.2 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.3295, allocations: 189 kB / 0.5136 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.3295, allocations: 26.53 kB / 0.5136 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.3295, allocations: 37.94 kB / 0.5137 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3295, allocations: 1.406 kB / 0.5137 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3296, allocations: 9.062 kB / 0.5137 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3296, allocations: 3.938 kB / 0.5137 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.3298, allocations: 290.3 kB / 0.5139 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3298, allocations: 0.6094 kB / 0.5139 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3299, allocations: 12.39 kB / 0.514 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001462/0.33, allocations: 57.64 kB / 0.514 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.3301, allocations: 7.594 kB / 0.514 GB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009932/0.3311, allocations: 1.609 MB / 0.5156 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3311, allocations: 1.625 kB / 0.5156 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.3318, allocations: 0.5285 MB / 0.5161 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.3319, allocations: 103.6 kB / 0.5162 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.3319, allocations: 12 kB / 0.5162 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3321, allocations: 32.64 kB / 0.5163 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.3322, allocations: 17.88 kB / 0.5163 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3322, allocations: 7.188 kB / 0.5163 GB, free: 12.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003895/0.3326, allocations: 244 kB / 0.5165 GB, free: 12.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3326, allocations: 1.438 kB / 0.5165 GB, free: 12.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.3329, allocations: 65.17 kB / 0.5166 GB, free: 12.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001014/0.3339, allocations: 1.098 MB / 0.5176 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007307/0.3346, allocations: 400.2 kB / 0.518 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3346, allocations: 0 / 0.518 GB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.335, allocations: 288.8 kB / 0.5183 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.3353, allocations: 32.16 kB / 0.5183 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.3396, allocations: 2.944 MB / 0.5212 GB, free: 9.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.3398, allocations: 0.7609 MB / 0.5219 GB, free: 8.953 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.825e-05/0.3399, allocations: 32.5 kB / 0.522 GB, free: 8.949 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-05/0.34, allocations: 69.17 kB / 0.522 GB, free: 8.898 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.34, allocations: 0 / 0.522 GB, free: 8.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03581/0.3758, allocations: 5.434 MB / 0.5274 GB, free: 8.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.09, allocations: 4.094 kB / 0.5274 GB, free: 8.277 MB / 382.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --stepSize=0.03 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.607261003926396] Failed to read output from testmodel.py, exit status != 0: 10.173882452771068 10.18426714 10.068173129 Calling exit ...