Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 106.3 kB / 15.99 MB, free: 5.891 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.00123/0.00123, allocations: 189.5 kB / 16.91 MB, free: 5.746 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.25/1.25, allocations: 222.9 MB / 240.6 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.172/0.172, allocations: 22.35 MB / 313.1 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 59.91 kB / 381 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2293, allocations: 54.93 MB / 435.9 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004573/0.2339, allocations: 4.606 MB / 440.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.2361, allocations: 1.286 MB / 441.8 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005262/0.2366, allocations: 16.12 kB / 441.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.237, allocations: 131.9 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007519/0.2378, allocations: 401.5 kB / 442.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006653/0.2385, allocations: 281.3 kB / 442.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.2399, allocations: 2.174 MB / 444.8 MB, free: 33.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.2411, allocations: 1.598 MB / 446.4 MB, free: 32.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007153/0.2419, allocations: 0.8478 MB / 447.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008641/0.2427, allocations: 1.056 MB / 448.3 MB, free: 32.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.2429, allocations: 231.6 kB / 448.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2432, allocations: 235.5 kB / 448.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003564/0.2436, allocations: 0.687 MB / 449.4 MB, free: 31.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005754/0.2441, allocations: 0.9273 MB / 450.3 MB, free: 31.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.2453, allocations: 2.096 MB / 452.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2453, allocations: 0 / 452.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2453, allocations: 3.188 kB / 452.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.2453, allocations: 0 / 452.4 MB, free: 30.61 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003607/0.2489, allocations: 2.004 MB / 454.4 MB, free: 29.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.249, allocations: 9.875 kB / 454.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002344/0.2492, allocations: 147.4 kB / 454.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.2502, allocations: 0.8702 MB / 455.5 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.2503, allocations: 121.4 kB / 455.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002186/0.2506, allocations: 139.9 kB / 455.7 MB, free: 28.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.2529, allocations: 1.588 MB / 457.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.2529, allocations: 0 / 457.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.253, allocations: 54.12 kB / 457.4 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.2531, allocations: 28.91 kB / 457.4 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/0.2551, allocations: 1.401 MB / 458.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008695/0.2638, allocations: 7.117 MB / 465.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00461/0.2685, allocations: 1.876 MB / 467.8 MB, free: 22.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000977/0.2695, allocations: 0.7372 MB / 468.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.276e-05/0.2695, allocations: 15.06 kB / 468.5 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.2696, allocations: 44.28 kB / 468.6 MB, free: 21.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.785e-06/0.2696, allocations: 4 kB / 468.6 MB, free: 21.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.0063/0.2759, allocations: 3.92 MB / 472.5 MB, free: 19.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.2759, allocations: 67.19 kB / 472.6 MB, free: 19.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009552/0.2769, allocations: 0.6854 MB / 473.3 MB, free: 19.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.277, allocations: 41.36 kB / 473.3 MB, free: 19.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002788/0.2773, allocations: 0.5124 MB / 473.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.2776, allocations: 415 kB / 474.2 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003791/0.278, allocations: 240.9 kB / 474.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2782, allocations: 410.7 kB / 474.9 MB, free: 17.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.2793, allocations: 0.8441 MB / 475.7 MB, free: 17.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/0.2806, allocations: 0.9983 MB / 476.7 MB, free: 16.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/0.2931, allocations: 4.483 MB / 481.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.2931, allocations: 5.031 kB / 481.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003612/0.2968, allocations: 2.466 MB / 483.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2968, allocations: 4 kB / 483.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.2968, allocations: 8 kB / 483.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.2982, allocations: 0.5472 MB / 484.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.2998, allocations: 403.5 kB / 484.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01326/0.3131, allocations: 23.05 MB / 0.4958 GB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.3147, allocations: 158.7 kB / 0.4959 GB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.3148, allocations: 51.98 kB / 0.496 GB, free: 2.617 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.0009244/0.3158, allocations: 431.2 kB / 0.4964 GB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.316, allocations: 94.88 kB / 0.4965 GB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00347/0.3194, allocations: 1.983 MB / 0.4984 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.3195, allocations: 8 kB / 0.4984 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3195, allocations: 4 kB / 0.4984 GB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.3195, allocations: 3.984 kB / 0.4984 GB, free: 32 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005605/0.3251, allocations: 3.711 MB / 0.502 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3251, allocations: 4 kB / 0.502 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/0.3271, allocations: 343.9 kB / 0.5024 GB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001262/0.3284, allocations: 480.5 kB / 0.5028 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001927/0.3286, allocations: 71.95 kB / 0.5029 GB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/0.3431, allocations: 22.17 MB / 0.5246 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3431, allocations: 0 / 0.5246 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.3476, allocations: 2.73 MB / 0.5272 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003064/0.3479, allocations: 187.9 kB / 0.5274 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/0.3481, allocations: 63.92 kB / 0.5275 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000801/0.3489, allocations: 75.81 kB / 0.5275 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.3492, allocations: 96.75 kB / 0.5276 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.078e-05/0.3492, allocations: 28 kB / 0.5276 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005528/0.3498, allocations: 483 kB / 0.5281 GB, free: 15.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3498, allocations: 0 / 0.5281 GB, free: 15.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001368/0.3512, allocations: 0.5029 MB / 0.5286 GB, free: 14.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.0002442/0.3514, allocations: 186.6 kB / 0.5288 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004907/0.3563, allocations: 3.988 MB / 0.5327 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3564, allocations: 0 / 0.5327 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002431/0.3588, allocations: 2.463 MB / 0.5351 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.3599, allocations: 323.6 kB / 0.5354 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00883/0.3688, allocations: 6.187 MB / 0.5414 GB, free: 1.156 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008614/0.3697, allocations: 1.268 MB / 0.5427 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005024/0.3702, allocations: 83.42 kB / 0.5427 GB, free: 15.77 MB / 430.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3702, allocations: 0 / 0.5427 GB, free: 15.77 MB / 430.1 MB Notification: Performance of Templates: time 0.2053/0.5754, allocations: 81.69 MB / 0.6225 GB, free: 122.8 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)