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.0115/0.0115, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001704/0.001704, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.281/1.281, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08998/0.08998, allocations: 22.33 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 59.91 kB / 436.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09714, allocations: 54.96 MB / 491.5 MB, free: 5.238 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.HE_simple_case_001): time 0.003212/0.1004, allocations: 2.176 MB / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005349/0.101, allocations: 211.2 kB / 493.9 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.1012, allocations: 11.94 kB / 493.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 8.476e-05/0.1013, allocations: 31.64 kB / 493.9 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.1015, allocations: 99.22 kB / 494 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1017, allocations: 43.89 kB / 494.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002982/0.102, allocations: 282.5 kB / 494.3 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.1023, allocations: 124.7 kB / 494.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002142/0.1025, allocations: 135.5 kB / 494.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.1027, allocations: 87.58 kB / 494.7 MB, free: 2.039 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.225e-05/0.1027, allocations: 16 kB / 494.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.394e-05/0.1027, allocations: 15.94 kB / 494.7 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.1028, allocations: 27.86 kB / 494.7 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1029, allocations: 119.4 kB / 494.8 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.1031, allocations: 211.5 kB / 495.1 MB, free: 1.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1031, allocations: 3.938 kB / 495.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1031, allocations: 0 / 495.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1031, allocations: 0 / 495.1 MB, free: 1.652 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.0007068/0.1038, allocations: 0.5062 MB / 495.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1039, allocations: 12.02 kB / 495.6 MB, free: 1.082 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.537e-05/0.1039, allocations: 46.69 kB / 495.6 MB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.104, allocations: 24.66 kB / 495.6 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.1043, allocations: 276.5 kB / 495.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.1043, allocations: 8.375 kB / 495.9 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.817e-05/0.1044, allocations: 16.28 kB / 495.9 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.1046, allocations: 183.1 kB / 496.1 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.1047, allocations: 0 / 496.1 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.1047, allocations: 4 kB / 496.1 MB, free: 476 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1047, allocations: 8 kB / 496.1 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001777/0.1049, allocations: 91.89 kB / 496.2 MB, free: 376 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008242/0.1057, allocations: 0.8018 MB / 497 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.1059, allocations: 70.56 kB / 497.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.869e-05/0.106, allocations: 44.84 kB / 497.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.106, allocations: 0 / 497.1 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.106, allocations: 38.55 kB / 497.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 9.21e-07/0.106, allocations: 0 / 497.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002674/0.1063, allocations: 129.5 kB / 497.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.1063, allocations: 59.41 kB / 497.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.1066, allocations: 275 kB / 497.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.1066, allocations: 25.7 kB / 497.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.525e-05/0.1067, allocations: 147.9 kB / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.1067, allocations: 31.55 kB / 497.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.1068, allocations: 25.72 kB / 497.9 MB, free: 14.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1069, allocations: 330.8 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.31e-05/0.107, allocations: 27.98 kB / 498.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.908e-05/0.107, allocations: 62.5 kB / 498.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.1076, allocations: 154.4 kB / 498.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1076, allocations: 0 / 498.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002141/0.1078, allocations: 137.3 kB / 498.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.1078, allocations: 4 kB / 498.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1078, allocations: 0 / 498.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1079, allocations: 4 kB / 498.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.108, allocations: 31.86 kB / 498.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1081, allocations: 3.938 kB / 498.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.145e-05/0.1081, allocations: 19.81 kB / 498.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.1082, allocations: 8 kB / 498.6 MB, free: 13.8 MB / 382.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.0001652/0.1083, allocations: 134.4 kB / 498.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.184e-05/0.1084, allocations: 19.72 kB / 498.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.1084, allocations: 29.73 kB / 498.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1084, allocations: 0 / 498.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1085, allocations: 7.938 kB / 498.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1085, allocations: 3.984 kB / 498.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.1087, allocations: 241.5 kB / 499 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1087, allocations: 0 / 499 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.1089, allocations: 23.92 kB / 499.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1089, allocations: 0 / 499.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1089, allocations: 4 kB / 499.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.1089, allocations: 4 kB / 499.1 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1089, allocations: 3.938 kB / 499.1 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.1092, allocations: 227.2 kB / 499.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.171e-05/0.1093, allocations: 108.8 kB / 499.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.1093, allocations: 0 / 499.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1094, allocations: 0 / 499.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.1095, allocations: 11.94 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1095, allocations: 4 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.1096, allocations: 194 kB / 499.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1096, allocations: 0 / 499.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002698/0.1099, allocations: 40.06 kB / 499.7 MB, free: 12.67 MB / 382.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.0005347/0.1105, allocations: 0.7669 MB / 0.4887 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.1107, allocations: 79.84 kB / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1107, allocations: 0 / 0.4888 GB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.476e-05/0.1107, allocations: 31.94 kB / 0.4888 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.1111, allocations: 61.53 kB / 0.4889 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.1137, allocations: 2.287 MB / 0.4911 GB, free: 9.328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.114, allocations: 0.7363 MB / 0.4918 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1141, allocations: 30.27 kB / 0.4918 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.1142, allocations: 63.42 kB / 0.4919 GB, free: 8.473 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1142, allocations: 0 / 0.4919 GB, free: 8.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.1368, allocations: 4.707 MB / 0.4965 GB, free: 3.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.712, allocations: 3.75 kB / 0.4965 GB, free: 3.867 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_Transport_HE_simple_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)