Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.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.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",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.00468/0.00468, allocations: 101.1 kB / 15.73 MB, free: 6.059 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.001238/0.001238, allocations: 189.4 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1061/0.1061, allocations: 22.33 MB / 312.9 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 55.91 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09608, allocations: 54.96 MB / 491.5 MB, free: 5.246 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.004195/0.1003, allocations: 3.198 MB / 494.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.1018, allocations: 0.9079 MB / 495.6 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.1019, allocations: 4 kB / 495.6 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.1021, allocations: 63.36 kB / 495.7 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003246/0.1024, allocations: 178.6 kB / 495.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004858/0.1029, allocations: 191.7 kB / 496 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007637/0.1037, allocations: 0.7522 MB / 496.8 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005669/0.1043, allocations: 441.8 kB / 497.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.1046, allocations: 307.1 kB / 497.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004925/0.1051, allocations: 390.7 kB / 497.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.1053, allocations: 76 kB / 498 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.1054, allocations: 80 kB / 498.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.1056, allocations: 203.4 kB / 498.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000343/0.106, allocations: 346.5 kB / 498.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007997/0.1068, allocations: 0.7901 MB / 499.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1068, allocations: 0 / 499.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1068, allocations: 4 kB / 499.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1068, allocations: 0 / 499.4 MB, free: 13.32 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001905/0.1087, allocations: 0.9115 MB / 0.4886 GB, free: 12.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1088, allocations: 12.03 kB / 0.4886 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1089, allocations: 90.7 kB / 0.4887 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.109, allocations: 64.56 kB / 0.4887 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.1096, allocations: 400.2 kB / 0.4891 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/0.1097, allocations: 112.9 kB / 0.4892 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.821e-05/0.1098, allocations: 52.38 kB / 0.4893 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.1114, allocations: 0.6933 MB / 0.4899 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.1115, allocations: 0 / 0.4899 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.46e-05/0.1115, allocations: 20 kB / 0.49 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1116, allocations: 12 kB / 0.49 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.1131, allocations: 0.605 MB / 0.4906 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005124/0.1182, allocations: 2.563 MB / 0.4931 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.1195, allocations: 0.5553 MB / 0.4936 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000944/0.1205, allocations: 413.9 kB / 0.494 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.298e-05/0.1205, allocations: 4.438 kB / 0.494 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.1206, allocations: 46.94 kB / 0.4941 GB, free: 6.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.674e-06/0.1206, allocations: 0 / 0.4941 GB, free: 6.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.005952/0.1265, allocations: 2.187 MB / 0.4962 GB, free: 4.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.1266, allocations: 63.84 kB / 0.4963 GB, free: 4.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.127, allocations: 361.6 kB / 0.4966 GB, free: 3.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.242e-05/0.127, allocations: 37.7 kB / 0.4966 GB, free: 3.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.1272, allocations: 232.7 kB / 0.4969 GB, free: 3.637 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.1274, allocations: 198.3 kB / 0.497 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.1276, allocations: 98.19 kB / 0.4971 GB, free: 3.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1278, allocations: 350.8 kB / 0.4975 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009171/0.1287, allocations: 378.7 kB / 0.4978 GB, free: 2.617 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009335/0.1296, allocations: 411.1 kB / 0.4982 GB, free: 2.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007012/0.1367, allocations: 1.996 MB / 0.5002 GB, free: 184 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1367, allocations: 0 / 0.5002 GB, free: 184 kB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.1721/0.3087, allocations: 0.8483 MB / 0.501 GB, free: 22.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3088, allocations: 7.906 kB / 0.501 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3088, allocations: 1.406 kB / 0.501 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.3088, allocations: 5.812 kB / 0.501 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006201/0.315, allocations: 0.9085 MB / 0.5019 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.3151, allocations: 8.359 kB / 0.5019 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005656/0.3156, allocations: 55.3 kB / 0.502 GB, free: 22.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.3157, allocations: 20.8 kB / 0.502 GB, free: 22.04 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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 0.0003034/0.316, allocations: 201 kB / 0.5022 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.456e-05/0.3161, allocations: 48.55 kB / 0.5022 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.3181, allocations: 0.8365 MB / 0.503 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3181, allocations: 5.328 kB / 0.503 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3181, allocations: 0 / 0.503 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3181, allocations: 2.812 kB / 0.503 GB, free: 21.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.3212, allocations: 1.731 MB / 0.5047 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.3212, allocations: 2.188 kB / 0.5047 GB, free: 21.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006323/0.3275, allocations: 0.9015 MB / 0.5056 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.3276, allocations: 2.531 kB / 0.5056 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.531e-05/0.3276, allocations: 17.27 kB / 0.5056 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.3276, allocations: 9.188 kB / 0.5056 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3277, allocations: 0 / 0.5056 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/0.3304, allocations: 1.268 MB / 0.5069 GB, free: 21.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.3305, allocations: 124.6 kB / 0.507 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.684e-05/0.3306, allocations: 13.05 kB / 0.507 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005511/0.3312, allocations: 58 kB / 0.5071 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.3314, allocations: 73.72 kB / 0.5071 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.816e-05/0.3314, allocations: 17.11 kB / 0.5072 GB, free: 21.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002382/0.3317, allocations: 254.2 kB / 0.5074 GB, free: 21.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3317, allocations: 5.406 kB / 0.5074 GB, free: 21.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004514/0.3321, allocations: 144.7 kB / 0.5075 GB, free: 21.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.00292/0.335, allocations: 1.827 MB / 0.5093 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.3369, allocations: 0.7915 MB / 0.5101 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3369, allocations: 5.125 kB / 0.5101 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009161/0.3378, allocations: 416.7 kB / 0.5105 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005333/0.3384, allocations: 104.3 kB / 0.5106 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.3485, allocations: 6.011 MB / 0.5165 GB, free: 18.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.3488, allocations: 0.85 MB / 0.5173 GB, free: 17.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004165/0.3492, allocations: 96.06 kB / 0.5174 GB, free: 17.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/0.3496, allocations: 185.8 kB / 0.5176 GB, free: 17.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3496, allocations: 0 / 0.5176 GB, free: 17.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.385, allocations: 12.81 MB / 0.5301 GB, free: 12.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.555/9.939, allocations: 7.531 kB / 0.5301 GB, free: 12.47 MB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003_fmu --startTime=0 --stopTime=20000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1)