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.001424/0.001424, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001625/0.001626, allocations: 190.8 kB / 16.25 MB, free: 6.641 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.332/1.332, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1947/0.1947, allocations: 22.34 MB / 312.4 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 380.3 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2818, allocations: 54.94 MB / 435.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003503/0.2854, allocations: 3.496 MB / 438.7 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.2867, allocations: 0.9494 MB / 439.7 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.2869, allocations: 14.72 kB / 439.7 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001988/0.2871, allocations: 72.67 kB / 439.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003255/0.2874, allocations: 245.3 kB / 440 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004008/0.2879, allocations: 162.7 kB / 440.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007475/0.2886, allocations: 1.225 MB / 441.4 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007037/0.2893, allocations: 0.8778 MB / 442.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003616/0.2897, allocations: 489.8 kB / 442.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.2902, allocations: 0.6028 MB / 443.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.2904, allocations: 131.8 kB / 443.5 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.2905, allocations: 137.3 kB / 443.6 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00023/0.2908, allocations: 397 kB / 444 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003513/0.2911, allocations: 0.5307 MB / 444.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008039/0.2919, allocations: 1.457 MB / 446 MB, free: 33.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.292, allocations: 2.656 kB / 446 MB, free: 33.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.292, allocations: 0 / 446 MB, free: 33.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.292, allocations: 0 / 446 MB, free: 33.57 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.002336/0.2943, allocations: 1.283 MB / 447.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2944, allocations: 8.875 kB / 447.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.2946, allocations: 94.91 kB / 447.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.2952, allocations: 0.5612 MB / 447.9 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.468e-05/0.2953, allocations: 83.98 kB / 448 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.2954, allocations: 81.97 kB / 448.1 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.2967, allocations: 0.9313 MB / 449 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.2968, allocations: 0 / 449 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.523e-05/0.2968, allocations: 27.47 kB / 449 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.2969, allocations: 18.38 kB / 449.1 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.298, allocations: 0.8128 MB / 449.9 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004518/0.3025, allocations: 3.971 MB / 453.8 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.3051, allocations: 1.028 MB / 454.9 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005644/0.3056, allocations: 412.4 kB / 455.3 MB, free: 28.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.349e-05/0.3057, allocations: 10.36 kB / 455.3 MB, free: 28.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.3057, allocations: 38.53 kB / 455.3 MB, free: 28.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.084e-06/0.3057, allocations: 4 kB / 455.3 MB, free: 28.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.00369/0.3094, allocations: 2.363 MB / 457.7 MB, free: 26.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.3095, allocations: 58.62 kB / 457.7 MB, free: 26.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005409/0.31, allocations: 412 kB / 458.1 MB, free: 26.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/0.3101, allocations: 36.14 kB / 458.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.3104, allocations: 331.9 kB / 458.5 MB, free: 26.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/0.3107, allocations: 227.9 kB / 458.7 MB, free: 26.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003247/0.311, allocations: 125.2 kB / 458.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3112, allocations: 369.3 kB / 459.2 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007626/0.3119, allocations: 452.5 kB / 459.7 MB, free: 25.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008064/0.3128, allocations: 0.4967 MB / 460.2 MB, free: 25.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007047/0.3198, allocations: 2.36 MB / 462.5 MB, free: 24.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3198, allocations: 4 kB / 462.5 MB, free: 24.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00237/0.3222, allocations: 1.337 MB / 463.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3223, allocations: 9.125 kB / 463.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3223, allocations: 2.469 kB / 463.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3233, allocations: 348.7 kB / 464.2 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008797/0.3242, allocations: 186 kB / 464.4 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008475/0.3327, allocations: 15.15 MB / 479.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007849/0.3335, allocations: 77 kB / 479.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.3337, allocations: 26.28 kB / 479.6 MB, free: 8.801 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.0006738/0.3344, allocations: 285.8 kB / 479.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.3346, allocations: 53.38 kB / 480 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.3367, allocations: 1.135 MB / 481.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3367, allocations: 6 kB / 481.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.3367, allocations: 14.62 kB / 481.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.3368, allocations: 2.906 kB / 481.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.3402, allocations: 2.121 MB / 483.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.3403, allocations: 1.344 kB / 483.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.3413, allocations: 171.7 kB / 483.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008646/0.3422, allocations: 311.4 kB / 483.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.3423, allocations: 30.42 kB / 483.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009416/0.3517, allocations: 14.71 MB / 498.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3517, allocations: 5.125 kB / 498.5 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003647/0.3554, allocations: 1.595 MB / 0.4883 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003391/0.3558, allocations: 141.9 kB / 0.4885 GB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.356, allocations: 32.34 kB / 0.4885 GB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.3567, allocations: 42.88 kB / 0.4885 GB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.3569, allocations: 54.75 kB / 0.4886 GB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.987e-05/0.357, allocations: 17.95 kB / 0.4886 GB, free: 7.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005204/0.3575, allocations: 294.5 kB / 0.4889 GB, free: 7.008 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3575, allocations: 0 / 0.4889 GB, free: 7.008 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001351/0.3589, allocations: 294.9 kB / 0.4892 GB, free: 6.953 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.0002737/0.3592, allocations: 144.2 kB / 0.4893 GB, free: 6.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003506/0.3627, allocations: 2.212 MB / 0.4915 GB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.3627, allocations: 4.906 kB / 0.4915 GB, free: 5.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.3646, allocations: 1.543 MB / 0.493 GB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.3657, allocations: 171 kB / 0.4932 GB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005957/0.3716, allocations: 3.363 MB / 0.4964 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008852/0.3725, allocations: 1.024 MB / 0.4974 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006178/0.3732, allocations: 164.6 kB / 0.4976 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.3734, allocations: 43.44 kB / 0.4976 GB, free: 15.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3734, allocations: 4 kB / 0.4976 GB, free: 15.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02186/0.3953, allocations: 13.01 MB / 0.5103 GB, free: 2.707 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)