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.004486/0.004486, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001023/0.001023, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1994/0.1994, allocations: 22.36 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.48 kB / 436.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09008/0.09137, allocations: 54.96 MB / 491.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.00428/0.09569, allocations: 4.409 MB / 495.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.09756, allocations: 1.259 MB / 497.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002206/0.09779, allocations: 15.88 kB / 497.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003049/0.09812, allocations: 174.6 kB / 497.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006226/0.09875, allocations: 445.5 kB / 497.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006278/0.09939, allocations: 307.5 kB / 498.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.101, allocations: 2.158 MB / 0.4886 GB, free: 9.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.1026, allocations: 1.59 MB / 0.4901 GB, free: 7.387 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000898/0.1035, allocations: 0.8261 MB / 0.4909 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.1047, allocations: 0.9777 MB / 0.4919 GB, free: 5.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002686/0.1049, allocations: 240 kB / 0.4921 GB, free: 5.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.1052, allocations: 236 kB / 0.4923 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005117/0.1058, allocations: 0.7015 MB / 0.493 GB, free: 4.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008245/0.1066, allocations: 0.9184 MB / 0.4939 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.1085, allocations: 2.595 MB / 0.4964 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1085, allocations: 4 kB / 0.4964 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1085, allocations: 0 / 0.4964 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.059e-05/0.1085, allocations: 0 / 0.4964 GB, free: 0.8828 MB / 366.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.004081/0.1126, allocations: 2.015 MB / 0.4984 GB, free: 14.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1127, allocations: 8.031 kB / 0.4984 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.1129, allocations: 177.7 kB / 0.4986 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.1131, allocations: 155.1 kB / 0.4987 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.1143, allocations: 0.872 MB / 0.4996 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.1145, allocations: 112.6 kB / 0.4997 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002231/0.1147, allocations: 136.2 kB / 0.4998 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.1172, allocations: 1.585 MB / 0.5014 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.1172, allocations: 3.984 kB / 0.5014 GB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.1173, allocations: 52 kB / 0.5014 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.1174, allocations: 28 kB / 0.5015 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.1196, allocations: 1.419 MB / 0.5028 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009529/0.1291, allocations: 7.127 MB / 0.5098 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004548/0.1337, allocations: 1.89 MB / 0.5116 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.1348, allocations: 0.7262 MB / 0.5124 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.084e-05/0.1349, allocations: 16.91 kB / 0.5124 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.1349, allocations: 39.56 kB / 0.5124 GB, free: 15.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 3.667e-06/0.135, allocations: 0 / 0.5124 GB, free: 15.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.006716/0.1417, allocations: 3.94 MB / 0.5163 GB, free: 11.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.1418, allocations: 64.41 kB / 0.5163 GB, free: 11.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009443/0.1427, allocations: 0.6799 MB / 0.517 GB, free: 10.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.862e-05/0.1428, allocations: 41.7 kB / 0.517 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003993/0.1432, allocations: 0.5109 MB / 0.5175 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003734/0.1436, allocations: 410.2 kB / 0.5179 GB, free: 9.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003922/0.144, allocations: 239.5 kB / 0.5181 GB, free: 9.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.1442, allocations: 414.7 kB / 0.5185 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.1454, allocations: 0.8468 MB / 0.5194 GB, free: 8.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.1467, allocations: 1.004 MB / 0.5203 GB, free: 7.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/0.1589, allocations: 4.435 MB / 0.5247 GB, free: 2.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.1589, allocations: 8 kB / 0.5247 GB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004473/0.1634, allocations: 2.464 MB / 0.5271 GB, free: 240 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.1635, allocations: 8 kB / 0.5271 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1635, allocations: 4 kB / 0.5271 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.1652, allocations: 0.5317 MB / 0.5276 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001781/0.167, allocations: 399.5 kB / 0.528 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/0.1827, allocations: 23.04 MB / 0.5505 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.1842, allocations: 142.7 kB / 0.5506 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003149/0.1845, allocations: 51.98 kB / 0.5507 GB, free: 5.855 MB / 430.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.001078/0.1856, allocations: 426.6 kB / 0.5511 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.1859, allocations: 94.88 kB / 0.5512 GB, free: 5.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/0.1896, allocations: 1.975 MB / 0.5531 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.1896, allocations: 11.94 kB / 0.5531 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.1896, allocations: 4 kB / 0.5531 GB, free: 3.289 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.1896, allocations: 7.922 kB / 0.5531 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005595/0.1952, allocations: 3.547 MB / 0.5566 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.1953, allocations: 7.984 kB / 0.5566 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.1972, allocations: 331.7 kB / 0.5569 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.1985, allocations: 480.7 kB / 0.5574 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/0.1987, allocations: 67.89 kB / 0.5574 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01596/0.2147, allocations: 22.16 MB / 0.5791 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.2147, allocations: 8.016 kB / 0.5791 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00509/0.2198, allocations: 2.73 MB / 0.5818 GB, free: 3.598 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003595/0.2202, allocations: 195.7 kB / 0.582 GB, free: 3.387 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.2205, allocations: 67.8 kB / 0.582 GB, free: 3.324 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008125/0.2213, allocations: 55.94 kB / 0.5821 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.2216, allocations: 96.75 kB / 0.5822 GB, free: 3.176 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.2217, allocations: 35.98 kB / 0.5822 GB, free: 3.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007564/0.2225, allocations: 479 kB / 0.5827 GB, free: 2.676 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2225, allocations: 4 kB / 0.5827 GB, free: 2.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001803/0.2243, allocations: 0.4952 MB / 0.5831 GB, free: 2.176 MB / 462.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.2218/0.4462, allocations: 3.351 MB / 0.5864 GB, free: 96.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.4498, allocations: 3.423 MB / 0.5898 GB, free: 94.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4499, allocations: 0 / 0.5898 GB, free: 94.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002021/0.4519, allocations: 2.455 MB / 0.5922 GB, free: 93.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.4531, allocations: 317 kB / 0.5925 GB, free: 93.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/0.4742, allocations: 15.46 MB / 0.6076 GB, free: 86.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007182/0.475, allocations: 1.27 MB / 0.6088 GB, free: 85.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008629/0.4758, allocations: 353.6 kB / 0.6091 GB, free: 85.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005558/0.4764, allocations: 460 kB / 0.6096 GB, free: 85.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4764, allocations: 0 / 0.6096 GB, free: 85.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07043/0.5468, allocations: 34.44 MB / 0.6432 GB, free: 54.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.4, allocations: 11.81 kB / 0.6432 GB, free: 54.39 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)