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.001335/0.001335, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001447/0.001447, allocations: 214.7 kB / 23.04 MB, free: 5.07 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.1012/0.1012, allocations: 22.93 MB / 336.2 MB, free: 12.59 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.003067/0.003067, allocations: 67.91 kB / 472.3 MB, free: 7.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4286, allocations: 59.28 MB / 0.5191 GB, free: 10.65 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.03888/0.4675, allocations: 22.98 MB / 0.5416 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.4693, allocations: 0.7319 MB / 0.5423 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.4696, allocations: 6.219 kB / 0.5423 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.4697, allocations: 38.09 kB / 0.5423 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.47, allocations: 112.4 kB / 0.5424 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.4704, allocations: 102.9 kB / 0.5425 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004592/0.4709, allocations: 413.8 kB / 0.5429 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/0.4712, allocations: 200 kB / 0.5431 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.4715, allocations: 183.2 kB / 0.5433 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.4718, allocations: 229.3 kB / 0.5435 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-05/0.4718, allocations: 38.5 kB / 0.5435 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.024e-05/0.4719, allocations: 46.44 kB / 0.5436 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.472, allocations: 122.6 kB / 0.5437 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.4722, allocations: 196.8 kB / 0.5439 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.4727, allocations: 454.5 kB / 0.5443 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4727, allocations: 2.844 kB / 0.5443 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4727, allocations: 0 / 0.5443 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.4727, allocations: 0 / 0.5443 GB, free: 0.9688 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.001445/0.4742, allocations: 0.6172 MB / 0.5449 GB, free: 0.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.4742, allocations: 10.08 kB / 0.5449 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.068e-05/0.4742, allocations: 14.42 kB / 0.5449 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.939e-05/0.4743, allocations: 64.97 kB / 0.545 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.378e-05/0.4744, allocations: 40.36 kB / 0.545 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003523/0.4747, allocations: 241.7 kB / 0.5453 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.4748, allocations: 18.66 kB / 0.5453 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.044e-05/0.4748, allocations: 33.14 kB / 0.5453 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007377/0.4756, allocations: 346.9 kB / 0.5457 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.4756, allocations: 0 / 0.5457 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.4756, allocations: 6.406 kB / 0.5457 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.4756, allocations: 5.062 kB / 0.5457 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008267/0.4764, allocations: 333.7 kB / 0.546 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.4789, allocations: 1.219 MB / 0.5472 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006286/0.4795, allocations: 272.2 kB / 0.5474 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005147/0.48, allocations: 218.7 kB / 0.5476 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.48, allocations: 8.219 kB / 0.5476 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/0.4801, allocations: 39.39 kB / 0.5477 GB, free: 14.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.873e-06/0.4801, allocations: 0 / 0.5477 GB, free: 14.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.005329/0.4854, allocations: 1.52 MB / 0.5492 GB, free: 13.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.4855, allocations: 56.16 kB / 0.5492 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004743/0.486, allocations: 256.5 kB / 0.5495 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.486, allocations: 29.7 kB / 0.5495 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.4862, allocations: 171 kB / 0.5497 GB, free: 12.69 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.4863, allocations: 100.4 kB / 0.5498 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.4865, allocations: 60.38 kB / 0.5498 GB, free: 12.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002185/0.4867, allocations: 335.5 kB / 0.5501 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006469/0.4873, allocations: 194.4 kB / 0.5503 GB, free: 12.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006549/0.488, allocations: 227.7 kB / 0.5505 GB, free: 11.86 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.002031/0.49, allocations: 0.5813 MB / 0.5511 GB, free: 11.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.49, allocations: 0 / 0.5511 GB, free: 11.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001832/0.4918, allocations: 0.6344 MB / 0.5517 GB, free: 10.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.4919, allocations: 4 kB / 0.5517 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4919, allocations: 4 kB / 0.5517 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007939/0.4927, allocations: 175.7 kB / 0.5519 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000654/0.4933, allocations: 104.8 kB / 0.552 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007739/0.5011, allocations: 7.074 MB / 0.5589 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006263/0.5017, allocations: 30.14 kB / 0.5589 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.5017, allocations: 17.36 kB / 0.559 GB, free: 3.133 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.0003624/0.5021, allocations: 159.1 kB / 0.5591 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.3e-05/0.5022, allocations: 27.86 kB / 0.5591 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/0.504, allocations: 0.6068 MB / 0.5597 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.504, allocations: 4.75 kB / 0.5597 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.504, allocations: 0 / 0.5597 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.504, allocations: 1.406 kB / 0.5597 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006765/0.5047, allocations: 423.1 kB / 0.5601 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.5047, allocations: 4 kB / 0.5601 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.5053, allocations: 96.52 kB / 0.5602 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005385/0.5058, allocations: 146.9 kB / 0.5604 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.5059, allocations: 6.016 kB / 0.5604 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00651/0.5124, allocations: 6.689 MB / 0.5669 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5124, allocations: 0 / 0.5669 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.5149, allocations: 0.9001 MB / 0.5678 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.515, allocations: 33.03 kB / 0.5678 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.5151, allocations: 11.94 kB / 0.5678 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003672/0.5154, allocations: 23.97 kB / 0.5679 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.5156, allocations: 47.92 kB / 0.5679 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.5156, allocations: 4 kB / 0.5679 GB, free: 9.855 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002366/0.5159, allocations: 185.2 kB / 0.5681 GB, free: 9.676 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5159, allocations: 0 / 0.5681 GB, free: 9.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006394/0.5165, allocations: 116 kB / 0.5682 GB, free: 9.562 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.002798/0.5193, allocations: 1.447 MB / 0.5696 GB, free: 8.062 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.5216, allocations: 1.009 MB / 0.5706 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5216, allocations: 0 / 0.5706 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.5229, allocations: 0.7902 MB / 0.5714 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.5236, allocations: 72.64 kB / 0.5714 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.5343, allocations: 4.421 MB / 0.5757 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006184/0.5349, allocations: 0.7996 MB / 0.5765 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002757/0.5352, allocations: 46.95 kB / 0.5766 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.5354, allocations: 103.4 kB / 0.5767 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5354, allocations: 0 / 0.5767 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05009/0.5855, allocations: 9.801 MB / 0.5862 GB, free: 6.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.74, allocations: 11.66 kB / 0.5863 GB, free: 6.895 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.524130605976097] Failed to read output from testmodel.py, exit status != 0: 12.914271697984077 12.929744953 12.453345336 Calling exit ...