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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001135/0.001135, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09197/0.09197, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.27 kB / 382.2 MB, free: 41.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09711/0.09854, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005415/0.104, allocations: 4.399 MB / 441.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.1064, allocations: 1.255 MB / 442.9 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003303/0.1068, allocations: 19.88 kB / 442.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003395/0.1071, allocations: 170.6 kB / 443 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006495/0.1078, allocations: 421.5 kB / 443.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007732/0.1086, allocations: 315.5 kB / 443.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.1105, allocations: 2.158 MB / 445.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001628/0.1122, allocations: 1.594 MB / 447.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008311/0.113, allocations: 0.8184 MB / 448.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.1141, allocations: 0.9854 MB / 449.3 MB, free: 52 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000322/0.1144, allocations: 236 kB / 449.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003296/0.1148, allocations: 236 kB / 449.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005299/0.1153, allocations: 0.6937 MB / 450.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008731/0.1162, allocations: 0.9261 MB / 451.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002142/0.1184, allocations: 2.587 MB / 454 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1184, allocations: 0 / 454 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1184, allocations: 0 / 454 MB, free: 11.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.1184, allocations: 4 kB / 454 MB, free: 11.36 MB / 334.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.004233/0.1226, allocations: 2.015 MB / 456 MB, free: 9.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1227, allocations: 11.97 kB / 456 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002775/0.123, allocations: 147.2 kB / 456.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.1244, allocations: 0.8681 MB / 457 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.1246, allocations: 112.6 kB / 457.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002431/0.1248, allocations: 140.2 kB / 457.3 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002404/0.1272, allocations: 1.585 MB / 458.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.1273, allocations: 0 / 458.9 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.1274, allocations: 52 kB / 458.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.1274, allocations: 28 kB / 458.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.1296, allocations: 1.423 MB / 460.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00957/0.1392, allocations: 7.121 MB / 467.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004564/0.1438, allocations: 1.89 MB / 469.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.1448, allocations: 0.7281 MB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.258e-05/0.1449, allocations: 16.98 kB / 470.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.145, allocations: 39.56 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.966e-06/0.145, allocations: 3.938 kB / 470.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006614/0.1516, allocations: 3.94 MB / 474.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.1517, allocations: 64.41 kB / 474.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00092/0.1526, allocations: 0.6915 MB / 474.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.1527, allocations: 41.7 kB / 474.9 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.153, allocations: 0.5032 MB / 475.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003524/0.1534, allocations: 414.2 kB / 475.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004047/0.1538, allocations: 235.5 kB / 476 MB, free: 4.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.154, allocations: 418.7 kB / 476.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.1552, allocations: 0.8429 MB / 477.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.1565, allocations: 1.004 MB / 478.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/0.1694, allocations: 4.447 MB / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.1694, allocations: 0 / 482.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004343/0.1738, allocations: 2.461 MB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1738, allocations: 16.02 kB / 485.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.1738, allocations: 4 kB / 485.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.1755, allocations: 0.5317 MB / 485.8 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.1772, allocations: 395.5 kB / 486.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/0.193, allocations: 23.03 MB / 0.4972 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.1944, allocations: 146.7 kB / 0.4974 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.1945, allocations: 48 kB / 0.4974 GB, free: 0.5352 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: 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 (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0008037/0.1953, allocations: 439.9 kB / 0.4978 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/0.1955, allocations: 86.97 kB / 0.4979 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.1989, allocations: 1.975 MB / 0.4998 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.1989, allocations: 8 kB / 0.4999 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1989, allocations: 4 kB / 0.4999 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.199, allocations: 15.91 kB / 0.4999 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005462/0.2044, allocations: 3.551 MB / 0.5033 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.2045, allocations: 4 kB / 0.5033 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/0.2064, allocations: 335.6 kB / 0.5037 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.2077, allocations: 484.5 kB / 0.5041 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.2078, allocations: 60.02 kB / 0.5042 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.234/0.4418, allocations: 22.15 MB / 0.5258 GB, free: 65.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.4419, allocations: 10.61 kB / 0.5258 GB, free: 65.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004358/0.4462, allocations: 2.737 MB / 0.5285 GB, free: 65.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.4465, allocations: 189.9 kB / 0.5287 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.4467, allocations: 61.95 kB / 0.5287 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007068/0.4475, allocations: 52.98 kB / 0.5288 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/0.4478, allocations: 96.53 kB / 0.5289 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-05/0.4479, allocations: 37.56 kB / 0.5289 GB, free: 65.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006805/0.4486, allocations: 481 kB / 0.5294 GB, free: 65.35 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4486, allocations: 1.125 kB / 0.5294 GB, free: 65.35 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001864/0.4504, allocations: 0.5023 MB / 0.5299 GB, free: 65.35 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 (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0003281/0.4508, allocations: 185 kB / 0.53 GB, free: 65.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004285/0.4551, allocations: 3.426 MB / 0.5334 GB, free: 63.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4551, allocations: 0 / 0.5334 GB, free: 63.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002564/0.4577, allocations: 2.456 MB / 0.5358 GB, free: 61.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/0.4589, allocations: 315.2 kB / 0.5361 GB, free: 61.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00973/0.4687, allocations: 5.506 MB / 0.5415 GB, free: 59.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.4698, allocations: 1.265 MB / 0.5427 GB, free: 58.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001284/0.4711, allocations: 354.4 kB / 0.543 GB, free: 58.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.4714, allocations: 75.11 kB / 0.5431 GB, free: 58.7 MB / 398.1 MB Notification: Performance of SimCode: time 1.943e-06/0.4714, allocations: 0 / 0.5431 GB, free: 58.7 MB / 398.1 MB Notification: Performance of Templates: time 0.03154/0.503, allocations: 22.74 MB / 0.5653 GB, free: 43.86 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)