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.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.0008371/0.0008371, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0009112/0.0009112, allocations: 173.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.8779/0.8779, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.06158/0.06158, allocations: 18.13 MB / 278.1 MB, free: 11.52 MB / 266.7 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.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 1.754e-06/1.754e-06, allocations: 0 / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.289e-05, allocations: 2.281 kB / 415.1 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003192/0.003215, allocations: 3.068 MB / 418.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.004655, allocations: 0.9365 MB / 419.1 MB, free: 9.992 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.004812, allocations: 14.88 kB / 419.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002323/0.005045, allocations: 107.4 kB / 419.2 MB, free: 9.918 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.00539, allocations: 268.8 kB / 419.5 MB, free: 9.746 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005417/0.005932, allocations: 205.7 kB / 419.7 MB, free: 9.621 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.007025, allocations: 1.261 MB / 420.9 MB, free: 8.992 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007222/0.007747, allocations: 0.6582 MB / 421.6 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004762/0.008224, allocations: 477 kB / 422 MB, free: 8.484 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005512/0.008775, allocations: 0.4938 MB / 422.5 MB, free: 8.309 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.008917, allocations: 136.5 kB / 422.7 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.00906, allocations: 132.7 kB / 422.8 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002468/0.009306, allocations: 419.2 kB / 423.2 MB, free: 8.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.009605, allocations: 412.4 kB / 423.6 MB, free: 7.887 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.01075, allocations: 1.52 MB / 425.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.01075, allocations: 1.688 kB / 425.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.01075, allocations: 0 / 425.1 MB, free: 7.344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.01076, allocations: 0 / 425.1 MB, free: 7.344 MB / 330.7 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.001642/0.01241, allocations: 1.228 MB / 426.4 MB, free: 6.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.01244, allocations: 10.97 kB / 426.4 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.01256, allocations: 119 kB / 426.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.01267, allocations: 90.33 kB / 426.6 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005198/0.01319, allocations: 0.5033 MB / 427.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.686e-05/0.01325, allocations: 83.19 kB / 427.2 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.01335, allocations: 84.05 kB / 427.2 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.01437, allocations: 0.9485 MB / 428.2 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.01438, allocations: 4.188 kB / 428.2 MB, free: 5.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.01444, allocations: 33.91 kB / 428.2 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.01445, allocations: 18 kB / 428.2 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008782/0.01533, allocations: 0.8062 MB / 429 MB, free: 5.352 MB / 330.7 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.003189/0.01851, allocations: 2.787 MB / 431.8 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/0.02001, allocations: 1.018 MB / 432.9 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.02043, allocations: 406.8 kB / 433.3 MB, free: 3.293 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.02047, allocations: 10.3 kB / 433.3 MB, free: 3.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.02049, allocations: 43.31 kB / 433.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of pre-optimization done (n=58): time 1.954e-06/0.02049, allocations: 4 kB / 433.3 MB, free: 3.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.002137/0.02263, allocations: 1.606 MB / 434.9 MB, free: 2.355 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.02265, allocations: 66.16 kB / 435 MB, free: 2.285 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.02301, allocations: 415.5 kB / 435.4 MB, free: 2.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.02305, allocations: 36.27 kB / 435.4 MB, free: 1.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.02316, allocations: 329.7 kB / 435.7 MB, free: 1.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.02331, allocations: 243.4 kB / 436 MB, free: 1.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.02346, allocations: 130 kB / 436.1 MB, free: 1.414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.02352, allocations: 361.7 kB / 436.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004271/0.02395, allocations: 459.7 kB / 436.9 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/0.0244, allocations: 0.4926 MB / 437.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.02818, allocations: 2.361 MB / 439.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.02818, allocations: 0 / 439.8 MB, free: 15.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00151/0.02969, allocations: 1.339 MB / 441.1 MB, free: 14.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.02971, allocations: 8 kB / 441.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.02971, allocations: 0 / 441.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.03024, allocations: 344.3 kB / 441.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.03066, allocations: 188.9 kB / 441.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006285/0.03695, allocations: 14.06 MB / 455.7 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.03721, allocations: 67.62 kB / 455.8 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.03725, allocations: 24 kB / 455.8 MB, free: 14.47 MB / 362.7 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.0003147/0.03756, allocations: 282.8 kB / 456.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/0.03763, allocations: 59.61 kB / 456.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.0388, allocations: 1.137 MB / 457.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.0388, allocations: 4 kB / 457.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.0388, allocations: 4 kB / 457.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.03881, allocations: 3.984 kB / 457.3 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.04073, allocations: 1.963 MB / 459.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.04073, allocations: 3.938 kB / 459.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.04123, allocations: 167.8 kB / 459.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003967/0.04162, allocations: 308.5 kB / 459.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.088e-05/0.04168, allocations: 31.98 kB / 459.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005555/0.04723, allocations: 13.61 MB / 473.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.04723, allocations: 4.031 kB / 473.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.04891, allocations: 1.606 MB / 474.9 MB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.272e-05/0.04899, allocations: 71.52 kB / 475 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.04905, allocations: 31.98 kB / 475 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.04926, allocations: 23.97 kB / 475.1 MB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.563e-05/0.04935, allocations: 60.47 kB / 475.1 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.04938, allocations: 23.98 kB / 475.2 MB, free: 9.711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000226/0.04961, allocations: 295.2 kB / 475.4 MB, free: 9.422 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04961, allocations: 0 / 475.4 MB, free: 9.422 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006593/0.05027, allocations: 295.6 kB / 475.7 MB, free: 9.133 MB / 378.7 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.001792/0.05206, allocations: 2.188 MB / 477.9 MB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.05361, allocations: 2 MB / 479.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.05361, allocations: 0 / 479.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009011/0.05451, allocations: 1.545 MB / 481.5 MB, free: 3.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.05499, allocations: 179 kB / 481.6 MB, free: 2.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008296/0.06328, allocations: 8.47 MB / 490.1 MB, free: 10.24 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.06365, allocations: 416.7 kB / 490.5 MB, free: 9.809 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003075/0.06395, allocations: 168.6 kB / 490.7 MB, free: 9.641 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.06427, allocations: 260.4 kB / 490.9 MB, free: 9.387 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.06427, allocations: 0 / 490.9 MB, free: 9.387 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.1102, allocations: 21.74 MB / 0.5007 GB, free: 3.941 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.692, allocations: 6.656 kB / 0.5007 GB, free: 3.938 MB / 410.7 MB " [Timeout remaining time 652] (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: 9.569673656485975] Failed to read output from testmodel.py, exit status != 0: 7.7821627529338 7.790129664 7.777771682 Calling exit ...