Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009597/0.0009597, allocations: 111.3 kB / 15.23 MB, free: 0.6367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000903/0.000903, allocations: 196.8 kB / 16.14 MB, free: 6.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.174/0.174, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 59.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2026, allocations: 54.95 MB / 435.2 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003105/0.2057, allocations: 3.499 MB / 438.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2069, allocations: 0.9454 MB / 439.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.2071, allocations: 7.719 kB / 439.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.2073, allocations: 81.19 kB / 439.7 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.2076, allocations: 240.5 kB / 439.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.2079, allocations: 168.2 kB / 440.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000736/0.2086, allocations: 1.498 MB / 441.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005161/0.2092, allocations: 0.7494 MB / 442.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.2094, allocations: 408.5 kB / 442.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.2098, allocations: 0.5616 MB / 443.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.935e-05/0.21, allocations: 69.06 kB / 443.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.2101, allocations: 68.59 kB / 443.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.2103, allocations: 338.4 kB / 443.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003013/0.2106, allocations: 478.7 kB / 444.2 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006231/0.2112, allocations: 1.4 MB / 445.6 MB, free: 34.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.2112, allocations: 4 kB / 445.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.2112, allocations: 0 / 445.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.2112, allocations: 0 / 445.6 MB, free: 34.04 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.001921/0.2132, allocations: 1.289 MB / 446.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.765e-05/0.2132, allocations: 12.28 kB / 446.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.2133, allocations: 118.5 kB / 447.1 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.2134, allocations: 90.81 kB / 447.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005511/0.214, allocations: 0.5651 MB / 447.7 MB, free: 32.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.2141, allocations: 78.58 kB / 447.8 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.2142, allocations: 83.09 kB / 447.9 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.2153, allocations: 0.9321 MB / 448.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2153, allocations: 0 / 448.8 MB, free: 32.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.754e-05/0.2154, allocations: 33.19 kB / 448.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.2154, allocations: 17.06 kB / 448.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009997/0.2164, allocations: 0.8057 MB / 449.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.2204, allocations: 3.967 MB / 453.6 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002335/0.2228, allocations: 1.03 MB / 454.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005082/0.2233, allocations: 414.2 kB / 455.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.2234, allocations: 13.31 kB / 455.1 MB, free: 28.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.2234, allocations: 41.47 kB / 455.1 MB, free: 28.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.643e-06/0.2234, allocations: 1.719 kB / 455.1 MB, free: 28.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003319/0.2267, allocations: 2.355 MB / 457.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.89e-05/0.2267, allocations: 58.47 kB / 457.5 MB, free: 27.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.2271, allocations: 416.7 kB / 457.9 MB, free: 26.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.2271, allocations: 32.36 kB / 458 MB, free: 26.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.2273, allocations: 335 kB / 458.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2274, allocations: 227.9 kB / 458.5 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.2276, allocations: 123 kB / 458.6 MB, free: 26.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.03e-05/0.2277, allocations: 367.5 kB / 459 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005893/0.2283, allocations: 455.2 kB / 459.4 MB, free: 25.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005909/0.2289, allocations: 0.4982 MB / 459.9 MB, free: 25.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006219/0.2351, allocations: 2.355 MB / 462.3 MB, free: 24.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2351, allocations: 1.5 kB / 462.3 MB, free: 24.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002068/0.2372, allocations: 1.344 MB / 463.6 MB, free: 24.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.2372, allocations: 6.422 kB / 463.6 MB, free: 24.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2372, allocations: 5.5 kB / 463.6 MB, free: 24.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009476/0.2382, allocations: 340.6 kB / 464 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007914/0.239, allocations: 186.4 kB / 464.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006534/0.2455, allocations: 14.07 MB / 478.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.246, allocations: 78.62 kB / 478.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/0.2461, allocations: 25.77 kB / 478.3 MB, free: 10.23 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.0003431/0.2464, allocations: 278.5 kB / 478.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.415e-05/0.2465, allocations: 57.47 kB / 478.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.2483, allocations: 1.138 MB / 479.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.2483, allocations: 10.12 kB / 479.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2484, allocations: 3.344 kB / 479.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.2484, allocations: 3 kB / 479.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.2511, allocations: 2.124 MB / 481.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2511, allocations: 1.438 kB / 481.9 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009037/0.252, allocations: 166.7 kB / 482.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007154/0.2527, allocations: 306.6 kB / 482.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.77e-05/0.2528, allocations: 31.75 kB / 482.4 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00692/0.2597, allocations: 13.66 MB / 496.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.2597, allocations: 8.969 kB / 496.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.2621, allocations: 1.598 MB / 497.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.2623, allocations: 150 kB / 497.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.2624, allocations: 29.56 kB / 497.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.2628, allocations: 33.39 kB / 497.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.2629, allocations: 54.67 kB / 498 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.894e-05/0.263, allocations: 17.31 kB / 498 MB, free: 9.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003084/0.2633, allocations: 295.7 kB / 498.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2633, allocations: 3.938 kB / 498.3 MB, free: 9.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008341/0.2641, allocations: 300.3 kB / 498.6 MB, free: 9.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.002669/0.2668, allocations: 2.174 MB / 0.489 GB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.2691, allocations: 2.037 MB / 0.491 GB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2691, allocations: 4.062 kB / 0.491 GB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.2705, allocations: 1.55 MB / 0.4925 GB, free: 4.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006918/0.2712, allocations: 165.4 kB / 0.4927 GB, free: 4.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/0.2835, allocations: 9.248 MB / 0.5017 GB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.284, allocations: 1.02 MB / 0.5027 GB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004277/0.2845, allocations: 164.6 kB / 0.5029 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.2848, allocations: 255.3 kB / 0.5031 GB, free: 9.875 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2848, allocations: 4 kB / 0.5031 GB, free: 9.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.3145, allocations: 18.78 MB / 0.5214 GB, free: 7.363 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.3148, allocations: 230.6 kB / 0.5217 GB, free: 7.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.012/2.327, allocations: 0 / 0.5217 GB, free: 7.109 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)