Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.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.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.HE_simple_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001",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.007256/0.007256, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001634/0.001634, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2108/0.2108, allocations: 22.34 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 62.16 kB / 436.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.0992, allocations: 54.97 MB / 491.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.HE_simple_case_001): time 0.002884/0.1021, allocations: 2.188 MB / 493.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005453/0.1027, allocations: 195.2 kB / 493.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.1029, allocations: 11.94 kB / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.263e-05/0.103, allocations: 31.64 kB / 494 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002869/0.1033, allocations: 107.2 kB / 494.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.1035, allocations: 47.83 kB / 494.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.1038, allocations: 282.5 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.1041, allocations: 128.7 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.1043, allocations: 127.5 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.1045, allocations: 95.56 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.1045, allocations: 12 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.742e-05/0.1046, allocations: 16 kB / 494.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.944e-05/0.1046, allocations: 31.86 kB / 494.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.1047, allocations: 111.3 kB / 494.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.105, allocations: 219.3 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.105, allocations: 8 kB / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.105, allocations: 0 / 495.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.105, allocations: 0 / 495.1 MB, free: 14.14 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007552/0.1058, allocations: 0.5099 MB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1059, allocations: 12.03 kB / 495.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.477e-05/0.1059, allocations: 46.73 kB / 495.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.106, allocations: 24.8 kB / 495.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.1064, allocations: 280.7 kB / 496 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.1064, allocations: 8.375 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.011e-05/0.1065, allocations: 12.38 kB / 496 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.1067, allocations: 171.2 kB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.1068, allocations: 3.938 kB / 496.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1068, allocations: 8 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1068, allocations: 4 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.107, allocations: 95.89 kB / 496.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009352/0.1079, allocations: 0.8095 MB / 497.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.1081, allocations: 78.5 kB / 497.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.349e-05/0.1082, allocations: 36.84 kB / 497.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.1082, allocations: 0 / 497.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.1083, allocations: 38.56 kB / 497.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.1083, allocations: 0 / 497.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003009/0.1086, allocations: 133.6 kB / 497.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.1086, allocations: 55.34 kB / 497.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.1089, allocations: 275 kB / 497.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1089, allocations: 25.7 kB / 497.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.109, allocations: 136 kB / 497.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.589e-05/0.1091, allocations: 31.73 kB / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.1091, allocations: 29.7 kB / 497.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1092, allocations: 338.8 kB / 498.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.369e-05/0.1093, allocations: 24 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.972e-05/0.1094, allocations: 46.56 kB / 498.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005485/0.1099, allocations: 162.4 kB / 498.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.11, allocations: 3.984 kB / 498.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002374/0.1102, allocations: 137.4 kB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.1102, allocations: 8 kB / 498.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1102, allocations: 0 / 498.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1103, allocations: 0 / 498.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.1104, allocations: 31.98 kB / 498.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.1105, allocations: 7.938 kB / 498.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1106, allocations: 19.83 kB / 498.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.1106, allocations: 4 kB / 498.7 MB, free: 10.29 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 14 * 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.0001759/0.1108, allocations: 133.8 kB / 498.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.812e-05/0.1108, allocations: 31.84 kB / 498.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.1109, allocations: 21.73 kB / 498.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1109, allocations: 4 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1109, allocations: 3.938 kB / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1109, allocations: 0 / 498.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.1112, allocations: 245.5 kB / 499.1 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1112, allocations: 0 / 499.1 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.1114, allocations: 19.94 kB / 499.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1114, allocations: 0 / 499.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.1114, allocations: 3.938 kB / 499.1 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1114, allocations: 4 kB / 499.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.1114, allocations: 7.922 kB / 499.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.1117, allocations: 235.7 kB / 499.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.413e-05/0.1118, allocations: 93 kB / 499.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.1119, allocations: 8 kB / 499.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.112, allocations: 4 kB / 499.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.112, allocations: 7.922 kB / 499.5 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.112, allocations: 4 kB / 499.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.1122, allocations: 198 kB / 499.7 MB, free: 9.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1122, allocations: 0 / 499.7 MB, free: 9.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.1125, allocations: 36 kB / 499.7 MB, free: 9.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (8): * Single equations (assignments): 8 * 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.0005532/0.113, allocations: 0.7786 MB / 0.4888 GB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001992/0.1132, allocations: 88.12 kB / 0.4889 GB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1132, allocations: 0 / 0.4889 GB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.563e-05/0.1133, allocations: 31.92 kB / 0.4889 GB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.1137, allocations: 51.05 kB / 0.4889 GB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.1163, allocations: 2.301 MB / 0.4912 GB, free: 5.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.1166, allocations: 0.7284 MB / 0.4919 GB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.1167, allocations: 30.28 kB / 0.4919 GB, free: 5.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.808e-05/0.1169, allocations: 67.41 kB / 0.492 GB, free: 4.941 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1169, allocations: 0 / 0.492 GB, free: 4.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.1413, allocations: 4.634 MB / 0.4965 GB, free: 428 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.814, allocations: 10.78 kB / 0.4965 GB, free: 420 kB / 366.1 MB (rm -f AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 100 AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)