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.001947/0.001947, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002242/0.002242, allocations: 206.9 kB / 23.01 MB, free: 4.625 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.448/1.448, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1104/0.1104, allocations: 24.03 MB / 337.2 MB, free: 11.34 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="me",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="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.002114/0.002114, allocations: 67.91 kB / 473.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3337, allocations: 59.58 MB / 0.5209 GB, free: 10.08 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.06818/0.4019, allocations: 23.19 MB / 0.5436 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.4034, allocations: 0.6886 MB / 0.5442 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.4036, allocations: 6.312 kB / 0.5442 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.4038, allocations: 39.11 kB / 0.5443 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.404, allocations: 107.5 kB / 0.5444 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.4044, allocations: 107.5 kB / 0.5445 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.4048, allocations: 421.2 kB / 0.5449 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.405, allocations: 200 kB / 0.5451 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.4053, allocations: 178.6 kB / 0.5453 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.4055, allocations: 222.5 kB / 0.5455 GB, free: 440 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.4056, allocations: 36 kB / 0.5455 GB, free: 404 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.214e-05/0.4056, allocations: 43.94 kB / 0.5455 GB, free: 360 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.514e-05/0.4057, allocations: 116.6 kB / 0.5457 GB, free: 276 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.4059, allocations: 178.8 kB / 0.5458 GB, free: 116 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005077/0.4064, allocations: 453.8 kB / 0.5463 GB, free: 15.83 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4064, allocations: 0 / 0.5463 GB, free: 15.83 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4064, allocations: 0 / 0.5463 GB, free: 15.83 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.4064, allocations: 0 / 0.5463 GB, free: 15.83 MB / 398.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.001488/0.4079, allocations: 0.6158 MB / 0.5469 GB, free: 15.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.4079, allocations: 12.92 kB / 0.5469 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.267e-05/0.408, allocations: 60.66 kB / 0.5469 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.523e-05/0.4081, allocations: 40.7 kB / 0.547 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.4085, allocations: 242.3 kB / 0.5472 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.4086, allocations: 20.88 kB / 0.5472 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.595e-05/0.4086, allocations: 28.33 kB / 0.5472 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/0.4094, allocations: 348.2 kB / 0.5476 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.4094, allocations: 0 / 0.5476 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.388e-05/0.4094, allocations: 8 kB / 0.5476 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.4094, allocations: 8.562 kB / 0.5476 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008111/0.4103, allocations: 331.7 kB / 0.5479 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.4124, allocations: 0.8787 MB / 0.5488 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005981/0.413, allocations: 274.2 kB / 0.549 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004875/0.4134, allocations: 216.8 kB / 0.5492 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.4135, allocations: 9.25 kB / 0.5492 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.4135, allocations: 34.8 kB / 0.5493 GB, free: 13.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.634e-06/0.4135, allocations: 0 / 0.5493 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.005017/0.4185, allocations: 1.517 MB / 0.5508 GB, free: 11.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.4186, allocations: 56.11 kB / 0.5508 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.4189, allocations: 252 kB / 0.5511 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.4189, allocations: 29.7 kB / 0.5511 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.4191, allocations: 167.4 kB / 0.5512 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.4192, allocations: 116.2 kB / 0.5513 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.4193, allocations: 63.95 kB / 0.5514 GB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.4195, allocations: 340.3 kB / 0.5517 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005225/0.42, allocations: 190.3 kB / 0.5519 GB, free: 10.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.4206, allocations: 223.4 kB / 0.5521 GB, free: 10.37 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.001896/0.4225, allocations: 0.5814 MB / 0.5527 GB, free: 9.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4225, allocations: 0 / 0.5527 GB, free: 9.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001825/0.4243, allocations: 0.6307 MB / 0.5533 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.4243, allocations: 8 kB / 0.5533 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4243, allocations: 3.938 kB / 0.5533 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008131/0.4251, allocations: 171.2 kB / 0.5535 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000627/0.4258, allocations: 109.5 kB / 0.5536 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006726/0.4325, allocations: 7.051 MB / 0.5605 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.4329, allocations: 37.62 kB / 0.5605 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.4329, allocations: 9.359 kB / 0.5605 GB, free: 1.652 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.0002504/0.4332, allocations: 154.5 kB / 0.5607 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.4333, allocations: 28.56 kB / 0.5607 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001668/0.4349, allocations: 0.6099 MB / 0.5613 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.4349, allocations: 4.984 kB / 0.5613 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4349, allocations: 4 kB / 0.5613 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.4349, allocations: 5.266 kB / 0.5613 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005371/0.4355, allocations: 360.2 kB / 0.5616 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4355, allocations: 0.7969 kB / 0.5616 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005987/0.4361, allocations: 88.34 kB / 0.5617 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005509/0.4366, allocations: 150.8 kB / 0.5619 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.4367, allocations: 9.641 kB / 0.5619 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00609/0.4428, allocations: 6.682 MB / 0.5684 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4428, allocations: 0 / 0.5684 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.4449, allocations: 0.895 MB / 0.5693 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.947e-05/0.445, allocations: 27.88 kB / 0.5693 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.445, allocations: 15.92 kB / 0.5693 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.4454, allocations: 23.97 kB / 0.5694 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.4455, allocations: 35.94 kB / 0.5694 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.4455, allocations: 7.984 kB / 0.5694 GB, free: 8.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.4457, allocations: 189.2 kB / 0.5696 GB, free: 8.145 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4457, allocations: 0 / 0.5696 GB, free: 8.145 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000547/0.4463, allocations: 116 kB / 0.5697 GB, free: 8.031 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.002427/0.4487, allocations: 1.447 MB / 0.5711 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.4506, allocations: 1.009 MB / 0.5721 GB, free: 5.469 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4507, allocations: 0 / 0.5721 GB, free: 5.469 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.4518, allocations: 0.7941 MB / 0.5729 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.4523, allocations: 80.56 kB / 0.5729 GB, free: 4.531 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/0.4616, allocations: 4.41 MB / 0.5772 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.4619, allocations: 195 kB / 0.5774 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.4621, allocations: 54.94 kB / 0.5775 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.4624, allocations: 107.4 kB / 0.5776 GB, free: 15.64 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4624, allocations: 0 / 0.5776 GB, free: 15.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07534/0.5377, allocations: 10.69 MB / 0.588 GB, free: 5.129 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.48, allocations: 4 kB / 0.588 GB, free: 5.125 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.205559827852994] Failed to read output from testmodel.py, exit status != 0: 12.595833986066282 12.623703763 12.212328746 Calling exit ...