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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 103.8 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.1203/0.1203, allocations: 22.7 MB / 325.4 MB, free: 3.531 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 67.89 kB / 457.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1279, allocations: 58.01 MB / 0.5031 GB, free: 7.621 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.4194/0.5473, allocations: 22.93 MB / 0.5255 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.5485, allocations: 0.678 MB / 0.5262 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.777e-05/0.5486, allocations: 6.656 kB / 0.5262 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.5487, allocations: 37.97 kB / 0.5262 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.5489, allocations: 121 kB / 0.5263 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.5493, allocations: 98.42 kB / 0.5264 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003586/0.5496, allocations: 418.5 kB / 0.5268 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.5499, allocations: 215 kB / 0.527 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.5501, allocations: 170.6 kB / 0.5272 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002915/0.5504, allocations: 231.1 kB / 0.5274 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.81e-05/0.5504, allocations: 38.47 kB / 0.5275 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.525e-05/0.5505, allocations: 39.56 kB / 0.5275 GB, free: 5.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.5506, allocations: 124.2 kB / 0.5276 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.5508, allocations: 197 kB / 0.5278 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004605/0.5512, allocations: 456.8 kB / 0.5282 GB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.5512, allocations: 1 kB / 0.5282 GB, free: 5.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5512, allocations: 3.938 kB / 0.5282 GB, free: 5.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.5513, allocations: 4 kB / 0.5282 GB, free: 5.852 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.001255/0.5525, allocations: 0.6854 MB / 0.5289 GB, free: 5.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.5525, allocations: 11.12 kB / 0.5289 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.528e-05/0.5526, allocations: 59.77 kB / 0.529 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.5527, allocations: 39.97 kB / 0.529 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.553, allocations: 299.3 kB / 0.5293 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.553, allocations: 26.62 kB / 0.5293 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.009e-05/0.5531, allocations: 24.47 kB / 0.5294 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000652/0.5538, allocations: 341.8 kB / 0.5297 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.5538, allocations: 1.094 kB / 0.5297 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.5538, allocations: 9.938 kB / 0.5297 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.5538, allocations: 5.969 kB / 0.5297 GB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006909/0.5545, allocations: 334.2 kB / 0.53 GB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.5563, allocations: 1.25 MB / 0.5312 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.5568, allocations: 284 kB / 0.5315 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004079/0.5572, allocations: 212.3 kB / 0.5317 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.5572, allocations: 6.453 kB / 0.5317 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.52e-05/0.5572, allocations: 36.67 kB / 0.5317 GB, free: 4.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.403e-06/0.5572, allocations: 0 / 0.5317 GB, free: 4.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.004232/0.5615, allocations: 1.975 MB / 0.5337 GB, free: 3.008 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.5615, allocations: 56.7 kB / 0.5337 GB, free: 2.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.5618, allocations: 251 kB / 0.534 GB, free: 2.797 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.5618, allocations: 31.05 kB / 0.534 GB, free: 2.762 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.606e-05/0.5619, allocations: 166.9 kB / 0.5342 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.777e-05/0.562, allocations: 115.8 kB / 0.5343 GB, free: 2.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.5621, allocations: 64.14 kB / 0.5343 GB, free: 2.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.501e-05/0.5622, allocations: 338.6 kB / 0.5347 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004487/0.5626, allocations: 188.1 kB / 0.5348 GB, free: 2.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.563, allocations: 218.8 kB / 0.535 GB, free: 2.031 MB / 382.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.001718/0.5648, allocations: 0.6634 MB / 0.5357 GB, free: 1.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5648, allocations: 2.531 kB / 0.5357 GB, free: 1.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001646/0.5664, allocations: 0.6265 MB / 0.5363 GB, free: 1.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5664, allocations: 4.312 kB / 0.5363 GB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.5664, allocations: 5.531 kB / 0.5363 GB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007467/0.5672, allocations: 171.7 kB / 0.5365 GB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.5678, allocations: 102.9 kB / 0.5366 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006189/0.574, allocations: 7.597 MB / 0.544 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.5744, allocations: 32.12 kB / 0.544 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/0.5744, allocations: 12.36 kB / 0.544 GB, free: 9.949 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.0002479/0.5746, allocations: 165.2 kB / 0.5442 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.5747, allocations: 26.67 kB / 0.5442 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.5761, allocations: 0.6025 MB / 0.5448 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5761, allocations: 4.109 kB / 0.5448 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5761, allocations: 3.781 kB / 0.5448 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.5761, allocations: 1.969 kB / 0.5448 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.5767, allocations: 451.6 kB / 0.5452 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5767, allocations: 0 / 0.5452 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005313/0.5772, allocations: 96.66 kB / 0.5453 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004735/0.5777, allocations: 146.2 kB / 0.5455 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.173e-05/0.5777, allocations: 9.078 kB / 0.5455 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005488/0.5832, allocations: 7.205 MB / 0.5525 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5832, allocations: 4.156 kB / 0.5525 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.5851, allocations: 0.8965 MB / 0.5534 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.5853, allocations: 103.2 kB / 0.5535 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.5853, allocations: 12.17 kB / 0.5535 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.5856, allocations: 28.98 kB / 0.5535 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5858, allocations: 38.83 kB / 0.5536 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.5858, allocations: 12.45 kB / 0.5536 GB, free: 1.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.586, allocations: 190.3 kB / 0.5538 GB, free: 1.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.586, allocations: 0 / 0.5538 GB, free: 1.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004939/0.5865, allocations: 109.2 kB / 0.5539 GB, free: 1.273 MB / 398.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.002198/0.5887, allocations: 1.451 MB / 0.5553 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.5903, allocations: 1.014 MB / 0.5563 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5903, allocations: 0 / 0.5563 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009987/0.5913, allocations: 0.7831 MB / 0.557 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.5917, allocations: 67.06 kB / 0.5571 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009007/0.6007, allocations: 4.414 MB / 0.5614 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.6012, allocations: 0.7957 MB / 0.5622 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002302/0.6014, allocations: 50.95 kB / 0.5622 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.6016, allocations: 107.4 kB / 0.5623 GB, free: 11.08 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6016, allocations: 0 / 0.5623 GB, free: 11.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04495/0.6466, allocations: 9.536 MB / 0.5717 GB, free: 1.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.851/10.5, allocations: 0 / 0.5717 GB, free: 1.66 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.09343391098082] Failed to read output from testmodel.py, exit status != 0: 10.582228893879801 10.595950772 10.041796122 Calling exit ...