Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",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.001284/0.001284, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 198.3 kB / 16.53 MB, free: 6.664 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1928/0.1928, allocations: 22.35 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 63.91 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2801, allocations: 54.94 MB / 435.9 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003894/0.2841, allocations: 4.394 MB / 440.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.2856, allocations: 1.263 MB / 441.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.2858, allocations: 19.56 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002775/0.2861, allocations: 165 kB / 441.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00068/0.2868, allocations: 427.2 kB / 442.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006187/0.2874, allocations: 314.9 kB / 442.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001324/0.2888, allocations: 2.153 MB / 444.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.29, allocations: 1.596 MB / 446.2 MB, free: 33.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006206/0.2907, allocations: 0.8199 MB / 447 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008686/0.2915, allocations: 0.9749 MB / 448 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002426/0.2918, allocations: 236.8 kB / 448.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002919/0.2921, allocations: 237.5 kB / 448.5 MB, free: 32.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003768/0.2925, allocations: 0.7031 MB / 449.2 MB, free: 32.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006133/0.2931, allocations: 0.9293 MB / 450.1 MB, free: 31.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.2944, allocations: 2.575 MB / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2944, allocations: 0 / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2944, allocations: 0 / 452.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.2944, allocations: 0 / 452.7 MB, free: 30.8 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003632/0.2981, allocations: 2.018 MB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.2981, allocations: 9.812 kB / 454.7 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001983/0.2983, allocations: 182.9 kB / 454.9 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.2986, allocations: 151 kB / 455 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.2997, allocations: 0.8639 MB / 455.9 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.871e-05/0.2998, allocations: 116.8 kB / 456 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.3, allocations: 139.3 kB / 456.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002345/0.3024, allocations: 1.585 MB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.3024, allocations: 1.375 kB / 457.7 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.3025, allocations: 48.91 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.3026, allocations: 29 kB / 457.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/0.3047, allocations: 1.424 MB / 459.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008848/0.3136, allocations: 7.167 MB / 466.4 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004613/0.3182, allocations: 1.89 MB / 468.3 MB, free: 22.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3193, allocations: 0.7266 MB / 469 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.918e-05/0.3194, allocations: 11.88 kB / 469 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.3194, allocations: 43.84 kB / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.615e-06/0.3194, allocations: 0 / 469 MB, free: 22 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006424/0.3258, allocations: 3.932 MB / 473 MB, free: 19.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.3259, allocations: 66.28 kB / 473 MB, free: 19.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008047/0.3267, allocations: 0.6934 MB / 473.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.008e-05/0.3268, allocations: 40.36 kB / 473.8 MB, free: 19.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.327, allocations: 0.5029 MB / 474.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.3273, allocations: 410.1 kB / 474.7 MB, free: 18.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004007/0.3277, allocations: 234.6 kB / 474.9 MB, free: 18.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3279, allocations: 417.3 kB / 475.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.3291, allocations: 0.8441 MB / 476.2 MB, free: 17.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.3304, allocations: 1.005 MB / 477.2 MB, free: 16.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/0.343, allocations: 4.458 MB / 481.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.3431, allocations: 1.156 kB / 481.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004043/0.3471, allocations: 2.466 MB / 484.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.3471, allocations: 11.94 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3472, allocations: 4.031 kB / 484.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001653/0.3488, allocations: 0.5356 MB / 484.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.3505, allocations: 395.5 kB / 485 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01438/0.3649, allocations: 23.06 MB / 0.4962 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.3663, allocations: 146.8 kB / 0.4963 GB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002342/0.3665, allocations: 51.98 kB / 0.4964 GB, free: 1.973 MB / 366.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: 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 (157): * Single equations (assignments): 142 * 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.0008992/0.3674, allocations: 414.2 kB / 0.4968 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/0.3677, allocations: 90.88 kB / 0.4969 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/0.3715, allocations: 1.986 MB / 0.4988 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.3715, allocations: 16 kB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.3715, allocations: 4 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.3715, allocations: 3.984 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005645/0.3772, allocations: 3.55 MB / 0.5023 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3772, allocations: 256 / 0.5023 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/0.3793, allocations: 339.6 kB / 0.5026 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.3807, allocations: 480.5 kB / 0.5031 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001702/0.3808, allocations: 63.95 kB / 0.5031 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01563/0.3965, allocations: 22.18 MB / 0.5248 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3965, allocations: 3.938 kB / 0.5248 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004937/0.4015, allocations: 2.736 MB / 0.5275 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/0.4018, allocations: 195.7 kB / 0.5276 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.4021, allocations: 63.97 kB / 0.5277 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000818/0.4029, allocations: 51.94 kB / 0.5278 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.4032, allocations: 100.8 kB / 0.5279 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.311e-05/0.4033, allocations: 31.98 kB / 0.5279 GB, free: 15.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006258/0.404, allocations: 479 kB / 0.5283 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.404, allocations: 0 / 0.5283 GB, free: 14.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00156/0.4055, allocations: 0.4991 MB / 0.5288 GB, free: 14.28 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (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],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 (89): * Single equations (assignments): 74 * 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.005019/0.4106, allocations: 3.352 MB / 0.5321 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00578/0.4164, allocations: 3.979 MB / 0.536 GB, free: 6.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4164, allocations: 1.312 kB / 0.536 GB, free: 6.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002664/0.4191, allocations: 2.455 MB / 0.5384 GB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.4203, allocations: 307.7 kB / 0.5387 GB, free: 3.711 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/0.4455, allocations: 16.01 MB / 0.5543 GB, free: 3.195 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.4467, allocations: 1.264 MB / 0.5555 GB, free: 1.902 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.4477, allocations: 359.6 kB / 0.5559 GB, free: 1.547 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007372/0.4485, allocations: 458.4 kB / 0.5563 GB, free: 1.102 MB / 430.1 MB Notification: Performance of SimCode: time 5.62e-07/0.4485, allocations: 0 / 0.5563 GB, free: 1.102 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2411/0.6896, allocations: 33.9 MB / 0.5894 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.3, allocations: 6.844 kB / 0.5894 GB, free: 132.8 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)