Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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.00132/0.00132, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001567/0.001567, allocations: 215.6 kB / 22.25 MB, free: 5.129 MB / 14.72 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 1.458/1.458, allocations: 230.6 MB / 256 MB, free: 7.965 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.1073/0.1073, allocations: 24.13 MB / 336.6 MB, free: 11.52 MB / 270.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.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.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003158/0.003158, allocations: 71.89 kB / 473.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3914, allocations: 59.59 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003962/0.3954, allocations: 2.599 MB / 0.523 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009131/0.3963, allocations: 373.1 kB / 0.5233 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.3964, allocations: 11.97 kB / 0.5233 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.921e-05/0.3965, allocations: 39.12 kB / 0.5234 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000308/0.3968, allocations: 119.8 kB / 0.5235 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.3971, allocations: 76.52 kB / 0.5235 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.3975, allocations: 360.7 kB / 0.5239 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.3978, allocations: 154.2 kB / 0.524 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.3981, allocations: 158.8 kB / 0.5242 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.3983, allocations: 122 kB / 0.5243 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.027e-05/0.3983, allocations: 18.94 kB / 0.5243 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3984, allocations: 50.11 kB / 0.5244 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.029e-05/0.3985, allocations: 51.27 kB / 0.5244 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.3987, allocations: 146.2 kB / 0.5246 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003942/0.399, allocations: 304.1 kB / 0.5248 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.3991, allocations: 0 / 0.5248 GB, free: 7.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3991, allocations: 1.125 kB / 0.5248 GB, free: 7.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3991, allocations: 1.078 kB / 0.5249 GB, free: 7.191 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.000769/0.3998, allocations: 0.4966 MB / 0.5253 GB, free: 6.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3999, allocations: 15.58 kB / 0.5254 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.177e-05/0.3999, allocations: 52.33 kB / 0.5254 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.4, allocations: 32.77 kB / 0.5254 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.4004, allocations: 230.5 kB / 0.5257 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.4004, allocations: 12.25 kB / 0.5257 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.4004, allocations: 24.31 kB / 0.5257 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.4007, allocations: 207.1 kB / 0.5259 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.4007, allocations: 7.875 kB / 0.5259 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.4008, allocations: 10.17 kB / 0.5259 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4008, allocations: 5.281 kB / 0.5259 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.401, allocations: 126.3 kB / 0.526 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009489/0.402, allocations: 0.7931 MB / 0.5268 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.4022, allocations: 90.8 kB / 0.5269 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.988e-05/0.4023, allocations: 43.27 kB / 0.5269 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.4023, allocations: 2.094 kB / 0.5269 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.4024, allocations: 36.39 kB / 0.527 GB, free: 5.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.4024, allocations: 0 / 0.527 GB, free: 5.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003625/0.4027, allocations: 145.6 kB / 0.5271 GB, free: 5.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.4028, allocations: 53.09 kB / 0.5272 GB, free: 5.422 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.4031, allocations: 291 kB / 0.5274 GB, free: 5.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.4031, allocations: 26.8 kB / 0.5275 GB, free: 5.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.4032, allocations: 184.8 kB / 0.5276 GB, free: 5.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.497e-05/0.4032, allocations: 35.12 kB / 0.5277 GB, free: 5.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.4032, allocations: 32.61 kB / 0.5277 GB, free: 5.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.213e-05/0.4033, allocations: 336.8 kB / 0.528 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.769e-05/0.4034, allocations: 34.8 kB / 0.5281 GB, free: 4.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.624e-05/0.4035, allocations: 65.66 kB / 0.5281 GB, free: 4.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.4046, allocations: 256.7 kB / 0.5284 GB, free: 4.543 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4046, allocations: 0 / 0.5284 GB, free: 4.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002734/0.4049, allocations: 174.3 kB / 0.5285 GB, free: 4.453 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4049, allocations: 5.656 kB / 0.5285 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4049, allocations: 5 kB / 0.5285 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.4049, allocations: 5.188 kB / 0.5285 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.4052, allocations: 42.98 kB / 0.5286 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.4052, allocations: 2.062 kB / 0.5286 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.4053, allocations: 22.3 kB / 0.5286 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.4053, allocations: 4.469 kB / 0.5286 GB, free: 4.422 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 (18): * Single equations (assignments): 18 * 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.0001552/0.4055, allocations: 146.5 kB / 0.5287 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.4055, allocations: 32.45 kB / 0.5288 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002715/0.4058, allocations: 158.6 kB / 0.5289 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.4058, allocations: 1.312 kB / 0.5289 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.4058, allocations: 1.375 kB / 0.5289 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4058, allocations: 1.312 kB / 0.5289 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.406, allocations: 252.2 kB / 0.5292 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.406, allocations: 1.312 kB / 0.5292 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.4062, allocations: 30.06 kB / 0.5292 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.4062, allocations: 1.922 kB / 0.5292 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.4063, allocations: 6.688 kB / 0.5292 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4063, allocations: 0 / 0.5292 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4063, allocations: 1.219 kB / 0.5292 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.4065, allocations: 279.6 kB / 0.5295 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.4066, allocations: 29.19 kB / 0.5295 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.4066, allocations: 9.344 kB / 0.5295 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.4068, allocations: 2.031 kB / 0.5295 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.4068, allocations: 11.31 kB / 0.5295 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.4068, allocations: 8.562 kB / 0.5295 GB, free: 3.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.407, allocations: 211.8 kB / 0.5297 GB, free: 3.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.407, allocations: 0 / 0.5297 GB, free: 3.613 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.4073, allocations: 58.08 kB / 0.5298 GB, free: 3.602 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 (13): * Single equations (assignments): 13 * 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.00042/0.4077, allocations: 0.8083 MB / 0.5306 GB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002023/0.4079, allocations: 99.84 kB / 0.5307 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.4079, allocations: 0 / 0.5307 GB, free: 2.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.447e-05/0.408, allocations: 49.28 kB / 0.5307 GB, free: 2.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.4083, allocations: 61.39 kB / 0.5308 GB, free: 2.801 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.4109, allocations: 2.502 MB / 0.5332 GB, free: 1.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.411, allocations: 0.7532 MB / 0.534 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.4111, allocations: 40.81 kB / 0.534 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.4113, allocations: 90.86 kB / 0.5341 GB, free: 292 kB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4113, allocations: 0 / 0.5341 GB, free: 292 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03791/0.4492, allocations: 5.696 MB / 0.5397 GB, free: 15.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.91, allocations: 3.672 kB / 0.5397 GB, free: 15.36 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --stepSize=3 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.608229375910014] Failed to read output from testmodel.py, exit status != 0: 12.027350042015314 12.056677842 11.651917135 Calling exit ...