Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.001659/0.001659, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002054/0.002054, allocations: 221.2 kB / 23.03 MB, free: 4.945 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.538/1.538, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1038/0.1038, allocations: 22.94 MB / 336.2 MB, free: 12.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.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",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.002053/0.002053, allocations: 59.91 kB / 472.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3696, allocations: 59.3 MB / 0.519 GB, free: 10.57 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT): time 0.07054/0.4401, allocations: 22.82 MB / 0.5413 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.4419, allocations: 0.6864 MB / 0.542 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002246/0.4422, allocations: 2.312 kB / 0.542 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.4423, allocations: 41.3 kB / 0.542 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.4426, allocations: 106.5 kB / 0.5421 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.443, allocations: 111 kB / 0.5422 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.4435, allocations: 415.4 kB / 0.5426 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.4438, allocations: 199.2 kB / 0.5428 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.4441, allocations: 177 kB / 0.543 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.4444, allocations: 233.9 kB / 0.5432 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.4445, allocations: 38.5 kB / 0.5432 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.084e-05/0.4445, allocations: 39.69 kB / 0.5433 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.4447, allocations: 126.9 kB / 0.5434 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.4449, allocations: 165.3 kB / 0.5436 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005597/0.4454, allocations: 461.6 kB / 0.544 GB, free: 1.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.4455, allocations: 1.953 kB / 0.544 GB, free: 1.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4455, allocations: 0 / 0.544 GB, free: 1.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.4455, allocations: 0 / 0.544 GB, free: 1.121 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001399/0.4469, allocations: 0.6181 MB / 0.5446 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4469, allocations: 11.2 kB / 0.5446 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.806e-05/0.4469, allocations: 10.91 kB / 0.5446 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.328e-05/0.447, allocations: 64.83 kB / 0.5447 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.4471, allocations: 42.42 kB / 0.5447 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.4474, allocations: 238.5 kB / 0.545 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.4475, allocations: 24.03 kB / 0.545 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.243e-05/0.4475, allocations: 33.14 kB / 0.545 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007487/0.4483, allocations: 337.1 kB / 0.5453 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.4483, allocations: 1.469 kB / 0.5453 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.4483, allocations: 9.953 kB / 0.5453 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.4483, allocations: 6.469 kB / 0.5453 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000753/0.4491, allocations: 333.2 kB / 0.5457 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.4512, allocations: 0.8818 MB / 0.5465 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006005/0.4518, allocations: 271.2 kB / 0.5468 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.4523, allocations: 219.8 kB / 0.547 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.4524, allocations: 4.234 kB / 0.547 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.4524, allocations: 35.55 kB / 0.547 GB, free: 14.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.224e-06/0.4524, allocations: 0 / 0.547 GB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.004899/0.4573, allocations: 1.526 MB / 0.5485 GB, free: 13.6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.4573, allocations: 55.41 kB / 0.5486 GB, free: 13.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.4576, allocations: 253.1 kB / 0.5488 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.4577, allocations: 33.7 kB / 0.5488 GB, free: 13.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.4578, allocations: 164.7 kB / 0.549 GB, free: 13.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.4579, allocations: 108.8 kB / 0.5491 GB, free: 13.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.4581, allocations: 63.25 kB / 0.5492 GB, free: 12.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4582, allocations: 340.2 kB / 0.5495 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004895/0.4587, allocations: 190.4 kB / 0.5497 GB, free: 12.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005028/0.4592, allocations: 223.5 kB / 0.5499 GB, free: 12.27 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.tube.w = 0.0 (if time < w.startTime then 0.0 else if time < w.startTime + w.duration then w.height * w.duration / w.duration ^ 2.0 else 0.0 = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.461, allocations: 0.5854 MB / 0.5505 GB, free: 11.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.461, allocations: 0 / 0.5505 GB, free: 11.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001754/0.4628, allocations: 0.6305 MB / 0.5511 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.4628, allocations: 8 kB / 0.5511 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.4628, allocations: 4.734 kB / 0.5511 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007922/0.4636, allocations: 175.4 kB / 0.5513 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006109/0.4642, allocations: 104.3 kB / 0.5514 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006813/0.471, allocations: 7.051 MB / 0.5582 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000524/0.4716, allocations: 34.12 kB / 0.5583 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.4716, allocations: 12.94 kB / 0.5583 GB, free: 3.551 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0002962/0.4719, allocations: 159.7 kB / 0.5584 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-05/0.472, allocations: 23.86 kB / 0.5585 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.4736, allocations: 0.6108 MB / 0.5591 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4736, allocations: 8.75 kB / 0.5591 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.4737, allocations: 3.938 kB / 0.5591 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4737, allocations: 1.266 kB / 0.5591 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005837/0.4742, allocations: 364.7 kB / 0.5594 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4742, allocations: 4 kB / 0.5594 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006063/0.4749, allocations: 88.91 kB / 0.5595 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005419/0.4754, allocations: 146.7 kB / 0.5596 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.4754, allocations: 9.5 kB / 0.5597 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00602/0.4815, allocations: 6.679 MB / 0.5662 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4815, allocations: 0 / 0.5662 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.4837, allocations: 0.8957 MB / 0.5671 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.4839, allocations: 30.78 kB / 0.5671 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/0.484, allocations: 12.73 kB / 0.5671 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003435/0.4843, allocations: 25.98 kB / 0.5671 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.4845, allocations: 40.91 kB / 0.5672 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.4845, allocations: 4.75 kB / 0.5672 GB, free: 10.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.4848, allocations: 191.1 kB / 0.5673 GB, free: 10.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4848, allocations: 0 / 0.5673 GB, free: 10.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006137/0.4854, allocations: 116 kB / 0.5675 GB, free: 10.04 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (25): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.002359/0.4877, allocations: 1.454 MB / 0.5689 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.4897, allocations: 1.005 MB / 0.5699 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4897, allocations: 0 / 0.5699 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.4907, allocations: 0.7903 MB / 0.5706 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.4912, allocations: 64.66 kB / 0.5707 GB, free: 6.625 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009192/0.5004, allocations: 4.413 MB / 0.575 GB, free: 2.098 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.5006, allocations: 199.1 kB / 0.5752 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002376/0.5009, allocations: 54.88 kB / 0.5752 GB, free: 1.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/0.5011, allocations: 103.4 kB / 0.5753 GB, free: 1.73 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5011, allocations: 0 / 0.5753 GB, free: 1.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.5517, allocations: 10.35 MB / 0.5854 GB, free: 7.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.9, allocations: 14.36 kB / 0.5855 GB, free: 7.574 MB / 430.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --stepSize=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.792568817967549] Failed to read output from testmodel.py, exit status != 0: 13.072479501948692 13.100272568 12.649452564 Calling exit ...