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.001428/0.001428, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001529/0.001529, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 8 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.1123/0.1123, allocations: 24.11 MB / 336.6 MB, free: 11.45 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.002107/0.002107, allocations: 71.89 kB / 473.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3282, allocations: 59.6 MB / 0.5204 GB, free: 10.17 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.03977/0.3679, allocations: 23.16 MB / 0.543 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.3696, allocations: 0.7276 MB / 0.5438 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.3699, allocations: 2.344 kB / 0.5438 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002323/0.3701, allocations: 41.91 kB / 0.5438 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.3705, allocations: 108.8 kB / 0.5439 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004765/0.371, allocations: 102.2 kB / 0.544 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004977/0.3715, allocations: 419.4 kB / 0.5444 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003481/0.3718, allocations: 204.1 kB / 0.5446 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003762/0.3722, allocations: 176 kB / 0.5448 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000353/0.3725, allocations: 232.8 kB / 0.545 GB, free: 456 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.896e-05/0.3726, allocations: 40 kB / 0.545 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.215e-05/0.3727, allocations: 36 kB / 0.5451 GB, free: 380 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.3728, allocations: 125.7 kB / 0.5452 GB, free: 288 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.373, allocations: 195.2 kB / 0.5454 GB, free: 112 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005948/0.3736, allocations: 461.6 kB / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3736, allocations: 0 / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3736, allocations: 0 / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.3737, allocations: 0 / 0.5458 GB, free: 15.81 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.001761/0.3754, allocations: 0.6121 MB / 0.5464 GB, free: 15.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.3755, allocations: 8.922 kB / 0.5464 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.784e-05/0.3756, allocations: 68.27 kB / 0.5465 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.934e-05/0.3756, allocations: 41.31 kB / 0.5465 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.3761, allocations: 249.5 kB / 0.5468 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/0.3761, allocations: 20.81 kB / 0.5468 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.658e-05/0.3762, allocations: 32.94 kB / 0.5468 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000766/0.377, allocations: 339.9 kB / 0.5471 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.377, allocations: 1.031 kB / 0.5471 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.377, allocations: 12 kB / 0.5471 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.377, allocations: 11.94 kB / 0.5472 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007888/0.3778, allocations: 328.4 kB / 0.5475 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.3801, allocations: 1.213 MB / 0.5486 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.3808, allocations: 277.4 kB / 0.5489 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.3812, allocations: 216.5 kB / 0.5491 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.3813, allocations: 4.234 kB / 0.5491 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3813, allocations: 38.8 kB / 0.5492 GB, free: 12.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.563e-06/0.3813, allocations: 0 / 0.5492 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.004813/0.3861, allocations: 1.513 MB / 0.5506 GB, free: 11.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.3862, allocations: 55.41 kB / 0.5507 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000347/0.3865, allocations: 248.4 kB / 0.5509 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.3866, allocations: 37.64 kB / 0.551 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.3867, allocations: 171.4 kB / 0.5511 GB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.3868, allocations: 108.3 kB / 0.5512 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.387, allocations: 59.67 kB / 0.5513 GB, free: 10.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.3872, allocations: 340.1 kB / 0.5516 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.3877, allocations: 194.3 kB / 0.5518 GB, free: 10.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.3882, allocations: 227.8 kB / 0.552 GB, free: 10 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.001807/0.39, allocations: 0.5778 MB / 0.5526 GB, free: 9.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.39, allocations: 0 / 0.5526 GB, free: 9.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001886/0.3919, allocations: 0.6337 MB / 0.5532 GB, free: 8.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3919, allocations: 8.75 kB / 0.5532 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3919, allocations: 0 / 0.5532 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008478/0.3928, allocations: 179 kB / 0.5534 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000628/0.3934, allocations: 104.9 kB / 0.5535 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007494/0.4009, allocations: 7.079 MB / 0.5604 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004246/0.4013, allocations: 25.92 kB / 0.5604 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.4014, allocations: 13.41 kB / 0.5604 GB, free: 1.277 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.0002883/0.4016, allocations: 163.1 kB / 0.5606 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/0.4017, allocations: 23.86 kB / 0.5606 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.4033, allocations: 0.5992 MB / 0.5612 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4033, allocations: 4 kB / 0.5612 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4033, allocations: 4 kB / 0.5612 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.4033, allocations: 1.734 kB / 0.5612 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006176/0.4039, allocations: 418.8 kB / 0.5616 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4039, allocations: 3.938 kB / 0.5616 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000576/0.4045, allocations: 96.89 kB / 0.5617 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005237/0.405, allocations: 142.8 kB / 0.5618 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.4051, allocations: 10.06 kB / 0.5618 GB, free: 0 / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006076/0.4112, allocations: 6.695 MB / 0.5684 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4112, allocations: 3.938 kB / 0.5684 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.4133, allocations: 0.8974 MB / 0.5693 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.4134, allocations: 27.88 kB / 0.5693 GB, free: 7.918 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.562e-05/0.4134, allocations: 11.92 kB / 0.5693 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.4138, allocations: 32.09 kB / 0.5693 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.4139, allocations: 35.94 kB / 0.5694 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.4139, allocations: 11.98 kB / 0.5694 GB, free: 7.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002301/0.4142, allocations: 185.2 kB / 0.5695 GB, free: 7.648 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4142, allocations: 0 / 0.5695 GB, free: 7.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000546/0.4147, allocations: 116 kB / 0.5697 GB, free: 7.535 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.002375/0.4171, allocations: 1.447 MB / 0.5711 GB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.419, allocations: 1.012 MB / 0.5721 GB, free: 4.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.419, allocations: 0 / 0.5721 GB, free: 4.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.4201, allocations: 0.7864 MB / 0.5728 GB, free: 4.117 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.4207, allocations: 68.56 kB / 0.5729 GB, free: 4.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/0.4304, allocations: 4.428 MB / 0.5772 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.4309, allocations: 0.7957 MB / 0.578 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002355/0.4312, allocations: 54.94 kB / 0.578 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.4314, allocations: 103.4 kB / 0.5781 GB, free: 14.54 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4314, allocations: 0 / 0.5781 GB, free: 14.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05697/0.4883, allocations: 9.771 MB / 0.5877 GB, free: 4.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.75, allocations: 0.9844 kB / 0.5877 GB, free: 4.902 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.531990429852158] Failed to read output from testmodel.py, exit status != 0: 12.858530326047912 12.88195086 12.503514668 Calling exit ...