Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 109.1 kB / 16.41 MB, free: 6.387 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.001041/0.001041, allocations: 187.7 kB / 17.34 MB, free: 5.84 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.3/1.3, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09497/0.09497, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 60.14 kB / 437.7 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08581/0.08707, allocations: 54.96 MB / 492.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004387/0.09148, allocations: 3.334 MB / 496 MB, free: 1.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.09302, allocations: 0.9274 MB / 496.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.09318, allocations: 11.94 kB / 497 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.09342, allocations: 107.1 kB / 497.1 MB, free: 416 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.09385, allocations: 258.5 kB / 497.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.09434, allocations: 199.7 kB / 497.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.09545, allocations: 1.225 MB / 498.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009915/0.09645, allocations: 0.8824 MB / 499.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004642/0.09692, allocations: 494.8 kB / 0.4884 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006883/0.09762, allocations: 0.5609 MB / 0.4889 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.09781, allocations: 136 kB / 0.4891 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.09805, allocations: 132 kB / 0.4892 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.09837, allocations: 399 kB / 0.4896 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000499/0.09888, allocations: 0.5331 MB / 0.4901 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.1001, allocations: 1.476 MB / 0.4915 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1002, allocations: 0 / 0.4915 GB, free: 10.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1002, allocations: 0 / 0.4915 GB, free: 10.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1002, allocations: 0 / 0.4915 GB, free: 10.12 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.002644/0.1028, allocations: 1.301 MB / 0.4928 GB, free: 8.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1029, allocations: 8.031 kB / 0.4928 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.103, allocations: 92.38 kB / 0.4929 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008188/0.1039, allocations: 0.5702 MB / 0.4934 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.104, allocations: 84.25 kB / 0.4935 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.1041, allocations: 84.33 kB / 0.4936 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.1057, allocations: 0.9288 MB / 0.4945 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.1057, allocations: 0 / 0.4945 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.19e-05/0.1058, allocations: 32 kB / 0.4945 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1058, allocations: 16 kB / 0.4946 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.1071, allocations: 0.8043 MB / 0.4953 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005657/0.1128, allocations: 3.959 MB / 0.4992 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.1155, allocations: 1.021 MB / 0.5002 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006062/0.1161, allocations: 422.4 kB / 0.5006 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.1162, allocations: 12.55 kB / 0.5006 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1162, allocations: 39.06 kB / 0.5007 GB, free: 372 kB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.164e-06/0.1162, allocations: 0 / 0.5007 GB, free: 372 kB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.1833/0.2995, allocations: 2.358 MB / 0.503 GB, free: 21.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.2996, allocations: 60.16 kB / 0.503 GB, free: 21.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/0.3, allocations: 414.3 kB / 0.5034 GB, free: 21.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.3, allocations: 35.64 kB / 0.5034 GB, free: 21.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.3002, allocations: 334.4 kB / 0.5038 GB, free: 21.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3003, allocations: 242 kB / 0.504 GB, free: 20.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.3005, allocations: 126.4 kB / 0.5041 GB, free: 20.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.3006, allocations: 367.4 kB / 0.5045 GB, free: 20.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005727/0.3012, allocations: 451 kB / 0.5049 GB, free: 20.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005911/0.3018, allocations: 0.493 MB / 0.5054 GB, free: 20.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006719/0.3085, allocations: 2.357 MB / 0.5077 GB, free: 20.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3085, allocations: 0 / 0.5077 GB, free: 20.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002202/0.3107, allocations: 1.337 MB / 0.509 GB, free: 20.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.3107, allocations: 8.812 kB / 0.509 GB, free: 20.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3108, allocations: 6.344 kB / 0.509 GB, free: 20.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.3118, allocations: 341.8 kB / 0.5093 GB, free: 20.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/0.3126, allocations: 189.2 kB / 0.5095 GB, free: 20.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007567/0.3202, allocations: 15.16 MB / 0.5243 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.3208, allocations: 71.92 kB / 0.5244 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.3208, allocations: 26.17 kB / 0.5244 GB, free: 6.422 MB / 382.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: 7 * 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 (79): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004181/0.3213, allocations: 284.9 kB / 0.5247 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3214, allocations: 56.02 kB / 0.5247 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/0.3234, allocations: 1.137 MB / 0.5258 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.3234, allocations: 5.969 kB / 0.5258 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3235, allocations: 4 kB / 0.5258 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/0.3236, allocations: 144.5 kB / 0.526 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.3237, allocations: 30.06 kB / 0.526 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004046/0.3241, allocations: 26.02 kB / 0.526 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.3242, allocations: 53.22 kB / 0.5261 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004166/0.3284, allocations: 1.714 MB / 0.5278 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002144/0.3305, allocations: 1.605 MB / 0.5293 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006096/0.3312, allocations: 493.2 kB / 0.5298 GB, free: 4.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002887/0.3314, allocations: 295.9 kB / 0.5301 GB, free: 4.57 MB / 382.1 MB Notification: Performance of Backend: time 2.31e-07/0.3315, allocations: 0 / 0.5301 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.3335, allocations: 1.818 MB / 0.5319 GB, free: 3.121 MB / 382.1 MB Notification: Performance of SimCode: time 0.002989/0.3365, allocations: 3.124 MB / 0.5349 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of Templates: time 0.01906/0.3556, allocations: 13.39 MB / 0.548 GB, free: 9.781 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1)