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.001182/0.001182, allocations: 104.7 kB / 15.98 MB, free: 6.34 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.001129/0.001129, allocations: 197.8 kB / 16.91 MB, free: 6.184 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.216/1.216, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08443/0.08443, allocations: 22.33 MB / 313.1 MB, free: 9.133 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 61.5 kB / 380.9 MB, free: 41.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07113/0.07228, allocations: 54.97 MB / 435.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.004602/0.07691, allocations: 4.573 MB / 440.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.07861, allocations: 1.274 MB / 441.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.07883, allocations: 15.94 kB / 441.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.07911, allocations: 131.1 kB / 441.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005405/0.07967, allocations: 393.9 kB / 442.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.08023, allocations: 271.7 kB / 442.5 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001526/0.08177, allocations: 2.15 MB / 444.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001357/0.08313, allocations: 1.602 MB / 446.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006746/0.08382, allocations: 0.8222 MB / 447.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009651/0.08479, allocations: 1.067 MB / 448.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002248/0.08503, allocations: 236 kB / 448.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.08529, allocations: 236 kB / 448.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004581/0.08575, allocations: 0.7015 MB / 449.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006948/0.08646, allocations: 0.9184 MB / 450.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.08784, allocations: 2.116 MB / 452.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08785, allocations: 0 / 452.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.08786, allocations: 0 / 452.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.08788, allocations: 3.938 kB / 452.4 MB, free: 12.93 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.003717/0.0916, allocations: 2.015 MB / 454.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.09164, allocations: 8.031 kB / 454.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.09189, allocations: 147.2 kB / 454.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.09294, allocations: 0.8603 MB / 455.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.681e-05/0.09304, allocations: 120.5 kB / 455.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002085/0.09326, allocations: 136.2 kB / 455.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002331/0.09559, allocations: 1.589 MB / 457.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.09563, allocations: 4 kB / 457.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.09576, allocations: 48 kB / 457.3 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.09579, allocations: 28 kB / 457.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002046/0.09784, allocations: 1.423 MB / 458.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008382/0.1062, allocations: 7.16 MB / 465.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004471/0.1107, allocations: 1.889 MB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009727/0.1117, allocations: 0.73 MB / 468.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.426e-05/0.1118, allocations: 16.98 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.1118, allocations: 43.56 kB / 468.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.615e-06/0.1118, allocations: 0 / 468.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006334/0.1182, allocations: 3.936 MB / 472.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.1182, allocations: 64.41 kB / 472.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007553/0.119, allocations: 0.6877 MB / 473.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.387e-05/0.1191, allocations: 41.7 kB / 473.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002771/0.1194, allocations: 0.4993 MB / 473.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003226/0.1197, allocations: 414.2 kB / 474.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003843/0.1201, allocations: 235.5 kB / 474.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1202, allocations: 410.7 kB / 474.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.1214, allocations: 0.85 MB / 475.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.1226, allocations: 1.008 MB / 476.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/0.1345, allocations: 4.462 MB / 481.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1345, allocations: 0 / 481.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004063/0.1386, allocations: 2.464 MB / 483.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.1386, allocations: 8 kB / 483.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1387, allocations: 4 kB / 483.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.1403, allocations: 0.5356 MB / 484.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.142, allocations: 403.5 kB / 484.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.1566, allocations: 23.04 MB / 0.4957 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.1578, allocations: 158.8 kB / 0.4959 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.158, allocations: 44 kB / 0.4959 GB, free: 2.047 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.0007579/0.1588, allocations: 443.6 kB / 0.4963 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/0.159, allocations: 86.97 kB / 0.4964 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/0.1624, allocations: 1.979 MB / 0.4983 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.1624, allocations: 12 kB / 0.4983 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.1624, allocations: 7.938 kB / 0.4984 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.1624, allocations: 7.969 kB / 0.4984 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005036/0.1675, allocations: 3.547 MB / 0.5018 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1675, allocations: 3.938 kB / 0.5018 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/0.1694, allocations: 335.6 kB / 0.5021 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.1706, allocations: 484.7 kB / 0.5026 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.1708, allocations: 63.97 kB / 0.5027 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1636/0.3344, allocations: 22.16 MB / 0.5243 GB, free: 68.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3344, allocations: 4.125 kB / 0.5243 GB, free: 68.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004089/0.3385, allocations: 2.732 MB / 0.527 GB, free: 67.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.3388, allocations: 191.7 kB / 0.5272 GB, free: 67.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.339, allocations: 62.19 kB / 0.5272 GB, free: 67.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007578/0.3398, allocations: 79.62 kB / 0.5273 GB, free: 67.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.34, allocations: 89.16 kB / 0.5274 GB, free: 67.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.087e-05/0.3401, allocations: 40.84 kB / 0.5274 GB, free: 67.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005247/0.3406, allocations: 479.6 kB / 0.5279 GB, free: 67.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3406, allocations: 1.031 kB / 0.5279 GB, free: 67.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001368/0.342, allocations: 0.5027 MB / 0.5284 GB, free: 67.48 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.000226/0.3423, allocations: 179.6 kB / 0.5285 GB, free: 67.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.3468, allocations: 3.973 MB / 0.5324 GB, free: 65.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.3469, allocations: 0 / 0.5324 GB, free: 65.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00231/0.3492, allocations: 2.458 MB / 0.5348 GB, free: 64.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.3504, allocations: 312.3 kB / 0.5351 GB, free: 64.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008068/0.3585, allocations: 6.142 MB / 0.5411 GB, free: 61.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008523/0.3594, allocations: 1.26 MB / 0.5424 GB, free: 60.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005453/0.3599, allocations: 81.92 kB / 0.5424 GB, free: 60.29 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.36, allocations: 0 / 0.5424 GB, free: 60.29 MB / 398.1 MB Notification: Performance of Templates: time 0.05522/0.4152, allocations: 81.05 MB / 0.6216 GB, free: 2.195 MB / 414.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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)