Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 110.5 kB / 16.42 MB, free: 6.504 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.001113/0.001113, allocations: 185.4 kB / 17.35 MB, free: 5.738 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09379/0.09379, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 64.08 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08721/0.08848, allocations: 54.95 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_001): time 0.00445/0.09296, allocations: 3.646 MB / 496.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.09486, allocations: 1.001 MB / 497.3 MB, free: 96 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000332/0.09522, allocations: 7.938 kB / 497.3 MB, free: 88 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000334/0.09558, allocations: 115.1 kB / 497.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006973/0.09629, allocations: 294.2 kB / 497.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.09684, allocations: 203.6 kB / 497.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.09929, allocations: 2.905 MB / 0.4891 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003135/0.1024, allocations: 2.779 MB / 0.4918 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002014/0.1045, allocations: 1.139 MB / 0.4929 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002147/0.1066, allocations: 1.415 MB / 0.4943 GB, free: 7.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005142/0.1072, allocations: 419.9 kB / 0.4947 GB, free: 6.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005987/0.1078, allocations: 412 kB / 0.4951 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008926/0.1087, allocations: 1.263 MB / 0.4963 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.1101, allocations: 1.507 MB / 0.4978 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1893/0.2994, allocations: 4.4 MB / 0.5021 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2994, allocations: 1.062 kB / 0.5021 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2994, allocations: 0 / 0.5021 GB, free: 14.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.257e-05/0.2995, allocations: 0 / 0.5021 GB, free: 14.2 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: 520 * Number of variables: 520 Notification: Performance of Generate backend data structure: time 0.007337/0.3069, allocations: 3.077 MB / 0.5051 GB, free: 13.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3069, allocations: 9.594 kB / 0.5051 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004285/0.3073, allocations: 213.5 kB / 0.5053 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.3091, allocations: 1.134 MB / 0.5064 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.3093, allocations: 183.2 kB / 0.5066 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003926/0.3097, allocations: 241.1 kB / 0.5068 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00494/0.3146, allocations: 3.031 MB / 0.5098 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.3147, allocations: 0 / 0.5098 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.3149, allocations: 84.78 kB / 0.5099 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/0.315, allocations: 47.84 kB / 0.5099 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004199/0.3192, allocations: 2.805 MB / 0.5127 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01776/0.3369, allocations: 13.35 MB / 0.5257 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009383/0.3464, allocations: 4.112 MB / 0.5297 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002011/0.3484, allocations: 1.481 MB / 0.5312 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.3485, allocations: 35.27 kB / 0.5312 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.3486, allocations: 49.97 kB / 0.5312 GB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007056/0.3493, allocations: 140.7 kB / 0.5314 GB, free: 3.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=184): time 3.616e-06/0.3493, allocations: 0 / 0.5314 GB, free: 3.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=184): time 0.01404/0.3633, allocations: 8.899 MB / 0.5401 GB, free: 12.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.3634, allocations: 71.53 kB / 0.5401 GB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006505/0.3641, allocations: 0.4959 MB / 0.5406 GB, free: 11.83 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.3642, allocations: 61.39 kB / 0.5407 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.3646, allocations: 0.6041 MB / 0.5413 GB, free: 11.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000648/0.3652, allocations: 0.7364 MB / 0.542 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007009/0.3659, allocations: 372.2 kB / 0.5423 GB, free: 10.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3661, allocations: 341.9 kB / 0.5427 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.3684, allocations: 1.599 MB / 0.5442 GB, free: 8.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002419/0.3708, allocations: 1.707 MB / 0.5459 GB, free: 6.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02873/0.3995, allocations: 8.86 MB / 0.5546 GB, free: 13.49 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/0.3996, allocations: 4 kB / 0.5546 GB, free: 13.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.009787/0.4094, allocations: 4.716 MB / 0.5592 GB, free: 8.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.4094, allocations: 8 kB / 0.5592 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.4094, allocations: 3.031 kB / 0.5592 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004296/0.4137, allocations: 1.327 MB / 0.5605 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/0.4166, allocations: 0.5568 MB / 0.561 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04279/0.4594, allocations: 60.54 MB / 0.6201 GB, free: 4.613 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001912/0.4613, allocations: 120 kB / 0.6202 GB, free: 4.496 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004853/0.4618, allocations: 71.98 kB / 0.6203 GB, free: 4.426 MB / 478.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: 10 * 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 (241): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 40 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 40 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%), (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%), (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.001617/0.4635, allocations: 0.6435 MB / 0.6209 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000423/0.4639, allocations: 98.88 kB / 0.621 GB, free: 3.676 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007775/0.4717, allocations: 4.058 MB / 0.625 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.197e-05/0.4718, allocations: 15.95 kB / 0.625 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4718, allocations: 1.125 kB / 0.625 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.4721, allocations: 180 kB / 0.6252 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003882/0.4725, allocations: 116 kB / 0.6253 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.4738, allocations: 103.9 kB / 0.6254 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004592/0.4743, allocations: 169.7 kB / 0.6256 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0169/0.4912, allocations: 6.23 MB / 0.6316 GB, free: 8.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007816/0.499, allocations: 5.217 MB / 0.6367 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002389/0.5014, allocations: 1.762 MB / 0.6385 GB, free: 1.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004591/0.5019, allocations: 358.9 kB / 0.6388 GB, free: 1.227 MB / 494.1 MB Notification: Performance of Backend: time 3.11e-07/0.5019, allocations: 0 / 0.6388 GB, free: 1.227 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008428/0.5104, allocations: 6.763 MB / 0.6454 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of SimCode: time 0.01167/0.522, allocations: 9.054 MB / 0.6542 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of Templates: time 0.06328/0.5853, allocations: 43.77 MB / 0.697 GB, free: 5.383 MB / 0.545 GB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_001.pipe 2>&1)