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.0008787/0.0008785, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001325/0.001325, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2485/0.2485, allocations: 22.34 MB / 313.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003511, allocations: 11.98 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3804/0.3808, allocations: 55.97 MB / 437.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.003678/0.3845, allocations: 3.98 MB / 441.9 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3864, allocations: 1.257 MB / 443.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002534/0.3867, allocations: 17.5 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002263/0.3869, allocations: 113.1 kB / 443.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005383/0.3875, allocations: 414.1 kB / 443.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.388, allocations: 200.5 kB / 443.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.3897, allocations: 2.272 MB / 446.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.3908, allocations: 1.113 MB / 447.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005791/0.3914, allocations: 0.6359 MB / 447.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009162/0.3923, allocations: 0.9038 MB / 448.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.3925, allocations: 92.03 kB / 448.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.3927, allocations: 87.69 kB / 449 MB, free: 33.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003867/0.3931, allocations: 0.5535 MB / 449.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.3934, allocations: 314.1 kB / 449.8 MB, free: 32.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001259/0.3946, allocations: 2.03 MB / 451.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3946, allocations: 0 / 451.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3946, allocations: 0 / 451.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.3947, allocations: 0 / 451.9 MB, free: 32.52 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.003266/0.3979, allocations: 1.794 MB / 453.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.398, allocations: 10.31 kB / 453.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.3983, allocations: 144.4 kB / 453.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3994, allocations: 0.8431 MB / 454.7 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.3996, allocations: 121.2 kB / 454.8 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002188/0.3998, allocations: 138 kB / 454.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/0.4027, allocations: 1.581 MB / 456.5 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.4028, allocations: 4 kB / 456.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.4029, allocations: 49.16 kB / 456.5 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.4029, allocations: 28.97 kB / 456.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.4054, allocations: 1.402 MB / 458 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.4159, allocations: 7.17 MB / 465.1 MB, free: 25.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004486/0.4205, allocations: 1.873 MB / 467 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.4217, allocations: 0.7303 MB / 467.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-05/0.4218, allocations: 15.47 kB / 467.8 MB, free: 24.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.4218, allocations: 47.72 kB / 467.8 MB, free: 24.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 2.855e-06/0.4218, allocations: 4 kB / 467.8 MB, free: 24.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.00733/0.4292, allocations: 3.986 MB / 471.8 MB, free: 21.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.4293, allocations: 63.12 kB / 471.9 MB, free: 21.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.4307, allocations: 0.6689 MB / 472.5 MB, free: 21.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.4309, allocations: 41.7 kB / 472.6 MB, free: 21.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/0.4313, allocations: 0.5112 MB / 473.1 MB, free: 20.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004833/0.4318, allocations: 419.1 kB / 473.5 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/0.4319, allocations: 26.91 kB / 473.5 MB, free: 20.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000194/0.4321, allocations: 421.4 kB / 473.9 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.4335, allocations: 0.8364 MB / 474.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.4353, allocations: 0.9903 MB / 475.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/0.4375, allocations: 0.9572 MB / 476.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.618e-05/0.4376, allocations: 2.609 kB / 476.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006163/0.4438, allocations: 2.473 MB / 479.2 MB, free: 17.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.4438, allocations: 12.14 kB / 479.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-05/0.4439, allocations: 5.594 kB / 479.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001915/0.4458, allocations: 0.55 MB / 479.8 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002033/0.4479, allocations: 404.6 kB / 480.1 MB, free: 17.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.4621, allocations: 21.44 MB / 0.4898 GB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.4638, allocations: 158.7 kB / 0.49 GB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003916/0.4643, allocations: 55.97 kB / 0.49 GB, free: 10.15 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = 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 (160): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001372/0.4656, allocations: 425.2 kB / 0.4904 GB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/0.4661, allocations: 94.97 kB / 0.4905 GB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004316/0.4705, allocations: 1.983 MB / 0.4925 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.4705, allocations: 23.83 kB / 0.4925 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/0.4705, allocations: 7.938 kB / 0.4925 GB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4706, allocations: 3.984 kB / 0.4925 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006956/0.4775, allocations: 3.696 MB / 0.4961 GB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.4775, allocations: 3.984 kB / 0.4961 GB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.4795, allocations: 343.6 kB / 0.4964 GB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.4808, allocations: 480.7 kB / 0.4969 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001822/0.481, allocations: 67.97 kB / 0.497 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01509/0.4961, allocations: 20.58 MB / 0.5171 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.4962, allocations: 4 kB / 0.5171 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005173/0.5013, allocations: 2.715 MB / 0.5197 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/0.5018, allocations: 191.8 kB / 0.5199 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/0.5021, allocations: 63.91 kB / 0.52 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008656/0.503, allocations: 79.72 kB / 0.52 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002726/0.5033, allocations: 96.75 kB / 0.5201 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.115e-05/0.5034, allocations: 31.98 kB / 0.5202 GB, free: 8.949 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006372/0.504, allocations: 479 kB / 0.5206 GB, free: 8.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.504, allocations: 0 / 0.5206 GB, free: 8.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00197/0.506, allocations: 0.5029 MB / 0.5211 GB, free: 7.977 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003342/0.5063, allocations: 183 kB / 0.5213 GB, free: 7.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005638/0.512, allocations: 3.417 MB / 0.5246 GB, free: 4.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.5121, allocations: 1.312 kB / 0.5246 GB, free: 4.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003385/0.5154, allocations: 2.475 MB / 0.527 GB, free: 1.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.5173, allocations: 315.9 kB / 0.5273 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.5283, allocations: 6.525 MB / 0.5337 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.5295, allocations: 1.276 MB / 0.535 GB, free: 9.328 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001401/0.531, allocations: 371.8 kB / 0.5353 GB, free: 8.961 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.5314, allocations: 71.44 kB / 0.5354 GB, free: 8.891 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5314, allocations: 0 / 0.5354 GB, free: 8.891 MB / 414.1 MB Notification: Performance of Templates: time 0.03811/0.5695, allocations: 20.95 MB / 0.5558 GB, free: 4.172 MB / 430.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)