Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",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.0009269/0.0009267, allocations: 99.7 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.0009555/0.0009555, 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.326/1.326, 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.204/0.204, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.000329, allocations: 8 kB / 381.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2842, allocations: 55.98 MB / 437.9 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004061/0.2883, allocations: 2.753 MB / 440.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.2905, allocations: 0.9442 MB / 441.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.2908, allocations: 9.156 kB / 441.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.291, allocations: 80.44 kB / 441.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004468/0.2915, allocations: 178.3 kB / 441.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006216/0.2922, allocations: 131.5 kB / 442 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009657/0.2931, allocations: 0.6567 MB / 442.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009973/0.2942, allocations: 0.6304 MB / 443.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004895/0.2947, allocations: 335.8 kB / 443.6 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.2954, allocations: 393.3 kB / 444 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.2955, allocations: 57.97 kB / 444 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.2957, allocations: 59.06 kB / 444.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002933/0.296, allocations: 280.5 kB / 444.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.2962, allocations: 191.6 kB / 444.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.2974, allocations: 1.145 MB / 445.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2974, allocations: 0 / 445.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2974, allocations: 0 / 445.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.2974, allocations: 0 / 445.7 MB, free: 34.98 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.003487/0.3009, allocations: 1.156 MB / 446.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.301, allocations: 12.31 kB / 446.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002151/0.3012, allocations: 126.6 kB / 447 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002328/0.3015, allocations: 92.12 kB / 447.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.3027, allocations: 0.5455 MB / 447.6 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.294e-05/0.3028, allocations: 80.77 kB / 447.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/0.303, allocations: 82.3 kB / 447.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.3054, allocations: 0.9187 MB / 448.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.3054, allocations: 0 / 448.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.3056, allocations: 28.09 kB / 448.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.3056, allocations: 17.12 kB / 448.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002201/0.3078, allocations: 0.8016 MB / 449.5 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008865/0.3167, allocations: 4 MB / 453.5 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0046/0.3214, allocations: 1.022 MB / 454.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.324e-05/0.3214, allocations: 9.641 kB / 454.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.3215, allocations: 46.53 kB / 454.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 4.429e-06/0.3215, allocations: 3.984 kB / 454.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.006744/0.3283, allocations: 2.389 MB / 457 MB, free: 28.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.3283, allocations: 58.5 kB / 457.1 MB, free: 28.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007772/0.3291, allocations: 410.6 kB / 457.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/0.3292, allocations: 36.45 kB / 457.5 MB, free: 28.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.3295, allocations: 324.4 kB / 457.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002792/0.3298, allocations: 233.8 kB / 458.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.506e-05/0.3299, allocations: 15.09 kB / 458.1 MB, free: 27.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.33, allocations: 372.6 kB / 458.4 MB, free: 27.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3312, allocations: 449.6 kB / 458.9 MB, free: 27.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.3323, allocations: 496.8 kB / 459.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3334, allocations: 0.4939 MB / 459.9 MB, free: 26.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.3334, allocations: 1.344 kB / 459.9 MB, free: 26.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003861/0.3373, allocations: 1.337 MB / 461.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.3374, allocations: 6.25 kB / 461.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3374, allocations: 1.219 kB / 461.2 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.3389, allocations: 345.7 kB / 461.5 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.3402, allocations: 190.1 kB / 461.7 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009442/0.3496, allocations: 14.19 MB / 475.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007843/0.3504, allocations: 72.8 kB / 476 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.477e-05/0.3505, allocations: 22.27 kB / 476 MB, free: 12.02 MB / 350.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: 7 * 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 (79): * Single equations (assignments): 69 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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.0005765/0.3511, allocations: 289.4 kB / 476.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.3512, allocations: 52.09 kB / 476.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.3533, allocations: 1.135 MB / 477.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3533, allocations: 6.125 kB / 477.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3533, allocations: 4.203 kB / 477.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3534, allocations: 6.75 kB / 477.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003993/0.3574, allocations: 2.124 MB / 479.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.3574, allocations: 1.25 kB / 479.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/0.3589, allocations: 170.8 kB / 479.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.3602, allocations: 310.1 kB / 480.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.3604, allocations: 39.38 kB / 480.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/0.3736, allocations: 13.76 MB / 493.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.3736, allocations: 1.344 kB / 493.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00438/0.378, allocations: 1.638 MB / 495.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.3785, allocations: 152.3 kB / 495.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.3788, allocations: 30.91 kB / 495.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/0.3797, allocations: 33.5 kB / 495.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.38, allocations: 54.11 kB / 495.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.755e-05/0.3801, allocations: 19.06 kB / 495.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007177/0.3808, allocations: 295.6 kB / 496.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3809, allocations: 0 / 496.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002017/0.3829, allocations: 299.6 kB / 496.4 MB, free: 11.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (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]) * 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 (49): * Single equations (assignments): 39 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(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.005783/0.3887, allocations: 2.493 MB / 498.9 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004693/0.3934, allocations: 2.042 MB / 0.4892 GB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.3935, allocations: 1.062 kB / 0.4892 GB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.3967, allocations: 1.556 MB / 0.4907 GB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.3981, allocations: 158.9 kB / 0.4909 GB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.4115, allocations: 5.071 MB / 0.4958 GB, free: 3.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.4127, allocations: 1.034 MB / 0.4968 GB, free: 2.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.4138, allocations: 172.9 kB / 0.497 GB, free: 2.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006409/0.4145, allocations: 258.3 kB / 0.4972 GB, free: 1.863 MB / 366.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4145, allocations: 0 / 0.4972 GB, free: 1.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04922/0.4638, allocations: 17.86 MB / 0.5147 GB, free: 364 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002874/0.4641, allocations: 214.3 kB / 0.5149 GB, free: 112 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.586, allocations: 0 / 0.5149 GB, free: 112 kB / 382.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) Environment - environmentSimulation: