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.001278/0.001278, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001363/0.001363, allocations: 195 kB / 16.14 MB, free: 6.656 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.348/1.348, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.218/0.218, allocations: 22.37 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 63.91 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2922, allocations: 54.94 MB / 435.1 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003692/0.2959, allocations: 3.504 MB / 438.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.2973, allocations: 0.9506 MB / 439.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.2975, allocations: 13.56 kB / 439.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.2977, allocations: 74.23 kB / 439.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003421/0.2981, allocations: 237.6 kB / 439.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.2985, allocations: 175.5 kB / 440 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009432/0.2995, allocations: 1.5 MB / 441.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006406/0.3001, allocations: 0.7458 MB / 442.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.3005, allocations: 395.6 kB / 442.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004907/0.301, allocations: 0.5662 MB / 443.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.3011, allocations: 70.16 kB / 443.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.3012, allocations: 72.41 kB / 443.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.3015, allocations: 333.2 kB / 443.7 MB, free: 34.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003361/0.3018, allocations: 477.3 kB / 444.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007405/0.3025, allocations: 1.404 MB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3026, allocations: 0 / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3026, allocations: 4 kB / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.3026, allocations: 0 / 445.5 MB, free: 33.85 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.002179/0.3048, allocations: 1.288 MB / 446.8 MB, free: 33.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3048, allocations: 15.91 kB / 446.8 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.305, allocations: 86.5 kB / 446.9 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.3056, allocations: 0.5556 MB / 447.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.3057, allocations: 84.77 kB / 447.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.3058, allocations: 87.11 kB / 447.6 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.3071, allocations: 0.9262 MB / 448.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.3071, allocations: 0 / 448.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/0.3072, allocations: 30.09 kB / 448.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3072, allocations: 20.91 kB / 448.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3083, allocations: 0.8096 MB / 449.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/0.3128, allocations: 3.965 MB / 453.4 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00241/0.3152, allocations: 1.027 MB / 454.4 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005816/0.3158, allocations: 427.9 kB / 454.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.88e-05/0.3159, allocations: 6.125 kB / 454.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.3159, allocations: 37.59 kB / 454.9 MB, free: 28.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.974e-06/0.3159, allocations: 1.406 kB / 454.9 MB, free: 28.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003663/0.3196, allocations: 2.36 MB / 457.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.3196, allocations: 60.44 kB / 457.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005159/0.3202, allocations: 410.9 kB / 457.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.3202, allocations: 40.3 kB / 457.7 MB, free: 26.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.3204, allocations: 332.3 kB / 458.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.3206, allocations: 232.2 kB / 458.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.3209, allocations: 121.3 kB / 458.4 MB, free: 26.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.321, allocations: 371.7 kB / 458.8 MB, free: 25.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006782/0.3217, allocations: 453.3 kB / 459.2 MB, free: 25.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006783/0.3223, allocations: 0.4896 MB / 459.7 MB, free: 25.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006691/0.329, allocations: 2.354 MB / 462.1 MB, free: 24.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.3291, allocations: 1.438 kB / 462.1 MB, free: 24.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002247/0.3313, allocations: 1.341 MB / 463.4 MB, free: 24.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3313, allocations: 9.125 kB / 463.4 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3314, allocations: 2.109 kB / 463.4 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009974/0.3324, allocations: 349.1 kB / 463.8 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008231/0.3332, allocations: 189.9 kB / 463.9 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007289/0.3405, allocations: 14.06 MB / 478 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.3412, allocations: 82.55 kB / 478.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.3412, allocations: 22.5 kB / 478.1 MB, free: 10.12 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.0004897/0.3417, allocations: 279.2 kB / 478.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.3418, allocations: 53.25 kB / 478.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.3437, allocations: 1.139 MB / 479.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.3438, allocations: 9.891 kB / 479.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.3438, allocations: 10.59 kB / 479.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.3438, allocations: 4.172 kB / 479.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.3468, allocations: 2.108 MB / 481.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3468, allocations: 5.312 kB / 481.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009286/0.3477, allocations: 171.6 kB / 481.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000741/0.3485, allocations: 313.7 kB / 482.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.261e-05/0.3485, allocations: 32.62 kB / 482.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007847/0.3564, allocations: 13.66 MB / 495.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3564, allocations: 6.109 kB / 495.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00295/0.3594, allocations: 1.595 MB / 497.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.3596, allocations: 145.3 kB / 497.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.3597, allocations: 34.19 kB / 497.7 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004315/0.3601, allocations: 38.41 kB / 497.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.3603, allocations: 53.28 kB / 497.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/0.3604, allocations: 18.45 kB / 497.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004005/0.3608, allocations: 295.5 kB / 498 MB, free: 9.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3608, allocations: 4 kB / 498.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001409/0.3622, allocations: 300 kB / 498.3 MB, free: 9.293 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.000238/0.3624, allocations: 138.6 kB / 498.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.3654, allocations: 2.036 MB / 0.4888 GB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3654, allocations: 1.469 kB / 0.4888 GB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00176/0.3672, allocations: 1.548 MB / 0.4903 GB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008516/0.3681, allocations: 170.3 kB / 0.4905 GB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.3735, allocations: 3.355 MB / 0.4937 GB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.3743, allocations: 1.009 MB / 0.4947 GB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005171/0.3748, allocations: 168.6 kB / 0.4949 GB, free: 2.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.375, allocations: 43.42 kB / 0.4949 GB, free: 2.383 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.375, allocations: 4 kB / 0.4949 GB, free: 2.379 MB / 366.1 MB Notification: Performance of Templates: time 0.01952/0.3945, allocations: 12.45 MB / 0.5071 GB, free: 6.082 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)