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.001299/0.001299, 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.001141/0.001141, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2041/0.2041, allocations: 22.34 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001878, allocations: 63.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3111, allocations: 54.94 MB / 435 MB, free: 39.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.006906/0.3181, allocations: 4.575 MB / 439.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003423/0.3215, allocations: 1.284 MB / 440.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009264/0.3225, allocations: 17.69 kB / 440.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000647/0.3232, allocations: 128.8 kB / 441.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.3246, allocations: 407.7 kB / 441.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3257, allocations: 288.3 kB / 441.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002889/0.3286, allocations: 2.635 MB / 444.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002093/0.3307, allocations: 1.339 MB / 445.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.3321, allocations: 0.6729 MB / 446.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.334, allocations: 0.9756 MB / 447.4 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006399/0.3347, allocations: 118.3 kB / 447.5 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007562/0.3354, allocations: 115.2 kB / 447.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008997/0.3364, allocations: 0.593 MB / 448.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001826/0.3382, allocations: 0.7931 MB / 449 MB, free: 31.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002785/0.341, allocations: 2.497 MB / 451.5 MB, free: 31.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.341, allocations: 0 / 451.5 MB, free: 31.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.341, allocations: 0 / 451.5 MB, free: 31.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.943e-05/0.3411, allocations: 4 kB / 451.5 MB, free: 31.13 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.006977/0.3481, allocations: 2.009 MB / 453.5 MB, free: 30.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3482, allocations: 10.41 kB / 453.5 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007315/0.3489, allocations: 146.3 kB / 453.6 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002226/0.3512, allocations: 0.8649 MB / 454.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.3513, allocations: 117.5 kB / 454.6 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005623/0.3519, allocations: 132.7 kB / 454.7 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004833/0.3567, allocations: 1.595 MB / 456.3 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.796e-05/0.3568, allocations: 3.984 kB / 456.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/0.3571, allocations: 45.78 kB / 456.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.462e-05/0.3571, allocations: 28.22 kB / 456.4 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003785/0.3609, allocations: 1.42 MB / 457.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01281/0.3738, allocations: 7.148 MB / 465 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004774/0.3786, allocations: 1.895 MB / 466.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.3797, allocations: 0.7229 MB / 467.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.747e-05/0.3798, allocations: 11.81 kB / 467.6 MB, free: 22.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.3798, allocations: 43.91 kB / 467.7 MB, free: 22.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.416e-06/0.3798, allocations: 3.938 kB / 467.7 MB, free: 22.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006697/0.3865, allocations: 3.934 MB / 471.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.3866, allocations: 66.12 kB / 471.7 MB, free: 19.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000965/0.3876, allocations: 0.6888 MB / 472.3 MB, free: 19.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.99e-05/0.3877, allocations: 45.3 kB / 472.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.3879, allocations: 0.5022 MB / 472.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/0.3883, allocations: 406.6 kB / 473.3 MB, free: 18.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004129/0.3887, allocations: 238 kB / 473.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3889, allocations: 418.6 kB / 473.9 MB, free: 18.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.3901, allocations: 0.8427 MB / 474.8 MB, free: 17.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.3915, allocations: 1.002 MB / 475.8 MB, free: 17.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/0.404, allocations: 4.444 MB / 480.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.404, allocations: 1.094 kB / 480.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003896/0.4079, allocations: 2.467 MB / 482.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.408, allocations: 14.05 kB / 482.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.408, allocations: 8 kB / 482.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/0.4095, allocations: 0.5317 MB / 483.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.4111, allocations: 403.5 kB / 483.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/0.4245, allocations: 21.42 MB / 0.4932 GB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.4264, allocations: 166.7 kB / 0.4934 GB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/0.4266, allocations: 47.98 kB / 0.4934 GB, free: 4.594 MB / 366.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.0009635/0.4276, allocations: 423.9 kB / 0.4938 GB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00024/0.4278, allocations: 90.88 kB / 0.4939 GB, free: 4.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003769/0.4316, allocations: 1.979 MB / 0.4958 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.4317, allocations: 12 kB / 0.4959 GB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.4317, allocations: 7.938 kB / 0.4959 GB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.4317, allocations: 7.922 kB / 0.4959 GB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006032/0.4377, allocations: 3.547 MB / 0.4993 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.4378, allocations: 7.938 kB / 0.4993 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/0.4397, allocations: 339.9 kB / 0.4997 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.441, allocations: 476.5 kB / 0.5001 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/0.4412, allocations: 63.97 kB / 0.5002 GB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01494/0.4562, allocations: 20.58 MB / 0.5203 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4562, allocations: 4 kB / 0.5203 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.4613, allocations: 2.737 MB / 0.523 GB, free: 4.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004139/0.4617, allocations: 191.8 kB / 0.5231 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.4619, allocations: 59.97 kB / 0.5232 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000768/0.4627, allocations: 75.77 kB / 0.5233 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.463, allocations: 96.75 kB / 0.5234 GB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.669e-05/0.4631, allocations: 31.98 kB / 0.5234 GB, free: 3.551 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006021/0.4637, allocations: 483 kB / 0.5238 GB, free: 3.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4637, allocations: 3.938 kB / 0.5239 GB, free: 3.078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001626/0.4654, allocations: 0.5068 MB / 0.5243 GB, free: 2.57 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.0002734/0.4656, allocations: 176.3 kB / 0.5245 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004321/0.47, allocations: 3.413 MB / 0.5278 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.47, allocations: 0 / 0.5278 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002667/0.4727, allocations: 2.46 MB / 0.5302 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.474, allocations: 299.4 kB / 0.5305 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009105/0.4831, allocations: 6.025 MB / 0.5364 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008967/0.4841, allocations: 1.256 MB / 0.5376 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.4853, allocations: 363.6 kB / 0.538 GB, free: 4.117 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.4856, allocations: 75.44 kB / 0.5381 GB, free: 4.043 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4856, allocations: 0 / 0.5381 GB, free: 4.043 MB / 414.1 MB Notification: Performance of Templates: time 0.03526/0.5209, allocations: 21.9 MB / 0.5595 GB, free: 14.38 MB / 446.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)