Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.0009754/0.0009754, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004783/0.004783, allocations: 174.1 kB / 16.26 MB, free: 6.613 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.256/1.256, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1819/0.1819, allocations: 22.35 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.000317, allocations: 11.94 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2264, allocations: 55.96 MB / 438.7 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.002943/0.2294, allocations: 4.19 MB / 442.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2312, allocations: 1.284 MB / 444.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003728/0.2316, allocations: 16.81 kB / 444.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.2319, allocations: 134.5 kB / 444.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006213/0.2325, allocations: 415.6 kB / 444.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.233, allocations: 281.4 kB / 445 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001444/0.2345, allocations: 2.661 MB / 447.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000967/0.2355, allocations: 1.275 MB / 448.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000477/0.236, allocations: 0.6393 MB / 449.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007652/0.2367, allocations: 0.8992 MB / 450.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.2369, allocations: 89.81 kB / 450.5 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.2371, allocations: 89.72 kB / 450.6 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002956/0.2374, allocations: 0.5435 MB / 451.2 MB, free: 32.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004903/0.2379, allocations: 0.7729 MB / 451.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.239, allocations: 2.399 MB / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.239, allocations: 0 / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.239, allocations: 4 kB / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.239, allocations: 0 / 454.3 MB, free: 31.64 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003116/0.2422, allocations: 1.772 MB / 456.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2422, allocations: 12.56 kB / 456.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002133/0.2424, allocations: 189.1 kB / 456.3 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002192/0.2426, allocations: 148.1 kB / 456.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.2437, allocations: 0.8708 MB / 457.3 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.284e-05/0.2438, allocations: 119.1 kB / 457.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.244, allocations: 135.4 kB / 457.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002285/0.2463, allocations: 1.588 MB / 459.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.2463, allocations: 0 / 459.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.2464, allocations: 50.16 kB / 459.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.2465, allocations: 29.55 kB / 459.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002061/0.2485, allocations: 1.408 MB / 460.6 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008251/0.2568, allocations: 7.181 MB / 467.8 MB, free: 24.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004381/0.2612, allocations: 1.877 MB / 469.7 MB, free: 23.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009863/0.2622, allocations: 0.7385 MB / 470.4 MB, free: 23.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.857e-05/0.2622, allocations: 14.61 kB / 470.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.2623, allocations: 43.69 kB / 470.5 MB, free: 23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.275e-06/0.2623, allocations: 0 / 470.5 MB, free: 23 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.006525/0.2688, allocations: 3.989 MB / 474.5 MB, free: 20.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.408e-05/0.2688, allocations: 66.12 kB / 474.6 MB, free: 20.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007213/0.2696, allocations: 0.6748 MB / 475.2 MB, free: 20.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.42e-05/0.2697, allocations: 41.88 kB / 475.3 MB, free: 20.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.2699, allocations: 0.5111 MB / 475.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/0.2702, allocations: 416.1 kB / 476.2 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.2704, allocations: 116 kB / 476.3 MB, free: 19.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2705, allocations: 418.5 kB / 476.7 MB, free: 18.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.2717, allocations: 0.8418 MB / 477.6 MB, free: 18.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.2729, allocations: 1.006 MB / 478.6 MB, free: 18.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/0.2852, allocations: 4.661 MB / 483.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.2853, allocations: 4 kB / 483.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003574/0.2888, allocations: 2.484 MB / 485.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.2889, allocations: 11.98 kB / 485.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2889, allocations: 8.031 kB / 485.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.2903, allocations: 0.5434 MB / 486.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.2919, allocations: 399.5 kB / 486.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/0.3039, allocations: 21.46 MB / 0.4962 GB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009898/0.3049, allocations: 158.8 kB / 0.4964 GB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3051, allocations: 48 kB / 0.4964 GB, free: 4.113 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (160): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0006935/0.3058, allocations: 434.7 kB / 0.4968 GB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.3059, allocations: 86.97 kB / 0.4969 GB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/0.3094, allocations: 1.994 MB / 0.4989 GB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3094, allocations: 12 kB / 0.4989 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.3094, allocations: 7.938 kB / 0.4989 GB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3094, allocations: 3.984 kB / 0.4989 GB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00551/0.3149, allocations: 3.711 MB / 0.5025 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.315, allocations: 3.938 kB / 0.5025 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.3169, allocations: 343.6 kB / 0.5028 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.3181, allocations: 480.8 kB / 0.5033 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.3183, allocations: 63.95 kB / 0.5034 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/0.3312, allocations: 20.6 MB / 0.5235 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3312, allocations: 3.938 kB / 0.5235 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004302/0.3355, allocations: 2.723 MB / 0.5261 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.3357, allocations: 199.6 kB / 0.5263 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.3359, allocations: 59.97 kB / 0.5264 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007755/0.3367, allocations: 75.83 kB / 0.5265 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.3369, allocations: 92.75 kB / 0.5265 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.031e-05/0.337, allocations: 35.98 kB / 0.5266 GB, free: 2.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005399/0.3376, allocations: 479 kB / 0.527 GB, free: 2.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3376, allocations: 0 / 0.527 GB, free: 2.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001297/0.3389, allocations: 0.4991 MB / 0.5275 GB, free: 1.898 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (92): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.004552/0.3434, allocations: 3.355 MB / 0.5308 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.3473, allocations: 3.418 MB / 0.5341 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3473, allocations: 0 / 0.5341 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002412/0.3497, allocations: 2.483 MB / 0.5366 GB, free: 8.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.351, allocations: 317.2 kB / 0.5369 GB, free: 7.855 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02337/0.3744, allocations: 17.08 MB / 0.5535 GB, free: 6.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008351/0.3752, allocations: 1.268 MB / 0.5548 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009764/0.3762, allocations: 367.8 kB / 0.5551 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006657/0.3769, allocations: 467.3 kB / 0.5556 GB, free: 4.145 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3769, allocations: 0 / 0.5556 GB, free: 4.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.471/4.848, allocations: 32.62 MB / 0.5874 GB, free: 3.914 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003439/4.849, allocations: 235.5 kB / 0.5877 GB, free: 3.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.728/8.577, allocations: 0 / 0.5877 GB, free: 3.66 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)