Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.0008166/0.0008166, allocations: 80.53 kB / 19.95 MB, free: 4.609 MB / 18.57 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.000902/0.000902, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8978/0.8978, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.06815/0.06815, allocations: 18.13 MB / 278.1 MB, free: 11.56 MB / 266.7 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.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.742e-05, allocations: 7.062 kB / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.003232/0.00326, allocations: 2.201 MB / 417.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009048/0.004164, allocations: 0.5223 MB / 417.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.004298, allocations: 3.656 kB / 417.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.004447, allocations: 28.09 kB / 417.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.004578, allocations: 72.09 kB / 417.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.004777, allocations: 48.8 kB / 417.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.005059, allocations: 223.8 kB / 418.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.005295, allocations: 67.17 kB / 418.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.005446, allocations: 75.45 kB / 418.3 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.005606, allocations: 64.45 kB / 418.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.005654, allocations: 17.34 kB / 418.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.137e-05/0.005685, allocations: 17.88 kB / 418.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.763e-05/0.005723, allocations: 44.77 kB / 418.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.873e-05/0.005802, allocations: 68.67 kB / 418.5 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.006137, allocations: 221.9 kB / 418.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.006141, allocations: 0 / 418.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.006142, allocations: 0 / 418.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.006152, allocations: 1.922 kB / 418.7 MB, free: 10.48 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0006517/0.006804, allocations: 404.9 kB / 419.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.006859, allocations: 9.391 kB / 419.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.006907, allocations: 58.36 kB / 419.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.006956, allocations: 23.2 kB / 419.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.007285, allocations: 153.5 kB / 419.4 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.007306, allocations: 18.2 kB / 419.4 MB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.007342, allocations: 17.56 kB / 419.4 MB, free: 9.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.007656, allocations: 197.8 kB / 419.6 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.007673, allocations: 6.328 kB / 419.6 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.007693, allocations: 9.156 kB / 419.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.007701, allocations: 5.656 kB / 419.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.007919, allocations: 124.8 kB / 419.7 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008528/0.008772, allocations: 0.595 MB / 420.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.009039, allocations: 123.5 kB / 420.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.713e-05/0.009136, allocations: 60.31 kB / 420.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.009151, allocations: 2.875 kB / 420.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.00917, allocations: 36.67 kB / 420.5 MB, free: 9.156 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.009171, allocations: 0 / 420.5 MB, free: 9.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003106/0.009482, allocations: 180.4 kB / 420.7 MB, free: 9.066 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.009505, allocations: 53.19 kB / 420.8 MB, free: 9.004 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.009577, allocations: 132.5 kB / 420.9 MB, free: 8.891 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.009589, allocations: 25.7 kB / 420.9 MB, free: 8.859 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.009644, allocations: 132.3 kB / 421 MB, free: 8.742 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.009675, allocations: 57.23 kB / 421.1 MB, free: 8.695 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.009725, allocations: 36.73 kB / 421.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.009772, allocations: 324.9 kB / 421.5 MB, free: 8.348 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.297e-05/0.009835, allocations: 38.06 kB / 421.5 MB, free: 8.336 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.088e-05/0.009916, allocations: 70.56 kB / 421.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.01007, allocations: 126.5 kB / 421.7 MB, free: 8.211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.01007, allocations: 0 / 421.7 MB, free: 8.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001943/0.01027, allocations: 164.8 kB / 421.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.01029, allocations: 10.12 kB / 421.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.0103, allocations: 3 kB / 421.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.01031, allocations: 1.406 kB / 421.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.01042, allocations: 38.53 kB / 421.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.01043, allocations: 7.562 kB / 421.9 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.263e-05/0.01047, allocations: 15.77 kB / 421.9 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.966e-06/0.01048, allocations: 9.438 kB / 421.9 MB, free: 8.102 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.469e-05/0.01055, allocations: 125.6 kB / 422.1 MB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.951e-05/0.01057, allocations: 14.34 kB / 422.1 MB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.0106, allocations: 23.7 kB / 422.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.0106, allocations: 2.75 kB / 422.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.01061, allocations: 0 / 422.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.01061, allocations: 0.7969 kB / 422.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.01078, allocations: 216.4 kB / 422.3 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01078, allocations: 1.25 kB / 422.3 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.01089, allocations: 37.28 kB / 422.3 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.0109, allocations: 1.969 kB / 422.3 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.01091, allocations: 9.188 kB / 422.4 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.01091, allocations: 1.156 kB / 422.4 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.01092, allocations: 7.094 kB / 422.4 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.01119, allocations: 279.1 kB / 422.6 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.01121, allocations: 13.19 kB / 422.6 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.01123, allocations: 5.828 kB / 422.7 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.221e-05/0.01129, allocations: 8.781 kB / 422.7 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.01134, allocations: 14.48 kB / 422.7 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.01134, allocations: 2.281 kB / 422.7 MB, free: 7.531 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.778e-05/0.01138, allocations: 99.52 kB / 422.8 MB, free: 7.449 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01138, allocations: 0 / 422.8 MB, free: 7.449 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.01157, allocations: 55 kB / 422.8 MB, free: 7.43 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.T) * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004083/0.01198, allocations: 0.826 MB / 423.7 MB, free: 6.699 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002083/0.01219, allocations: 110.4 kB / 423.8 MB, free: 6.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01219, allocations: 3.938 kB / 423.8 MB, free: 6.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.289e-05/0.01226, allocations: 52 kB / 423.8 MB, free: 6.645 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.01252, allocations: 20.61 kB / 423.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.01419, allocations: 1.846 MB / 425.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.452e-05/0.01429, allocations: 112.4 kB / 425.8 MB, free: 5.047 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.976e-05/0.01435, allocations: 18.19 kB / 425.8 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/0.01441, allocations: 50.92 kB / 425.9 MB, free: 5 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01441, allocations: 0 / 425.9 MB, free: 5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.03748, allocations: 3.533 MB / 429.4 MB, free: 3.938 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.012/7.049, allocations: 5.312 kB / 429.4 MB, free: 3.934 MB / 330.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop_res.csv --start-time 0 --stop-time 15000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.875 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_OpenLoop.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.189649419859052] Failed to read output from testmodel.py, exit status != 0: 7.130154141224921 7.138135544 7.129863492 Calling exit ...