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.001859/0.001859, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.002343/0.002343, allocations: 222.7 kB / 22.26 MB, free: 5.215 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.992 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.1118/0.1118, allocations: 24.12 MB / 336.6 MB, free: 11.44 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="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: 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.002256/0.002256, allocations: 69.78 kB / 473.3 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3642, allocations: 59.6 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004196/0.3684, allocations: 3.371 MB / 0.5237 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.37, allocations: 0.9886 MB / 0.5247 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.3702, allocations: 14.31 kB / 0.5247 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.3705, allocations: 102.3 kB / 0.5248 GB, free: 6.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.3709, allocations: 266.6 kB / 0.525 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005092/0.3714, allocations: 192.7 kB / 0.5252 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.3727, allocations: 1.25 MB / 0.5264 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.3737, allocations: 0.6607 MB / 0.5271 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006589/0.3744, allocations: 493.1 kB / 0.5276 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007934/0.3752, allocations: 0.5782 MB / 0.5281 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.3754, allocations: 133 kB / 0.5283 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.3756, allocations: 132.4 kB / 0.5284 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003762/0.376, allocations: 404.4 kB / 0.5288 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005569/0.3765, allocations: 0.5348 MB / 0.5293 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001645/0.3782, allocations: 1.462 MB / 0.5307 GB, free: 4.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3782, allocations: 4 kB / 0.5307 GB, free: 4.137 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3782, allocations: 1.344 kB / 0.5307 GB, free: 4.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.73e-05/0.3782, allocations: 0 / 0.5307 GB, free: 4.137 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.002889/0.3811, allocations: 1.232 MB / 0.5319 GB, free: 3.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3811, allocations: 10.98 kB / 0.5319 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001671/0.3813, allocations: 121.8 kB / 0.532 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.3815, allocations: 90.91 kB / 0.5321 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.3826, allocations: 0.5027 MB / 0.5326 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.988e-05/0.3827, allocations: 82.97 kB / 0.5327 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.3829, allocations: 84.89 kB / 0.5328 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.3847, allocations: 0.9299 MB / 0.5337 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.3847, allocations: 4.703 kB / 0.5337 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.437e-05/0.3848, allocations: 29.91 kB / 0.5337 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.3848, allocations: 17.5 kB / 0.5337 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.3862, allocations: 0.8091 MB / 0.5345 GB, free: 2.172 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.006533/0.3928, allocations: 3.922 MB / 0.5384 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.3957, allocations: 1.022 MB / 0.5394 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007315/0.3965, allocations: 401.2 kB / 0.5397 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.3965, allocations: 8.125 kB / 0.5398 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.3966, allocations: 42.08 kB / 0.5398 GB, free: 15.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.454e-06/0.3966, allocations: 4 kB / 0.5398 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004112/0.4007, allocations: 1.611 MB / 0.5414 GB, free: 14.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.941e-05/0.4008, allocations: 57.41 kB / 0.5414 GB, free: 14.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005936/0.4014, allocations: 419.9 kB / 0.5418 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.966e-05/0.4014, allocations: 36.45 kB / 0.5419 GB, free: 13.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.4017, allocations: 329.8 kB / 0.5422 GB, free: 13.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.402, allocations: 250.8 kB / 0.5424 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.4022, allocations: 123 kB / 0.5425 GB, free: 13.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.4024, allocations: 366 kB / 0.5429 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007284/0.4032, allocations: 461.6 kB / 0.5433 GB, free: 12.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007265/0.4039, allocations: 0.4961 MB / 0.5438 GB, free: 12.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006987/0.4109, allocations: 2.355 MB / 0.5461 GB, free: 11.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.4109, allocations: 9 kB / 0.5461 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002605/0.4135, allocations: 1.343 MB / 0.5474 GB, free: 10.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.4135, allocations: 7.156 kB / 0.5474 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.4135, allocations: 1.812 kB / 0.5474 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.4146, allocations: 343.3 kB / 0.5478 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008804/0.4155, allocations: 184.3 kB / 0.5479 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/0.4281, allocations: 14.12 MB / 0.5617 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/0.4289, allocations: 82.62 kB / 0.5618 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.595e-05/0.429, allocations: 20.62 kB / 0.5618 GB, free: 12.07 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.0006165/0.4296, allocations: 284 kB / 0.5621 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.4297, allocations: 56.91 kB / 0.5622 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.4321, allocations: 1.139 MB / 0.5633 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4321, allocations: 5.469 kB / 0.5633 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4321, allocations: 3.312 kB / 0.5633 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.4321, allocations: 3.984 kB / 0.5633 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004018/0.4361, allocations: 2.101 MB / 0.5653 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4361, allocations: 1.125 kB / 0.5653 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009658/0.4371, allocations: 166.6 kB / 0.5655 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008454/0.4379, allocations: 311.3 kB / 0.5658 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.399e-05/0.438, allocations: 30.98 kB / 0.5658 GB, free: 9.418 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.4497, allocations: 13.69 MB / 0.5792 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.4497, allocations: 1.438 kB / 0.5792 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003134/0.4529, allocations: 1.601 MB / 0.5808 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.4531, allocations: 71.52 kB / 0.5808 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.4532, allocations: 36.11 kB / 0.5809 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004334/0.4537, allocations: 23.97 kB / 0.5809 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.4538, allocations: 64.34 kB / 0.5809 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/0.4539, allocations: 19.98 kB / 0.581 GB, free: 10.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003922/0.4543, allocations: 295.2 kB / 0.5812 GB, free: 10.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4543, allocations: 0 / 0.5812 GB, free: 10.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001079/0.4553, allocations: 299.5 kB / 0.5815 GB, free: 9.73 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.003126/0.4585, allocations: 2.184 MB / 0.5837 GB, free: 7.477 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002838/0.4613, allocations: 2.011 MB / 0.5856 GB, free: 5.336 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4613, allocations: 0 / 0.5856 GB, free: 5.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.4631, allocations: 1.545 MB / 0.5871 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008514/0.464, allocations: 169.4 kB / 0.5873 GB, free: 3.496 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/0.4792, allocations: 8.885 MB / 0.596 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008234/0.48, allocations: 1.016 MB / 0.597 GB, free: 9.375 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000508/0.4805, allocations: 168.6 kB / 0.5971 GB, free: 9.211 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.481, allocations: 255.3 kB / 0.5974 GB, free: 8.961 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.481, allocations: 0 / 0.5974 GB, free: 8.961 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08969/0.5706, allocations: 20.42 MB / 0.6173 GB, free: 4.801 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.52, allocations: 3.594 kB / 0.6173 GB, free: 4.801 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.368452250026166] Failed to read output from testmodel.py, exit status != 0: 13.645517989993095 13.670212898 13.287386622 Calling exit ...