Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001631/0.001631, allocations: 107.6 kB / 16.45 MB, free: 6.504 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.00197/0.00197, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.365/1.365, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.09596/0.09596, allocations: 22.69 MB / 325.4 MB, free: 3.562 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.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 67.89 kB / 457.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1107, allocations: 58.01 MB / 0.5031 GB, free: 7.664 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003): time 0.3732/0.4839, allocations: 23.27 MB / 0.5258 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.485, allocations: 417.6 kB / 0.5262 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.4851, allocations: 12.84 kB / 0.5263 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.472e-05/0.4852, allocations: 45.27 kB / 0.5263 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.4855, allocations: 145.6 kB / 0.5264 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.4857, allocations: 83.73 kB / 0.5265 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.486, allocations: 427.4 kB / 0.5269 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.4863, allocations: 210.1 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.4865, allocations: 198.4 kB / 0.5273 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.4867, allocations: 180.1 kB / 0.5275 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.4867, allocations: 36.97 kB / 0.5275 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.4868, allocations: 60.55 kB / 0.5276 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.178e-05/0.4869, allocations: 73.97 kB / 0.5276 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.487, allocations: 184.3 kB / 0.5278 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.4874, allocations: 414.7 kB / 0.5282 GB, free: 5.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4874, allocations: 1.219 kB / 0.5282 GB, free: 5.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4874, allocations: 0 / 0.5282 GB, free: 5.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.4874, allocations: 0 / 0.5282 GB, free: 5.723 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009015/0.4883, allocations: 0.6348 MB / 0.5288 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.4884, allocations: 10.44 kB / 0.5288 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/0.4884, allocations: 59.44 kB / 0.5289 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.151e-05/0.4885, allocations: 38.73 kB / 0.5289 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.4888, allocations: 321.5 kB / 0.5292 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.4889, allocations: 21.5 kB / 0.5293 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.4889, allocations: 25.52 kB / 0.5293 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.4893, allocations: 279.2 kB / 0.5296 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.4893, allocations: 3.938 kB / 0.5296 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.4893, allocations: 13.22 kB / 0.5296 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.4893, allocations: 5.219 kB / 0.5296 GB, free: 4.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000341/0.4897, allocations: 204.5 kB / 0.5298 GB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.4909, allocations: 0.9024 MB / 0.5307 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.4912, allocations: 153.4 kB / 0.5308 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.4914, allocations: 95.56 kB / 0.5309 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.4914, allocations: 2.75 kB / 0.5309 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.4914, allocations: 43.84 kB / 0.5309 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002825/0.4917, allocations: 54.42 kB / 0.531 GB, free: 4.246 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.302e-06/0.4917, allocations: 0 / 0.531 GB, free: 4.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001217/0.4929, allocations: 436.7 kB / 0.5314 GB, free: 4.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.017e-05/0.4929, allocations: 53.66 kB / 0.5315 GB, free: 4.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.4932, allocations: 300 kB / 0.5317 GB, free: 3.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.4932, allocations: 30.73 kB / 0.5318 GB, free: 3.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.846e-05/0.4933, allocations: 182.7 kB / 0.5319 GB, free: 3.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.725e-05/0.4933, allocations: 66.23 kB / 0.532 GB, free: 3.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.059e-05/0.4934, allocations: 53.12 kB / 0.5321 GB, free: 3.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.477e-05/0.4934, allocations: 344.8 kB / 0.5324 GB, free: 3.387 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.4936, allocations: 64.48 kB / 0.5325 GB, free: 3.363 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.4937, allocations: 87.06 kB / 0.5325 GB, free: 3.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.4975, allocations: 0.7015 MB / 0.5332 GB, free: 3.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4975, allocations: 1.031 kB / 0.5332 GB, free: 3.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007223/0.4982, allocations: 308.2 kB / 0.5335 GB, free: 3.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.4982, allocations: 5.859 kB / 0.5335 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.4982, allocations: 1.406 kB / 0.5335 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007089/0.4989, allocations: 109.8 kB / 0.5336 GB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002352/0.4992, allocations: 51.17 kB / 0.5337 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002654/0.4994, allocations: 0.5826 MB / 0.5342 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.4996, allocations: 5.906 kB / 0.5343 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.4996, allocations: 11.52 kB / 0.5343 GB, free: 2.418 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: 2 * 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): 20 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.4998, allocations: 143 kB / 0.5344 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.436e-05/0.4998, allocations: 33.8 kB / 0.5344 GB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007814/0.5006, allocations: 346.7 kB / 0.5348 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.5006, allocations: 8.547 kB / 0.5348 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.5006, allocations: 0 / 0.5348 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.5006, allocations: 1.828 kB / 0.5348 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.5017, allocations: 0.7296 MB / 0.5355 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5017, allocations: 5.406 kB / 0.5355 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.5019, allocations: 42.44 kB / 0.5355 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005055/0.5024, allocations: 103.1 kB / 0.5356 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.5025, allocations: 6.906 kB / 0.5356 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000233/0.5027, allocations: 0.5891 MB / 0.5362 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5027, allocations: 1.188 kB / 0.5362 GB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007769/0.5035, allocations: 0.5062 MB / 0.5367 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.5035, allocations: 111.3 kB / 0.5368 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.5036, allocations: 2.688 kB / 0.5368 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.5037, allocations: 5.875 kB / 0.5368 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.5038, allocations: 23.56 kB / 0.5368 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.5038, allocations: 6.812 kB / 0.5368 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001732/0.504, allocations: 216.2 kB / 0.5371 GB, free: 492 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.504, allocations: 0 / 0.5371 GB, free: 492 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003295/0.5043, allocations: 76.89 kB / 0.5371 GB, free: 476 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008736/0.5052, allocations: 1.021 MB / 0.5381 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.5056, allocations: 206.6 kB / 0.5383 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5056, allocations: 0 / 0.5383 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.5059, allocations: 105.1 kB / 0.5384 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.5063, allocations: 72.55 kB / 0.5385 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.5102, allocations: 2.989 MB / 0.5414 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.5106, allocations: 0.7798 MB / 0.5422 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001441/0.5107, allocations: 52.64 kB / 0.5422 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.5109, allocations: 114.4 kB / 0.5423 GB, free: 12.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5109, allocations: 0 / 0.5423 GB, free: 12.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.5417, allocations: 7.297 MB / 0.5495 GB, free: 9.957 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.07, allocations: 7.797 kB / 0.5495 GB, free: 9.949 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.569084673654288] Failed to read output from testmodel.py, exit status != 0: 12.156610257923603 12.171313426 11.68104301 Calling exit ...