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.006096/0.006096, allocations: 101.3 kB / 15.73 MB, free: 5.586 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.001232/0.001232, allocations: 189.1 kB / 16.67 MB, free: 5.523 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09122/0.09122, allocations: 22.33 MB / 312.8 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.91 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1189, allocations: 54.95 MB / 492 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.005372/0.1243, allocations: 4.429 MB / 496.4 MB, free: 300 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.1271, allocations: 1.274 MB / 497.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.1274, allocations: 19.88 kB / 497.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.1278, allocations: 166.6 kB / 497.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000703/0.1286, allocations: 453.4 kB / 498.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007684/0.1293, allocations: 315.6 kB / 498.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.1313, allocations: 2.173 MB / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001871/0.1332, allocations: 1.594 MB / 0.4906 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.1343, allocations: 0.8495 MB / 0.4915 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.1356, allocations: 0.9698 MB / 0.4924 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002902/0.1359, allocations: 236 kB / 0.4926 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.1362, allocations: 232 kB / 0.4928 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006055/0.1368, allocations: 0.6859 MB / 0.4935 GB, free: 7.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.1378, allocations: 0.9222 MB / 0.4944 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00227/0.1401, allocations: 2.563 MB / 0.4969 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.1401, allocations: 0 / 0.4969 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1401, allocations: 3.938 kB / 0.4969 GB, free: 3.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.1402, allocations: 0 / 0.4969 GB, free: 3.789 MB / 382.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.004537/0.1447, allocations: 2.004 MB / 0.4989 GB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1448, allocations: 15.97 kB / 0.4989 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/0.1451, allocations: 151.2 kB / 0.499 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.1465, allocations: 0.8641 MB / 0.4999 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.1467, allocations: 120.6 kB / 0.5 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002633/0.1469, allocations: 136.3 kB / 0.5001 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2196/0.3666, allocations: 1.586 MB / 0.5017 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.3666, allocations: 0.625 kB / 0.5017 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.3668, allocations: 49.66 kB / 0.5017 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.3668, allocations: 29.41 kB / 0.5018 GB, free: 21.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002247/0.3691, allocations: 1.407 MB / 0.5031 GB, free: 21.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009953/0.379, allocations: 7.082 MB / 0.51 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004761/0.3838, allocations: 1.874 MB / 0.5119 GB, free: 18.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001421/0.3853, allocations: 0.7409 MB / 0.5126 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-05/0.3854, allocations: 21.2 kB / 0.5126 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3854, allocations: 44.66 kB / 0.5127 GB, free: 18.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 2.865e-06/0.3854, allocations: 2.438 kB / 0.5127 GB, free: 18.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.007484/0.3929, allocations: 3.931 MB / 0.5165 GB, free: 16.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.393, allocations: 63.53 kB / 0.5166 GB, free: 16.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.3945, allocations: 0.6736 MB / 0.5172 GB, free: 16.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.3946, allocations: 42 kB / 0.5173 GB, free: 15.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004419/0.3951, allocations: 0.5142 MB / 0.5178 GB, free: 15.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/0.3956, allocations: 418.5 kB / 0.5182 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/0.3963, allocations: 240.2 kB / 0.5184 GB, free: 15.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.3965, allocations: 411.3 kB / 0.5188 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.3983, allocations: 0.8439 MB / 0.5196 GB, free: 14.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.3997, allocations: 1.005 MB / 0.5206 GB, free: 13.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01417/0.4139, allocations: 4.46 MB / 0.5249 GB, free: 12.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.712e-05/0.414, allocations: 3.844 kB / 0.5249 GB, free: 12.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005034/0.419, allocations: 2.466 MB / 0.5274 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.4191, allocations: 8.281 kB / 0.5274 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.4191, allocations: 4.344 kB / 0.5274 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.4209, allocations: 0.5475 MB / 0.5279 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.4228, allocations: 397.3 kB / 0.5283 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/0.4379, allocations: 23.05 MB / 0.5508 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.4394, allocations: 146.3 kB / 0.5509 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.4395, allocations: 49.44 kB / 0.551 GB, free: 3.055 MB / 398.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.0009019/0.4404, allocations: 435.3 kB / 0.5514 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.4406, allocations: 89.56 kB / 0.5515 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003576/0.4442, allocations: 1.987 MB / 0.5534 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4442, allocations: 11.98 kB / 0.5534 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.4443, allocations: 4 kB / 0.5534 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4443, allocations: 6.281 kB / 0.5534 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005931/0.4502, allocations: 3.714 MB / 0.5571 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.4502, allocations: 4 kB / 0.5571 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/0.4524, allocations: 339.6 kB / 0.5574 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.4538, allocations: 476.5 kB / 0.5578 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001809/0.454, allocations: 71.89 kB / 0.5579 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01763/0.4717, allocations: 22.15 MB / 0.5796 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4717, allocations: 3.609 kB / 0.5796 GB, free: 4.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005328/0.4771, allocations: 2.736 MB / 0.5822 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00058/0.4777, allocations: 195.6 kB / 0.5824 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.478, allocations: 59.98 kB / 0.5825 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008698/0.4788, allocations: 59.92 kB / 0.5825 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/0.4793, allocations: 96.75 kB / 0.5826 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.205e-05/0.4794, allocations: 31.98 kB / 0.5827 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007169/0.4801, allocations: 475 kB / 0.5831 GB, free: 360 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4801, allocations: 4 kB / 0.5831 GB, free: 356 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.00196/0.4821, allocations: 0.5029 MB / 0.5836 GB, free: 15.84 MB / 446.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.0002959/0.4824, allocations: 180.3 kB / 0.5838 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004792/0.4872, allocations: 3.422 MB / 0.5871 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.4872, allocations: 0 / 0.5871 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00301/0.4902, allocations: 2.46 MB / 0.5895 GB, free: 9.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.4918, allocations: 320.1 kB / 0.5898 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009561/0.5014, allocations: 5.54 MB / 0.5952 GB, free: 3.555 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.5025, allocations: 1.271 MB / 0.5965 GB, free: 2.254 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.5039, allocations: 371.8 kB / 0.5968 GB, free: 1.887 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/0.5042, allocations: 79.42 kB / 0.5969 GB, free: 1.812 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5042, allocations: 0 / 0.5969 GB, free: 1.812 MB / 446.1 MB Notification: Performance of Templates: time 0.03903/0.5433, allocations: 23.21 MB / 0.6196 GB, free: 10.88 MB / 478.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)