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.001323/0.001323, allocations: 104.6 kB / 16.27 MB, free: 6.414 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.001411/0.001411, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.335/1.335, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09301/0.09301, allocations: 22.33 MB / 313.4 MB, free: 8.953 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 63.94 kB / 381.5 MB, free: 41.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08049/0.08188, allocations: 54.96 MB / 436.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004475/0.08639, allocations: 3.32 MB / 439.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.08788, allocations: 0.9391 MB / 440.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.08805, allocations: 15.94 kB / 440.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.08837, allocations: 103.1 kB / 440.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.08882, allocations: 246.5 kB / 441 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004696/0.0893, allocations: 195.6 kB / 441.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.09031, allocations: 1.221 MB / 442.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008864/0.0912, allocations: 0.8902 MB / 443.3 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000418/0.09163, allocations: 478.8 kB / 443.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006162/0.09226, allocations: 0.5647 MB / 444.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.09242, allocations: 132 kB / 444.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.09263, allocations: 140 kB / 444.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003172/0.09295, allocations: 399 kB / 445 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004957/0.09346, allocations: 0.5408 MB / 445.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.09459, allocations: 1.445 MB / 447 MB, free: 2.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.09461, allocations: 0 / 447 MB, free: 2.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09461, allocations: 0 / 447 MB, free: 2.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.09463, allocations: 0 / 447 MB, free: 2.383 MB / 318.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.00244/0.09707, allocations: 1.287 MB / 448.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.09711, allocations: 12.03 kB / 448.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.09729, allocations: 87.91 kB / 448.4 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007757/0.09807, allocations: 0.5621 MB / 449 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.873e-05/0.09816, allocations: 80.27 kB / 449 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.09831, allocations: 84.28 kB / 449.1 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.09981, allocations: 0.9328 MB / 450.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.09984, allocations: 0 / 450.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.377e-05/0.09993, allocations: 24 kB / 450.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.09996, allocations: 20 kB / 450.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.1013, allocations: 0.8159 MB / 450.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005581/0.1069, allocations: 3.978 MB / 454.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002692/0.1096, allocations: 1.025 MB / 455.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006059/0.1102, allocations: 414.4 kB / 456.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.534e-05/0.1103, allocations: 4.562 kB / 456.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.1103, allocations: 39.12 kB / 456.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.375e-06/0.1103, allocations: 0 / 456.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004166/0.1145, allocations: 2.362 MB / 458.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.1146, allocations: 59.97 kB / 458.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004773/0.115, allocations: 413.7 kB / 459.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.1151, allocations: 33.7 kB / 459.2 MB, free: 5.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.1153, allocations: 327.9 kB / 459.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.1155, allocations: 232.7 kB / 459.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.1157, allocations: 122.6 kB / 459.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1159, allocations: 370.8 kB / 460.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.1166, allocations: 451.6 kB / 460.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006952/0.1173, allocations: 0.5043 MB / 461.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00706/0.1243, allocations: 2.363 MB / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1243, allocations: 0 / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002417/0.1268, allocations: 1.344 MB / 464.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.1268, allocations: 7.938 kB / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1268, allocations: 0 / 464.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.1279, allocations: 344.3 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000868/0.1288, allocations: 187.8 kB / 465.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.1397, allocations: 15.15 MB / 480.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005746/0.1403, allocations: 67.38 kB / 480.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.859e-05/0.1404, allocations: 31.98 kB / 480.7 MB, free: 14.49 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: 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.0005161/0.1409, allocations: 291.7 kB / 481 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.141, allocations: 51.34 kB / 481 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.1432, allocations: 1.139 MB / 482.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.1432, allocations: 7.984 kB / 482.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.527e-06/0.1433, allocations: 4 kB / 482.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1433, allocations: 0 / 482.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.1467, allocations: 2.13 MB / 484.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.1467, allocations: 48 / 484.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/0.1477, allocations: 175.8 kB / 484.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008375/0.1485, allocations: 300.4 kB / 484.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.172e-05/0.1486, allocations: 35.97 kB / 484.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/0.1587, allocations: 14.71 MB / 499.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.1587, allocations: 3.938 kB / 499.5 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.1613, allocations: 1.598 MB / 0.4894 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.1615, allocations: 148.3 kB / 0.4895 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.1617, allocations: 32.12 kB / 0.4895 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.1621, allocations: 35.95 kB / 0.4896 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1623, allocations: 52.44 kB / 0.4896 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.1623, allocations: 19.98 kB / 0.4896 GB, free: 8.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.1627, allocations: 291.2 kB / 0.4899 GB, free: 7.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1627, allocations: 0 / 0.4899 GB, free: 7.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009391/0.1636, allocations: 295.4 kB / 0.4902 GB, free: 7.551 MB / 382.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.0001879/0.1638, allocations: 151.6 kB / 0.4903 GB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002926/0.1667, allocations: 2.212 MB / 0.4925 GB, free: 5.055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.1668, allocations: 4 kB / 0.4925 GB, free: 5.051 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.1684, allocations: 1.542 MB / 0.494 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007591/0.1692, allocations: 169.3 kB / 0.4942 GB, free: 3.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005297/0.1745, allocations: 3.116 MB / 0.4972 GB, free: 60 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007579/0.1753, allocations: 1.016 MB / 0.4982 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.1755, allocations: 47.42 kB / 0.4982 GB, free: 14.97 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1755, allocations: 0 / 0.4982 GB, free: 14.97 MB / 398.1 MB Notification: Performance of Templates: time 0.1899/0.3655, allocations: 35.79 MB / 0.5332 GB, free: 72.65 MB / 398.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)