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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 108 kB / 15.6 MB, free: 132 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.001961/0.001961, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2114/0.2114, allocations: 22.35 MB / 312.7 MB, free: 12.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 67.89 kB / 380.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.326, allocations: 54.94 MB / 435.8 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.00507/0.3312, allocations: 3.339 MB / 439.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3326, allocations: 0.9375 MB / 440 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.3328, allocations: 9.75 kB / 440.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.333, allocations: 110.6 kB / 440.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003984/0.3334, allocations: 242.6 kB / 440.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006099/0.334, allocations: 196.6 kB / 440.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.3352, allocations: 1.225 MB / 441.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009758/0.3362, allocations: 0.8786 MB / 442.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.3366, allocations: 486.5 kB / 443.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005847/0.3372, allocations: 0.5653 MB / 443.7 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.3374, allocations: 131.2 kB / 443.9 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.3376, allocations: 134.1 kB / 444 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.3378, allocations: 402.5 kB / 444.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004602/0.3383, allocations: 0.5375 MB / 444.9 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.3394, allocations: 1.444 MB / 446.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3394, allocations: 0 / 446.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3395, allocations: 0 / 446.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.737e-05/0.3395, allocations: 0 / 446.4 MB, free: 33.79 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.002547/0.342, allocations: 1.283 MB / 447.7 MB, free: 33.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3421, allocations: 14.31 kB / 447.7 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.3423, allocations: 92.72 kB / 447.8 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000716/0.343, allocations: 0.5652 MB / 448.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.361e-05/0.3431, allocations: 83.05 kB / 448.4 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.3432, allocations: 79.38 kB / 448.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3445, allocations: 0.937 MB / 449.4 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.3446, allocations: 0 / 449.4 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.529e-05/0.3447, allocations: 29.25 kB / 449.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3447, allocations: 18.56 kB / 449.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.3458, allocations: 0.8087 MB / 450.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004884/0.3507, allocations: 3.976 MB / 454.3 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.3533, allocations: 1.027 MB / 455.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.354, allocations: 417.3 kB / 455.7 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.174e-05/0.3541, allocations: 11.09 kB / 455.7 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.3541, allocations: 37.62 kB / 455.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.454e-06/0.3541, allocations: 0 / 455.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00405/0.3582, allocations: 2.358 MB / 458.1 MB, free: 27.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.3582, allocations: 61.25 kB / 458.2 MB, free: 26.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005793/0.3588, allocations: 416.4 kB / 458.6 MB, free: 26.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.601e-05/0.3589, allocations: 36.14 kB / 458.6 MB, free: 26.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.3591, allocations: 328.1 kB / 458.9 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.3594, allocations: 229.5 kB / 459.1 MB, free: 26.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002829/0.3597, allocations: 125.8 kB / 459.3 MB, free: 26.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3598, allocations: 367.8 kB / 459.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008739/0.3607, allocations: 452.5 kB / 460.1 MB, free: 25.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008669/0.3616, allocations: 0.4979 MB / 460.6 MB, free: 25.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007405/0.369, allocations: 2.359 MB / 462.9 MB, free: 24.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.369, allocations: 0 / 462.9 MB, free: 24.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002571/0.3716, allocations: 1.345 MB / 464.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.3716, allocations: 13 kB / 464.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.3717, allocations: 2.672 kB / 464.3 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.3728, allocations: 339.9 kB / 464.6 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/0.3737, allocations: 190.4 kB / 464.8 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009666/0.3833, allocations: 15.15 MB / 480 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000991/0.3844, allocations: 72.67 kB / 480 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.303e-05/0.3845, allocations: 22.78 kB / 480 MB, free: 9 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006848/0.3851, allocations: 293.8 kB / 480.3 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.3853, allocations: 53.38 kB / 480.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.3875, allocations: 1.139 MB / 481.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.3875, allocations: 5.594 kB / 481.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.3875, allocations: 2.625 kB / 481.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.3875, allocations: 4.734 kB / 481.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.3911, allocations: 2.115 MB / 483.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3911, allocations: 5.781 kB / 483.7 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009394/0.3921, allocations: 171.2 kB / 483.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008667/0.3929, allocations: 305.9 kB / 484.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.704e-05/0.393, allocations: 35.84 kB / 484.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01029/0.4033, allocations: 14.72 MB / 498.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.4034, allocations: 5.156 kB / 498.9 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003256/0.4067, allocations: 1.592 MB / 0.4887 GB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.407, allocations: 140.6 kB / 0.4889 GB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.4072, allocations: 39.12 kB / 0.4889 GB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004464/0.4076, allocations: 32.27 kB / 0.4889 GB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/0.4079, allocations: 61.64 kB / 0.489 GB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-05/0.4079, allocations: 18 kB / 0.489 GB, free: 7.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004785/0.4084, allocations: 290.8 kB / 0.4893 GB, free: 7.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4084, allocations: 0 / 0.4893 GB, free: 7.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001368/0.4098, allocations: 299 kB / 0.4896 GB, free: 7.148 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000246/0.41, allocations: 143.1 kB / 0.4897 GB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003524/0.4136, allocations: 2.205 MB / 0.4919 GB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.4136, allocations: 1.969 kB / 0.4919 GB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.4154, allocations: 1.556 MB / 0.4934 GB, free: 4.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.4163, allocations: 164.6 kB / 0.4935 GB, free: 3.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005681/0.422, allocations: 3.045 MB / 0.4965 GB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.4227, allocations: 1.019 MB / 0.4975 GB, free: 40 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005632/0.4232, allocations: 168.6 kB / 0.4977 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.4234, allocations: 43.44 kB / 0.4977 GB, free: 15.83 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4234, allocations: 0 / 0.4977 GB, free: 15.83 MB / 382.1 MB Notification: Performance of Templates: time 0.02579/0.4492, allocations: 12.88 MB / 0.5103 GB, free: 3.102 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)