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.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001166/0.001166, allocations: 192.7 kB / 16.13 MB, free: 6.691 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.161/1.161, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.165/0.165, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 380.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2036, allocations: 54.94 MB / 435.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003485/0.2071, allocations: 4.603 MB / 439.8 MB, free: 36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2083, allocations: 1.29 MB / 441 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.2085, allocations: 18 kB / 441.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002234/0.2088, allocations: 129 kB / 441.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000429/0.2092, allocations: 415.4 kB / 441.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004293/0.2096, allocations: 283.2 kB / 441.9 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00124/0.2109, allocations: 2.656 MB / 444.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008781/0.2118, allocations: 1.348 MB / 445.9 MB, free: 33.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004481/0.2122, allocations: 0.6938 MB / 446.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006968/0.2129, allocations: 0.9836 MB / 447.5 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001739/0.2131, allocations: 114.7 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002354/0.2134, allocations: 115.3 kB / 447.8 MB, free: 32.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003024/0.2137, allocations: 0.5741 MB / 448.3 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005272/0.2142, allocations: 0.7975 MB / 449.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.2153, allocations: 2.466 MB / 451.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2153, allocations: 7.156 kB / 451.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2153, allocations: 0 / 451.6 MB, free: 30.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.2153, allocations: 0 / 451.6 MB, free: 30.95 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.003251/0.2186, allocations: 2.014 MB / 453.6 MB, free: 29.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.2186, allocations: 14.41 kB / 453.6 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001834/0.2188, allocations: 183.7 kB / 453.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.219, allocations: 146.8 kB / 454 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000924/0.2199, allocations: 0.8668 MB / 454.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.137e-05/0.22, allocations: 119.4 kB / 455 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.2202, allocations: 138.5 kB / 455.1 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.2224, allocations: 1.588 MB / 456.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.2225, allocations: 0 / 456.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.2226, allocations: 50.28 kB / 456.7 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.2226, allocations: 29.16 kB / 456.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00192/0.2245, allocations: 1.409 MB / 458.2 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007667/0.2322, allocations: 7.122 MB / 465.3 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004257/0.2365, allocations: 1.878 MB / 467.2 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009339/0.2374, allocations: 0.7334 MB / 467.9 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.714e-05/0.2375, allocations: 19.8 kB / 467.9 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.2375, allocations: 44 kB / 468 MB, free: 22.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.274e-06/0.2375, allocations: 0 / 468 MB, free: 22.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.005729/0.2433, allocations: 3.921 MB / 471.9 MB, free: 19.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.2433, allocations: 66.59 kB / 471.9 MB, free: 19.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.244, allocations: 0.6793 MB / 472.6 MB, free: 19.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.455e-05/0.2441, allocations: 49.52 kB / 472.7 MB, free: 19.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.2443, allocations: 0.5032 MB / 473.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002487/0.2446, allocations: 414.8 kB / 473.6 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003608/0.2449, allocations: 240 kB / 473.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.245, allocations: 419.7 kB / 474.2 MB, free: 18.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.2461, allocations: 0.8424 MB / 475.1 MB, free: 17.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2473, allocations: 1.004 MB / 476.1 MB, free: 17.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/0.2588, allocations: 4.472 MB / 480.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2588, allocations: 1.219 kB / 480.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003445/0.2622, allocations: 2.469 MB / 483 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2622, allocations: 4 kB / 483 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2623, allocations: 8 kB / 483 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.2637, allocations: 0.5356 MB / 483.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.2652, allocations: 403.5 kB / 484 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.2764, allocations: 21.42 MB / 0.4935 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009255/0.2774, allocations: 166.7 kB / 0.4937 GB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.2775, allocations: 47.98 kB / 0.4937 GB, free: 4.355 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.0006536/0.2781, allocations: 425.4 kB / 0.4941 GB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.2783, allocations: 90.97 kB / 0.4942 GB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.2815, allocations: 1.99 MB / 0.4962 GB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.2816, allocations: 8 kB / 0.4962 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.2816, allocations: 7.938 kB / 0.4962 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.2816, allocations: 7.984 kB / 0.4962 GB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005196/0.2868, allocations: 3.711 MB / 0.4998 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.2868, allocations: 4 kB / 0.4998 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.2887, allocations: 343.9 kB / 0.5002 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.2899, allocations: 472.5 kB / 0.5006 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.29, allocations: 71.95 kB / 0.5007 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.3022, allocations: 20.58 MB / 0.5208 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3022, allocations: 0 / 0.5208 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.3061, allocations: 2.722 MB / 0.5234 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.3063, allocations: 195.7 kB / 0.5236 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.3065, allocations: 67.97 kB / 0.5237 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006996/0.3072, allocations: 67.83 kB / 0.5237 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.3074, allocations: 100.8 kB / 0.5238 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.3075, allocations: 31.98 kB / 0.5239 GB, free: 3.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004971/0.308, allocations: 475 kB / 0.5243 GB, free: 2.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.308, allocations: 0 / 0.5243 GB, free: 2.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00119/0.3092, allocations: 0.5029 MB / 0.5248 GB, free: 2.172 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.004289/0.3135, allocations: 3.358 MB / 0.5281 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003614/0.3172, allocations: 3.418 MB / 0.5314 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3172, allocations: 0 / 0.5314 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.3194, allocations: 2.455 MB / 0.5338 GB, free: 8.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.3205, allocations: 315 kB / 0.5341 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/0.3428, allocations: 16.47 MB / 0.5502 GB, free: 7.176 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007834/0.3436, allocations: 1.27 MB / 0.5515 GB, free: 5.875 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009407/0.3445, allocations: 371.8 kB / 0.5518 GB, free: 5.508 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006434/0.3452, allocations: 471.3 kB / 0.5523 GB, free: 5.047 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3452, allocations: 0 / 0.5523 GB, free: 5.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04456/0.3897, allocations: 33.1 MB / 0.5846 GB, free: 4.301 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/0.39, allocations: 237.3 kB / 0.5848 GB, free: 4.043 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/2.782, allocations: 0 / 0.5848 GB, free: 4.043 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)