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.0014/0.0014, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00172/0.00172, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2177/0.2177, allocations: 22.34 MB / 313.3 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.0003071, allocations: 8 kB / 381.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2787, allocations: 55.98 MB / 437.9 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003496/0.2823, allocations: 3.617 MB / 441.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.2845, allocations: 1.297 MB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005012/0.2851, allocations: 11.16 kB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.2854, allocations: 131.2 kB / 443 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000671/0.2861, allocations: 287.8 kB / 443.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006603/0.2868, allocations: 195.2 kB / 443.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.288, allocations: 1.121 MB / 444.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.2893, allocations: 1.109 MB / 445.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007954/0.2901, allocations: 0.563 MB / 446.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009532/0.291, allocations: 0.6612 MB / 446.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.2913, allocations: 91.94 kB / 447 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003072/0.2917, allocations: 92.56 kB / 447.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003892/0.2921, allocations: 499.7 kB / 447.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.2925, allocations: 305.6 kB / 447.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.2937, allocations: 2.047 MB / 449.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2937, allocations: 3.938 kB / 449.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2937, allocations: 2.688 kB / 449.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.2938, allocations: 0 / 449.9 MB, free: 33.12 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.00323/0.297, allocations: 1.788 MB / 451.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.2971, allocations: 7.656 kB / 451.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002118/0.2973, allocations: 185.6 kB / 451.9 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.2975, allocations: 145.2 kB / 452 MB, free: 32.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.2987, allocations: 0.8357 MB / 452.9 MB, free: 31.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/0.2988, allocations: 126.4 kB / 453 MB, free: 31.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001927/0.299, allocations: 142.7 kB / 453.1 MB, free: 31.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.3011, allocations: 1.567 MB / 454.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3011, allocations: 0 / 454.7 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.3012, allocations: 54 kB / 454.7 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.3013, allocations: 26.22 kB / 454.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002432/0.3037, allocations: 1.41 MB / 456.2 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.3147, allocations: 7.2 MB / 463.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005236/0.32, allocations: 1.879 MB / 465.3 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.3201, allocations: 14.48 kB / 465.3 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.3202, allocations: 48 kB / 465.3 MB, free: 24.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 7.855e-06/0.3202, allocations: 9.297 kB / 465.3 MB, free: 24.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.008111/0.3283, allocations: 3.991 MB / 469.3 MB, free: 22.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.3284, allocations: 62.69 kB / 469.4 MB, free: 22.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.33, allocations: 0.6813 MB / 470.1 MB, free: 21.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.3302, allocations: 41.27 kB / 470.1 MB, free: 21.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.3306, allocations: 0.5056 MB / 470.6 MB, free: 21.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004295/0.331, allocations: 409.6 kB / 471 MB, free: 21.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.3311, allocations: 25.5 kB / 471 MB, free: 21.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3313, allocations: 417.5 kB / 471.4 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.3327, allocations: 0.84 MB / 472.3 MB, free: 20.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.3342, allocations: 1 MB / 473.3 MB, free: 19.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/0.3357, allocations: 0.9488 MB / 474.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.3357, allocations: 1.312 kB / 474.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004621/0.3403, allocations: 2.479 MB / 476.7 MB, free: 18.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.3404, allocations: 10.73 kB / 476.7 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3404, allocations: 6.156 kB / 476.7 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.3422, allocations: 0.5476 MB / 477.3 MB, free: 18.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001845/0.344, allocations: 390.8 kB / 477.7 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.3575, allocations: 21.61 MB / 499.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.3591, allocations: 149.5 kB / 499.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003479/0.3595, allocations: 56.17 kB / 499.5 MB, free: 12.37 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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001195/0.3607, allocations: 421.3 kB / 499.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003735/0.3611, allocations: 90.88 kB / 500 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003819/0.3649, allocations: 1.979 MB / 0.4902 GB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.365, allocations: 15.95 kB / 0.4902 GB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.365, allocations: 4 kB / 0.4902 GB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.365, allocations: 3.984 kB / 0.4902 GB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/0.3712, allocations: 3.551 MB / 0.4937 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3712, allocations: 0 / 0.4937 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/0.3731, allocations: 343.8 kB / 0.494 GB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.3745, allocations: 480.5 kB / 0.4945 GB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.3748, allocations: 67.92 kB / 0.4945 GB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/0.3915, allocations: 20.73 MB / 0.5148 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.3916, allocations: 3.984 kB / 0.5148 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005673/0.3973, allocations: 2.826 MB / 0.5175 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004912/0.3978, allocations: 199.7 kB / 0.5177 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/0.3981, allocations: 67.95 kB / 0.5178 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009741/0.3991, allocations: 75.77 kB / 0.5179 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.3994, allocations: 88.81 kB / 0.5179 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/0.3995, allocations: 31.98 kB / 0.518 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006805/0.4002, allocations: 479 kB / 0.5184 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4002, allocations: 0 / 0.5184 GB, free: 10.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002112/0.4023, allocations: 0.4991 MB / 0.5189 GB, free: 10.07 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00534/0.4077, allocations: 3.997 MB / 0.5228 GB, free: 5.945 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00464/0.4124, allocations: 3.428 MB / 0.5262 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.4124, allocations: 0 / 0.5262 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002795/0.4152, allocations: 2.464 MB / 0.5286 GB, free: 15.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.4164, allocations: 288 kB / 0.5288 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.431, allocations: 10.73 MB / 0.5393 GB, free: 4.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.4323, allocations: 1.287 MB / 0.5406 GB, free: 3.184 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001387/0.4337, allocations: 351.6 kB / 0.5409 GB, free: 2.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008353/0.4346, allocations: 455.3 kB / 0.5413 GB, free: 2.391 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4346, allocations: 4 kB / 0.5413 GB, free: 2.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1935/0.6282, allocations: 31.31 MB / 0.5719 GB, free: 3.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.6285, allocations: 212.6 kB / 0.5721 GB, free: 3.246 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.186, allocations: 0 / 0.5721 GB, free: 3.246 MB / 446.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/linux/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) Environment - environmentSimulation: