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.001024/0.001024, allocations: 114.1 kB / 16.37 MB, free: 6.344 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.001155/0.001155, allocations: 186 kB / 17.3 MB, free: 5.898 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0882/0.0882, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.91 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 54.95 MB / 492.6 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004075/0.1157, allocations: 3.347 MB / 496 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1174, allocations: 0.9313 MB / 496.9 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1176, allocations: 7.938 kB / 496.9 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002333/0.1178, allocations: 99.16 kB / 497 MB, free: 404 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.1182, allocations: 254.4 kB / 497.2 MB, free: 148 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005358/0.1188, allocations: 187.8 kB / 497.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.1199, allocations: 1.236 MB / 498.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001024/0.121, allocations: 0.8863 MB / 499.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006188/0.1216, allocations: 482.8 kB / 0.4883 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007188/0.1223, allocations: 0.5647 MB / 0.4889 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.1225, allocations: 136 kB / 0.489 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.1227, allocations: 136 kB / 0.4891 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003149/0.123, allocations: 399 kB / 0.4895 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005254/0.1235, allocations: 0.5331 MB / 0.49 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1246, allocations: 1.457 MB / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1246, allocations: 0 / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1246, allocations: 0 / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.1247, allocations: 0 / 0.4914 GB, free: 10.13 MB / 382.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.002493/0.1272, allocations: 1.287 MB / 0.4927 GB, free: 8.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1272, allocations: 12.03 kB / 0.4927 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.1274, allocations: 87.91 kB / 0.4928 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007343/0.1281, allocations: 0.5621 MB / 0.4933 GB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.1282, allocations: 88.27 kB / 0.4934 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.1284, allocations: 76.28 kB / 0.4935 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.1299, allocations: 0.9328 MB / 0.4944 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1299, allocations: 0 / 0.4944 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.912e-05/0.13, allocations: 24 kB / 0.4944 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.13, allocations: 20 kB / 0.4944 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.1313, allocations: 0.812 MB / 0.4952 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005616/0.137, allocations: 3.946 MB / 0.4991 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002626/0.1396, allocations: 1.024 MB / 0.5001 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006417/0.1403, allocations: 414.4 kB / 0.5005 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.1404, allocations: 8.562 kB / 0.5005 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1404, allocations: 47.12 kB / 0.5005 GB, free: 420 kB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.675e-06/0.1404, allocations: 0 / 0.5005 GB, free: 420 kB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.1996/0.34, allocations: 2.355 MB / 0.5028 GB, free: 21.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.3401, allocations: 57.89 kB / 0.5029 GB, free: 21.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.3405, allocations: 420.8 kB / 0.5033 GB, free: 21.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.3406, allocations: 37.52 kB / 0.5033 GB, free: 20.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3407, allocations: 326 kB / 0.5036 GB, free: 20.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.3409, allocations: 230 kB / 0.5039 GB, free: 20.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.3411, allocations: 127.5 kB / 0.504 GB, free: 20.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.826e-05/0.3412, allocations: 373.6 kB / 0.5043 GB, free: 20.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005626/0.3418, allocations: 454 kB / 0.5048 GB, free: 20.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006088/0.3424, allocations: 0.4887 MB / 0.5053 GB, free: 20.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006505/0.3489, allocations: 2.356 MB / 0.5076 GB, free: 20.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3489, allocations: 1.219 kB / 0.5076 GB, free: 20.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002274/0.3512, allocations: 1.336 MB / 0.5089 GB, free: 20.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.3513, allocations: 10.47 kB / 0.5089 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3513, allocations: 2.344 kB / 0.5089 GB, free: 20.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.3523, allocations: 346.2 kB / 0.5092 GB, free: 19.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008637/0.3532, allocations: 184.9 kB / 0.5094 GB, free: 19.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007706/0.3609, allocations: 15.16 MB / 0.5242 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006381/0.3616, allocations: 67.27 kB / 0.5242 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.26e-05/0.3616, allocations: 21.44 kB / 0.5243 GB, free: 6.258 MB / 382.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.0004911/0.3621, allocations: 285.6 kB / 0.5245 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3622, allocations: 56.69 kB / 0.5246 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.3642, allocations: 1.138 MB / 0.5257 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3643, allocations: 9.906 kB / 0.5257 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3643, allocations: 2.906 kB / 0.5257 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.3643, allocations: 2.719 kB / 0.5257 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.3675, allocations: 2.117 MB / 0.5278 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3676, allocations: 7.25 kB / 0.5278 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.3686, allocations: 165.8 kB / 0.5279 GB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008677/0.3695, allocations: 306.7 kB / 0.5282 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.485e-05/0.3695, allocations: 35.36 kB / 0.5283 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009408/0.379, allocations: 14.71 MB / 0.5426 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.379, allocations: 9.891 kB / 0.5426 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.3818, allocations: 1.598 MB / 0.5442 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.382, allocations: 144.3 kB / 0.5443 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3821, allocations: 33.72 kB / 0.5444 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.3826, allocations: 25.16 kB / 0.5444 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3827, allocations: 62.34 kB / 0.5445 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.226e-05/0.3828, allocations: 18.02 kB / 0.5445 GB, free: 5.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003787/0.3832, allocations: 290.9 kB / 0.5448 GB, free: 5.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3832, allocations: 7.828 kB / 0.5448 GB, free: 5.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3843, allocations: 298.7 kB / 0.545 GB, free: 5.32 MB / 398.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.0002013/0.3845, allocations: 150.1 kB / 0.5452 GB, free: 5.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002587/0.3871, allocations: 2.038 MB / 0.5472 GB, free: 3.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3871, allocations: 0 / 0.5472 GB, free: 3.723 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.3887, allocations: 1.556 MB / 0.5487 GB, free: 2.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007481/0.3895, allocations: 166 kB / 0.5489 GB, free: 2.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004858/0.3944, allocations: 3.101 MB / 0.5519 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006357/0.395, allocations: 1.018 MB / 0.5529 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.3953, allocations: 44.34 kB / 0.5529 GB, free: 15.78 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3953, allocations: 0 / 0.5529 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Templates: time 0.0357/0.431, allocations: 35.79 MB / 0.5879 GB, free: 14.88 MB / 446.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)