Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001265, allocations: 107.9 kB / 16.41 MB, free: 6.461 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.001246/0.001246, allocations: 190.7 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.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09113/0.09113, allocations: 22.33 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.08959, allocations: 54.96 MB / 492.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.005066/0.09467, allocations: 4.401 MB / 497.1 MB, free: 316 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.09668, allocations: 1.271 MB / 498.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.09691, allocations: 19.88 kB / 498.4 MB, free: 15.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003094/0.09723, allocations: 170.6 kB / 498.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006467/0.0979, allocations: 457.4 kB / 499 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006926/0.0986, allocations: 311.6 kB / 499.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002081/0.1007, allocations: 2.169 MB / 0.4897 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.1023, allocations: 1.598 MB / 0.4913 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008352/0.1031, allocations: 0.8495 MB / 0.4921 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.1043, allocations: 0.9698 MB / 0.493 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002768/0.1046, allocations: 232 kB / 0.4933 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.1049, allocations: 232 kB / 0.4935 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005739/0.1055, allocations: 0.6898 MB / 0.4942 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008726/0.1063, allocations: 0.9144 MB / 0.4951 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.1084, allocations: 2.578 MB / 0.4976 GB, free: 3.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.1084, allocations: 3.938 kB / 0.4976 GB, free: 3.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1084, allocations: 7.938 kB / 0.4976 GB, free: 3.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.1085, allocations: 0 / 0.4976 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.004185/0.1127, allocations: 2.038 MB / 0.4996 GB, free: 1.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1127, allocations: 8.031 kB / 0.4996 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.113, allocations: 160 kB / 0.4997 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.1142, allocations: 0.8725 MB / 0.5006 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.877e-05/0.1143, allocations: 120.6 kB / 0.5007 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002299/0.1146, allocations: 136.3 kB / 0.5008 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.182/0.2965, allocations: 1.594 MB / 0.5024 GB, free: 21.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/0.2966, allocations: 0 / 0.5024 GB, free: 21.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.2967, allocations: 45.38 kB / 0.5024 GB, free: 21.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.2968, allocations: 28.91 kB / 0.5025 GB, free: 21.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002177/0.2989, allocations: 1.408 MB / 0.5038 GB, free: 21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008891/0.3079, allocations: 7.096 MB / 0.5108 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004553/0.3124, allocations: 1.872 MB / 0.5126 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.3135, allocations: 0.7429 MB / 0.5133 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.613e-05/0.3136, allocations: 16.41 kB / 0.5133 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.3137, allocations: 41.09 kB / 0.5134 GB, free: 18.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=103): time 3.246e-06/0.3137, allocations: 3.906 kB / 0.5134 GB, free: 18.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=103): time 0.006728/0.3204, allocations: 3.933 MB / 0.5172 GB, free: 16.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.3204, allocations: 63.88 kB / 0.5173 GB, free: 16.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009052/0.3214, allocations: 0.6819 MB / 0.5179 GB, free: 15.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.648e-05/0.3214, allocations: 41.52 kB / 0.518 GB, free: 15.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.3218, allocations: 0.517 MB / 0.5185 GB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.3221, allocations: 440.9 kB / 0.5189 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004702/0.3226, allocations: 240.1 kB / 0.5191 GB, free: 15.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3227, allocations: 415.1 kB / 0.5195 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.324, allocations: 0.8482 MB / 0.5204 GB, free: 14.37 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.3253, allocations: 1.001 MB / 0.5213 GB, free: 13.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.3383, allocations: 4.459 MB / 0.5257 GB, free: 12.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3383, allocations: 2.781 kB / 0.5257 GB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004026/0.3423, allocations: 2.474 MB / 0.5281 GB, free: 10.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3424, allocations: 8.281 kB / 0.5281 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3424, allocations: 4.312 kB / 0.5281 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.344, allocations: 0.5434 MB / 0.5287 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/0.3458, allocations: 407.4 kB / 0.529 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.3594, allocations: 23.05 MB / 0.5516 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.3604, allocations: 149.7 kB / 0.5517 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.3606, allocations: 54.42 kB / 0.5518 GB, free: 2.996 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.0006868/0.3613, allocations: 426.5 kB / 0.5522 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.3614, allocations: 90.47 kB / 0.5522 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.3651, allocations: 1.991 MB / 0.5542 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.3651, allocations: 5.859 kB / 0.5542 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3651, allocations: 0 / 0.5542 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.3653, allocations: 198.6 kB / 0.5544 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.3655, allocations: 63.97 kB / 0.5544 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007078/0.3662, allocations: 55.88 kB / 0.5545 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.3664, allocations: 88.84 kB / 0.5546 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007812/0.3742, allocations: 3.067 MB / 0.5576 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003763/0.378, allocations: 2.787 MB / 0.5603 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001186/0.3792, allocations: 0.8939 MB / 0.5612 GB, free: 9.805 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005845/0.3798, allocations: 475 kB / 0.5616 GB, free: 9.34 MB / 414.1 MB Notification: Performance of Backend: time 6.41e-07/0.3798, allocations: 0 / 0.5616 GB, free: 9.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003667/0.3835, allocations: 2.944 MB / 0.5645 GB, free: 6.195 MB / 414.1 MB Notification: Performance of SimCode: time 0.005986/0.3895, allocations: 5.272 MB / 0.5697 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of Templates: time 0.03358/0.4231, allocations: 24.05 MB / 0.5931 GB, free: 9.035 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1)