Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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.001232/0.001232, allocations: 110.6 kB / 16.46 MB, free: 6.035 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.001252/0.001252, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.335/1.335, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.097/0.097, allocations: 22.7 MB / 325.4 MB, free: 3.531 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.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 71.88 kB / 457.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1052, allocations: 58.02 MB / 0.5031 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004551/0.1097, allocations: 3.361 MB / 0.5064 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.1114, allocations: 0.9468 MB / 0.5073 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1115, allocations: 7.938 kB / 0.5073 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.1118, allocations: 111.1 kB / 0.5074 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004123/0.1122, allocations: 262.5 kB / 0.5077 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004714/0.1126, allocations: 187.6 kB / 0.5079 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.1138, allocations: 1.233 MB / 0.5091 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008327/0.1146, allocations: 0.7419 MB / 0.5098 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004804/0.1151, allocations: 482.8 kB / 0.5102 GB, free: 288 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.191/0.3061, allocations: 0.5765 MB / 0.5108 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.3064, allocations: 132.4 kB / 0.5109 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.3067, allocations: 134.8 kB / 0.5111 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.3069, allocations: 398.2 kB / 0.5114 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00048/0.3074, allocations: 0.5393 MB / 0.512 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.3085, allocations: 1.46 MB / 0.5134 GB, free: 11.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3085, allocations: 7.344 kB / 0.5134 GB, free: 11.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3085, allocations: 0 / 0.5134 GB, free: 11.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.3086, allocations: 0 / 0.5134 GB, free: 11.2 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002407/0.311, allocations: 1.303 MB / 0.5147 GB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.311, allocations: 9.75 kB / 0.5147 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.3112, allocations: 123.6 kB / 0.5148 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.3113, allocations: 93.16 kB / 0.5149 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008123/0.3121, allocations: 0.568 MB / 0.5154 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.231e-05/0.3122, allocations: 82.08 kB / 0.5155 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3123, allocations: 82.39 kB / 0.5156 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3137, allocations: 0.9308 MB / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3137, allocations: 3.75 kB / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.3137, allocations: 28.97 kB / 0.5165 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.3138, allocations: 18.12 kB / 0.5166 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.315, allocations: 0.8065 MB / 0.5173 GB, free: 10.1 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.3204, allocations: 3.988 MB / 0.5212 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002435/0.3228, allocations: 1.019 MB / 0.5222 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005416/0.3233, allocations: 410.2 kB / 0.5226 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.3234, allocations: 6.781 kB / 0.5226 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.3234, allocations: 39.66 kB / 0.5227 GB, free: 7.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.354e-06/0.3234, allocations: 0 / 0.5227 GB, free: 7.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.003496/0.3269, allocations: 2.367 MB / 0.525 GB, free: 5.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.3269, allocations: 57.66 kB / 0.525 GB, free: 5.398 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.3273, allocations: 421.1 kB / 0.5254 GB, free: 5.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.3274, allocations: 32.2 kB / 0.5255 GB, free: 5.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.3275, allocations: 339.4 kB / 0.5258 GB, free: 4.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.3277, allocations: 237.2 kB / 0.526 GB, free: 4.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.3279, allocations: 127.2 kB / 0.5261 GB, free: 4.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.328, allocations: 368.1 kB / 0.5265 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.3286, allocations: 458 kB / 0.5269 GB, free: 4.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000586/0.3292, allocations: 0.498 MB / 0.5274 GB, free: 3.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006206/0.3354, allocations: 2.357 MB / 0.5297 GB, free: 3.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3354, allocations: 1.156 kB / 0.5297 GB, free: 3.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002153/0.3375, allocations: 1.339 MB / 0.531 GB, free: 2.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3375, allocations: 12.12 kB / 0.531 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.3376, allocations: 2.75 kB / 0.531 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000982/0.3385, allocations: 340.9 kB / 0.5314 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009715/0.3395, allocations: 186.3 kB / 0.5315 GB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/0.3507, allocations: 15.16 MB / 0.5464 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.3514, allocations: 70.84 kB / 0.5464 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.098e-05/0.3514, allocations: 20.62 kB / 0.5464 GB, free: 3.582 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.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: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000516/0.352, allocations: 289.4 kB / 0.5467 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.3521, allocations: 57.36 kB / 0.5468 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/0.3541, allocations: 1.138 MB / 0.5479 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3541, allocations: 6.672 kB / 0.5479 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3541, allocations: 3.594 kB / 0.5479 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3541, allocations: 2.859 kB / 0.5479 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003336/0.3574, allocations: 2.132 MB / 0.55 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3574, allocations: 1.5 kB / 0.55 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009256/0.3584, allocations: 164.4 kB / 0.5501 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008117/0.3592, allocations: 310.9 kB / 0.5504 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-05/0.3592, allocations: 31.27 kB / 0.5505 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.3708, allocations: 14.72 MB / 0.5648 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.3708, allocations: 7.094 kB / 0.5648 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.3736, allocations: 1.602 MB / 0.5664 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.3739, allocations: 147.8 kB / 0.5665 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.374, allocations: 39.27 kB / 0.5666 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.3745, allocations: 23.22 kB / 0.5666 GB, free: 1.109 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.3747, allocations: 63.64 kB / 0.5667 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-05/0.3747, allocations: 18.45 kB / 0.5667 GB, free: 1.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004221/0.3751, allocations: 291 kB / 0.567 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3751, allocations: 0 / 0.567 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001396/0.3765, allocations: 299.2 kB / 0.5672 GB, free: 0.8359 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003175/0.3797, allocations: 2.191 MB / 0.5694 GB, free: 15.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.3824, allocations: 2.015 MB / 0.5714 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3824, allocations: 320 / 0.5714 GB, free: 13.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.3841, allocations: 1.548 MB / 0.5729 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007236/0.3848, allocations: 167.8 kB / 0.573 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.3981, allocations: 8.853 MB / 0.5817 GB, free: 4.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007404/0.3988, allocations: 1.013 MB / 0.5827 GB, free: 3.598 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000498/0.3993, allocations: 175.3 kB / 0.5828 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000397/0.3997, allocations: 259.3 kB / 0.5831 GB, free: 3.172 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3997, allocations: 4 kB / 0.5831 GB, free: 3.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07054/0.4702, allocations: 19.85 MB / 0.6025 GB, free: 15.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.16, allocations: 6.516 kB / 0.6025 GB, free: 15.6 MB / 462.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.609969470184296] Failed to read output from testmodel.py, exit status != 0: 11.250744794961065 11.264757019 10.953591902 Calling exit ...