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.001049/0.001049, allocations: 108.7 kB / 16.41 MB, free: 6.477 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.001029/0.001029, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09489/0.09489, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 68.03 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08751/0.08883, allocations: 54.96 MB / 492.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_001): time 0.004425/0.09329, allocations: 3.631 MB / 496.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.09517, allocations: 1.001 MB / 497.3 MB, free: 64 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002933/0.09549, allocations: 11.94 kB / 497.3 MB, free: 52 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.09583, allocations: 107.1 kB / 497.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006176/0.09645, allocations: 306.1 kB / 497.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005081/0.09697, allocations: 195.7 kB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002401/0.09938, allocations: 2.917 MB / 0.4891 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002953/0.1023, allocations: 2.771 MB / 0.4918 GB, free: 9.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.1038, allocations: 1.139 MB / 0.4929 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.1059, allocations: 1.419 MB / 0.4943 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004867/0.1063, allocations: 412 kB / 0.4947 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005131/0.1069, allocations: 412 kB / 0.4951 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009137/0.1078, allocations: 1.263 MB / 0.4963 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.1092, allocations: 1.507 MB / 0.4978 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1886/0.2978, allocations: 4.414 MB / 0.5021 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.2978, allocations: 3.75 kB / 0.5021 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2979, allocations: 0 / 0.5021 GB, free: 14.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000115/0.298, allocations: 1.594 kB / 0.5021 GB, free: 14.23 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.009472/0.3075, allocations: 3.114 MB / 0.5052 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3075, allocations: 7.906 kB / 0.5052 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005268/0.308, allocations: 224.9 kB / 0.5054 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001695/0.3097, allocations: 1.139 MB / 0.5065 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3099, allocations: 175.1 kB / 0.5067 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000424/0.3103, allocations: 247.9 kB / 0.5069 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004899/0.3152, allocations: 3.033 MB / 0.5099 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.172e-05/0.3153, allocations: 0 / 0.5099 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002462/0.3155, allocations: 81.88 kB / 0.5099 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/0.3156, allocations: 48.41 kB / 0.51 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004358/0.3199, allocations: 2.806 MB / 0.5127 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0173/0.3372, allocations: 13.38 MB / 0.5258 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009567/0.3468, allocations: 4.107 MB / 0.5298 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.3488, allocations: 1.48 MB / 0.5313 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.3489, allocations: 25.8 kB / 0.5313 GB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.349, allocations: 54.94 kB / 0.5313 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006446/0.3496, allocations: 146.2 kB / 0.5315 GB, free: 3.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=184): time 4.127e-06/0.3496, allocations: 0 / 0.5315 GB, free: 3.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=184): time 0.01419/0.3638, allocations: 8.905 MB / 0.5402 GB, free: 12.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.3639, allocations: 72.7 kB / 0.5402 GB, free: 12.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005887/0.3645, allocations: 497.8 kB / 0.5407 GB, free: 11.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.3646, allocations: 57.08 kB / 0.5408 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.365, allocations: 0.6343 MB / 0.5414 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000644/0.3657, allocations: 0.768 MB / 0.5421 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007001/0.3664, allocations: 376.2 kB / 0.5425 GB, free: 9.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3665, allocations: 338 kB / 0.5428 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/0.3689, allocations: 1.603 MB / 0.5444 GB, free: 8.043 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002424/0.3713, allocations: 1.706 MB / 0.5461 GB, free: 6.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02875/0.4001, allocations: 8.861 MB / 0.5547 GB, free: 13.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4001, allocations: 0 / 0.5547 GB, free: 13.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.009088/0.4092, allocations: 4.725 MB / 0.5593 GB, free: 8.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.4093, allocations: 10.19 kB / 0.5593 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4093, allocations: 8.031 kB / 0.5593 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004133/0.4134, allocations: 1.323 MB / 0.5606 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/0.4162, allocations: 0.5558 MB / 0.5612 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.042/0.4582, allocations: 60.56 MB / 0.6203 GB, free: 4.441 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/0.4601, allocations: 120 kB / 0.6204 GB, free: 4.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000488/0.4606, allocations: 75.98 kB / 0.6205 GB, free: 4.25 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.00155/0.4622, allocations: 0.6417 MB / 0.6211 GB, free: 3.602 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003835/0.4626, allocations: 107.3 kB / 0.6212 GB, free: 3.496 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00795/0.4706, allocations: 4.056 MB / 0.6252 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.09e-05/0.4706, allocations: 7.969 kB / 0.6252 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4706, allocations: 0 / 0.6252 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003222/0.4709, allocations: 200.4 kB / 0.6254 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003658/0.4713, allocations: 111.9 kB / 0.6255 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/0.4726, allocations: 107.9 kB / 0.6256 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/0.473, allocations: 169.7 kB / 0.6258 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01607/0.4891, allocations: 6.241 MB / 0.6318 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007429/0.4966, allocations: 5.222 MB / 0.6369 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002259/0.4988, allocations: 1.768 MB / 0.6387 GB, free: 1.367 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004441/0.4993, allocations: 350.9 kB / 0.639 GB, free: 1.027 MB / 494.1 MB Notification: Performance of Backend: time 6.81e-07/0.4993, allocations: 0 / 0.639 GB, free: 1.027 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007921/0.5072, allocations: 6.77 MB / 0.6456 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of SimCode: time 0.01134/0.5186, allocations: 9.169 MB / 0.6546 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of Templates: time 0.06137/0.58, allocations: 43.78 MB / 0.6973 GB, free: 5.047 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)