Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.0007671/0.0007671, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.00106/0.00106, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.9468/0.9468, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.06257/0.06257, allocations: 18.12 MB / 278.1 MB, free: 11.53 MB / 266.7 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.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.382e-05, allocations: 5.078 kB / 415.1 MB, free: 12.68 MB / 330.7 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.HeatExchanger_1vol_case_001): time 0.01932/0.01934, allocations: 23.35 MB / 438.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008224/0.02016, allocations: 213.4 kB / 438.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.02029, allocations: 15.88 kB / 438.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.307e-05/0.02036, allocations: 33.67 kB / 438.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.02057, allocations: 110.9 kB / 438.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.0207, allocations: 41.56 kB / 438.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.02092, allocations: 306.1 kB / 439.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.02116, allocations: 124.4 kB / 439.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.02136, allocations: 129.7 kB / 439.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.02147, allocations: 71.03 kB / 439.4 MB, free: 14.86 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.0215, allocations: 19.94 kB / 439.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.245e-05/0.02153, allocations: 16 kB / 439.5 MB, free: 14.83 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.02156, allocations: 41.61 kB / 439.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.02162, allocations: 70.06 kB / 439.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.02184, allocations: 225 kB / 439.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.02185, allocations: 0 / 439.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.02185, allocations: 0 / 439.8 MB, free: 14.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.02185, allocations: 4.75 kB / 439.8 MB, free: 14.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005584/0.02241, allocations: 452.5 kB / 440.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.02245, allocations: 13.62 kB / 440.3 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.02249, allocations: 50.27 kB / 440.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.02253, allocations: 29.55 kB / 440.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.02277, allocations: 210.1 kB / 440.5 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.02279, allocations: 16.7 kB / 440.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.02281, allocations: 16.38 kB / 440.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.02307, allocations: 192.2 kB / 440.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.02308, allocations: 8.125 kB / 440.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.02309, allocations: 4.375 kB / 440.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.0231, allocations: 12.12 kB / 440.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.02331, allocations: 123.4 kB / 440.9 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.02396, allocations: 0.7659 MB / 441.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.02409, allocations: 78.58 kB / 441.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.937e-05/0.02418, allocations: 63.48 kB / 441.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.02419, allocations: 4 kB / 441.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.02422, allocations: 35.31 kB / 441.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.02422, allocations: 3.938 kB / 441.9 MB, free: 12.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003121/0.02453, allocations: 179.1 kB / 442 MB, free: 12.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.02456, allocations: 56.2 kB / 442.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.02472, allocations: 228.9 kB / 442.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.02473, allocations: 25.7 kB / 442.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.937e-05/0.02481, allocations: 148.3 kB / 442.5 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.02484, allocations: 51.06 kB / 442.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.02488, allocations: 32.77 kB / 442.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.02497, allocations: 332.8 kB / 442.9 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.076e-05/0.02504, allocations: 41.94 kB / 442.9 MB, free: 11.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.612e-05/0.02512, allocations: 59.25 kB / 443 MB, free: 11.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.02559, allocations: 221.1 kB / 443.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.0256, allocations: 0.6562 kB / 443.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002028/0.0258, allocations: 181.6 kB / 443.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.02581, allocations: 4 kB / 443.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.02582, allocations: 0 / 443.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.02583, allocations: 4.609 kB / 443.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.02595, allocations: 32.83 kB / 443.4 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.02595, allocations: 0 / 443.4 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.439e-05/0.02601, allocations: 18.05 kB / 443.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.02602, allocations: 8 kB / 443.4 MB, free: 10.97 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.02615, allocations: 144.4 kB / 443.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.02618, allocations: 23.8 kB / 443.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.172e-05/0.02621, allocations: 28.64 kB / 443.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.02621, allocations: 0.6562 kB / 443.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.02621, allocations: 0 / 443.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.02622, allocations: 0.7031 kB / 443.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.0264, allocations: 224.3 kB / 443.9 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.0264, allocations: 4 kB / 443.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.02651, allocations: 33.3 kB / 443.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.02651, allocations: 4 kB / 443.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.02652, allocations: 3.938 kB / 443.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.02652, allocations: 0.75 kB / 443.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.02652, allocations: 3.938 kB / 443.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.02683, allocations: 302.5 kB / 444.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.02686, allocations: 17.2 kB / 444.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.02687, allocations: 8.812 kB / 444.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.887e-05/0.02693, allocations: 1.359 kB / 444.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.02698, allocations: 18.19 kB / 444.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.02698, allocations: 0 / 444.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.02709, allocations: 168.7 kB / 444.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02709, allocations: 0 / 444.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001752/0.02727, allocations: 47.89 kB / 444.5 MB, free: 9.969 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004969/0.02777, allocations: 0.8375 MB / 445.3 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001916/0.02796, allocations: 104.9 kB / 445.4 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.02796, allocations: 0 / 445.4 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.155e-05/0.02804, allocations: 58.94 kB / 445.5 MB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.02829, allocations: 49.34 kB / 445.5 MB, free: 8.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.03023, allocations: 2.228 MB / 447.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.385e-05/0.03031, allocations: 134.9 kB / 447.9 MB, free: 6.637 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.977e-05/0.03039, allocations: 28.48 kB / 447.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.43e-05/0.03048, allocations: 74.22 kB / 448 MB, free: 6.547 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.03048, allocations: 4 kB / 448 MB, free: 6.543 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.05125, allocations: 5.533 MB / 453.5 MB, free: 2.262 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.958/7.009, allocations: 17.73 kB / 453.5 MB, free: 2.254 MB / 346.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.148923364467919] Failed to read output from testmodel.py, exit status != 0: 7.093443827703595 7.102810002 7.079183114 Calling exit ...