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.001295/0.001295, allocations: 101.9 kB / 19.73 MB, free: 1.992 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.001512/0.001512, allocations: 213.8 kB / 23.03 MB, free: 4.426 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.533/1.533, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1023/0.1023, allocations: 22.94 MB / 336.2 MB, free: 12.4 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.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="cs",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="cs",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.00202/0.00202, allocations: 71.84 kB / 472.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3482, allocations: 59.28 MB / 0.519 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004355/0.3526, allocations: 3.071 MB / 0.522 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.3546, allocations: 0.9368 MB / 0.5229 GB, free: 8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.355, allocations: 10.53 kB / 0.5229 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.3553, allocations: 106.4 kB / 0.523 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004708/0.3558, allocations: 265.6 kB / 0.5233 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006066/0.3564, allocations: 205 kB / 0.5235 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.3576, allocations: 1.24 MB / 0.5247 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008985/0.3585, allocations: 0.6619 MB / 0.5253 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008346/0.3593, allocations: 491.5 kB / 0.5258 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008218/0.3601, allocations: 0.5767 MB / 0.5264 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.3603, allocations: 132.9 kB / 0.5265 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.3606, allocations: 132.2 kB / 0.5266 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003486/0.3609, allocations: 408.5 kB / 0.527 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005294/0.3614, allocations: 464.7 kB / 0.5275 GB, free: 5.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.3631, allocations: 1.468 MB / 0.5289 GB, free: 5.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3631, allocations: 1.703 kB / 0.5289 GB, free: 5.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.3631, allocations: 0 / 0.5289 GB, free: 5.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.3632, allocations: 0 / 0.5289 GB, free: 5.281 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.003206/0.3664, allocations: 1.244 MB / 0.5301 GB, free: 4.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.43e-05/0.3664, allocations: 11.05 kB / 0.5301 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5e-05/0.3665, allocations: 20.28 kB / 0.5301 GB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001803/0.3667, allocations: 116.6 kB / 0.5302 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/0.367, allocations: 92.23 kB / 0.5303 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.368, allocations: 0.5015 MB / 0.5308 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.3682, allocations: 81.77 kB / 0.5309 GB, free: 4.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000199/0.3684, allocations: 84.59 kB / 0.531 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.3705, allocations: 0.9507 MB / 0.5319 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.3705, allocations: 0.5156 kB / 0.5319 GB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.8e-05/0.3706, allocations: 29.97 kB / 0.5319 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/0.3707, allocations: 21.44 kB / 0.532 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3722, allocations: 0.8133 MB / 0.5328 GB, free: 3.285 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.005719/0.378, allocations: 2.786 MB / 0.5355 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.3808, allocations: 1.016 MB / 0.5365 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006043/0.3814, allocations: 402.8 kB / 0.5369 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.3815, allocations: 7 kB / 0.5369 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.3815, allocations: 38.58 kB / 0.5369 GB, free: 1.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 3.035e-06/0.3815, allocations: 4 kB / 0.5369 GB, free: 1.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004024/0.3855, allocations: 1.608 MB / 0.5385 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.3856, allocations: 62 kB / 0.5385 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006034/0.3862, allocations: 420.6 kB / 0.5389 GB, free: 444 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.596e-05/0.3862, allocations: 32.3 kB / 0.539 GB, free: 408 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.3864, allocations: 338.5 kB / 0.5393 GB, free: 136 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003051/0.3867, allocations: 248.1 kB / 0.5395 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002753/0.387, allocations: 122.9 kB / 0.5396 GB, free: 15.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.3872, allocations: 367 kB / 0.54 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007698/0.388, allocations: 455 kB / 0.5404 GB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007584/0.3887, allocations: 0.4969 MB / 0.5409 GB, free: 15.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007812/0.3966, allocations: 2.362 MB / 0.5432 GB, free: 13.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3966, allocations: 0 / 0.5432 GB, free: 13.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002722/0.3993, allocations: 1.342 MB / 0.5445 GB, free: 13.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3993, allocations: 5.094 kB / 0.5445 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3993, allocations: 2.625 kB / 0.5445 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.4005, allocations: 341.2 kB / 0.5449 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009301/0.4015, allocations: 192.9 kB / 0.545 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.4141, allocations: 14.07 MB / 0.5588 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008904/0.415, allocations: 75.95 kB / 0.5589 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-05/0.415, allocations: 21.09 kB / 0.5589 GB, free: 14.8 MB / 414.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.0006592/0.4157, allocations: 292.9 kB / 0.5592 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.4158, allocations: 53.05 kB / 0.5592 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002276/0.4181, allocations: 1.136 MB / 0.5603 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.4181, allocations: 9.5 kB / 0.5603 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4181, allocations: 3.344 kB / 0.5603 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4181, allocations: 3.984 kB / 0.5603 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.4218, allocations: 1.952 MB / 0.5622 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4218, allocations: 1.281 kB / 0.5622 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.4228, allocations: 166.8 kB / 0.5624 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009522/0.4238, allocations: 308.2 kB / 0.5627 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.4239, allocations: 35.64 kB / 0.5627 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/0.4352, allocations: 13.64 MB / 0.576 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4352, allocations: 1.344 kB / 0.576 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.4385, allocations: 1.607 MB / 0.5776 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002965/0.4388, allocations: 71.55 kB / 0.5777 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/0.439, allocations: 34.67 kB / 0.5777 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005082/0.4395, allocations: 27.97 kB / 0.5777 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.4397, allocations: 51.31 kB / 0.5778 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.4397, allocations: 24.55 kB / 0.5778 GB, free: 13.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004175/0.4402, allocations: 298.6 kB / 0.5781 GB, free: 13.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4402, allocations: 0 / 0.5781 GB, free: 13.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001229/0.4414, allocations: 299.1 kB / 0.5784 GB, free: 13.32 MB / 430.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.003363/0.4448, allocations: 2.182 MB / 0.5805 GB, free: 11.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002931/0.4477, allocations: 2.008 MB / 0.5825 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.4477, allocations: 4 kB / 0.5825 GB, free: 9.004 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.4496, allocations: 1.545 MB / 0.584 GB, free: 7.328 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009405/0.4505, allocations: 166.1 kB / 0.5841 GB, free: 7.168 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.4654, allocations: 8.866 MB / 0.5928 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005637/0.466, allocations: 412.6 kB / 0.5932 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005765/0.4665, allocations: 164.6 kB / 0.5934 GB, free: 13.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004534/0.467, allocations: 259.3 kB / 0.5936 GB, free: 13.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/0.467, allocations: 0 / 0.5936 GB, free: 13.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07094/0.5379, allocations: 21.33 MB / 0.6144 GB, free: 8.293 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.66, allocations: 4.812 kB / 0.6144 GB, free: 8.289 MB / 462.1 MB " [Timeout remaining time 646] (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: 16.588296705973335] Failed to read output from testmodel.py, exit status != 0: 13.843341829953715 13.871932049 13.503691494 Calling exit ...