Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.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_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") translateModel(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007091/0.007091, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001318/0.001318, allocations: 201.6 kB / 16.68 MB, free: 5.969 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2242/0.2242, allocations: 22.36 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.5 kB / 437.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1093, allocations: 54.97 MB / 492 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005103/0.1145, allocations: 4.4 MB / 496.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.117, allocations: 1.271 MB / 497.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003148/0.1173, allocations: 15.88 kB / 497.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.1177, allocations: 166.6 kB / 497.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006434/0.1184, allocations: 429.5 kB / 498.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000775/0.1192, allocations: 311.5 kB / 498.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002056/0.1213, allocations: 2.15 MB / 0.489 GB, free: 8.457 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.1232, allocations: 1.586 MB / 0.4906 GB, free: 6.828 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008912/0.1241, allocations: 0.8222 MB / 0.4914 GB, free: 6.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.1252, allocations: 0.9894 MB / 0.4923 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002976/0.1255, allocations: 232 kB / 0.4926 GB, free: 4.785 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.1259, allocations: 240 kB / 0.4928 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005834/0.1265, allocations: 0.6976 MB / 0.4935 GB, free: 3.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009755/0.1275, allocations: 0.9184 MB / 0.4944 GB, free: 2.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.1296, allocations: 2.601 MB / 0.4969 GB, free: 328 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1296, allocations: 0 / 0.4969 GB, free: 328 kB / 366.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.1296, allocations: 0 / 0.4969 GB, free: 328 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.858e-05/0.1297, allocations: 3.938 kB / 0.4969 GB, free: 324 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004466/0.1342, allocations: 2.045 MB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.1342, allocations: 8.031 kB / 0.4989 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.1346, allocations: 156 kB / 0.4991 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.1362, allocations: 0.8686 MB / 0.4999 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.1363, allocations: 116.6 kB / 0.5 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002611/0.1366, allocations: 136.3 kB / 0.5002 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002921/0.1395, allocations: 1.593 MB / 0.5017 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.1396, allocations: 3.984 kB / 0.5017 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.1397, allocations: 51.94 kB / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.692e-05/0.1398, allocations: 28 kB / 0.5018 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002334/0.1421, allocations: 1.423 MB / 0.5032 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.1525, allocations: 7.134 MB / 0.5102 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004814/0.1573, allocations: 1.89 MB / 0.512 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.1585, allocations: 0.7222 MB / 0.5127 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-05/0.1586, allocations: 20.98 kB / 0.5127 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.1587, allocations: 43.56 kB / 0.5128 GB, free: 15.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.886e-06/0.1587, allocations: 0 / 0.5128 GB, free: 15.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007164/0.1659, allocations: 3.941 MB / 0.5166 GB, free: 11.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/0.166, allocations: 64.41 kB / 0.5167 GB, free: 11.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000956/0.1669, allocations: 0.6878 MB / 0.5173 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.843e-05/0.167, allocations: 41.7 kB / 0.5174 GB, free: 10.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.1674, allocations: 0.5162 MB / 0.5179 GB, free: 9.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004091/0.1678, allocations: 436.3 kB / 0.5183 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004407/0.1682, allocations: 235.6 kB / 0.5185 GB, free: 9.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1684, allocations: 418.7 kB / 0.5189 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.1697, allocations: 0.8429 MB / 0.5198 GB, free: 7.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.1712, allocations: 1.012 MB / 0.5207 GB, free: 6.801 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/0.1842, allocations: 4.435 MB / 0.5251 GB, free: 2.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.1843, allocations: 0 / 0.5251 GB, free: 2.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00488/0.1892, allocations: 2.473 MB / 0.5275 GB, free: 15.76 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.1892, allocations: 8 kB / 0.5275 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.1893, allocations: 4 kB / 0.5275 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001854/0.1911, allocations: 0.5395 MB / 0.528 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/0.193, allocations: 391.5 kB / 0.5284 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01794/0.2109, allocations: 23.05 MB / 0.5509 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.2125, allocations: 143.2 kB / 0.551 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003931/0.2129, allocations: 51.98 kB / 0.5511 GB, free: 5.375 MB / 430.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: 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 (157): * Single equations (assignments): 142 * 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.001145/0.2141, allocations: 421.2 kB / 0.5515 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003195/0.2144, allocations: 95.39 kB / 0.5516 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/0.2181, allocations: 1.983 MB / 0.5535 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.2182, allocations: 15.98 kB / 0.5535 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.2182, allocations: 4 kB / 0.5535 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.2182, allocations: 7.922 kB / 0.5536 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005697/0.2239, allocations: 3.558 MB / 0.557 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.224, allocations: 0 / 0.557 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.2259, allocations: 335.9 kB / 0.5573 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.2273, allocations: 480.5 kB / 0.5578 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/0.2274, allocations: 63.95 kB / 0.5579 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01569/0.2431, allocations: 22.18 MB / 0.5795 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2432, allocations: 0 / 0.5795 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005203/0.2484, allocations: 2.739 MB / 0.5822 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004346/0.2489, allocations: 196.2 kB / 0.5824 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002917/0.2492, allocations: 63.97 kB / 0.5824 GB, free: 2.816 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008365/0.25, allocations: 51.94 kB / 0.5825 GB, free: 2.766 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.2503, allocations: 104.7 kB / 0.5826 GB, free: 2.664 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.482e-05/0.2504, allocations: 31.98 kB / 0.5826 GB, free: 2.633 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006887/0.2511, allocations: 479 kB / 0.5831 GB, free: 2.168 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2511, allocations: 0 / 0.5831 GB, free: 2.168 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001725/0.2529, allocations: 0.4994 MB / 0.5836 GB, free: 1.668 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (CH.Tfo,CH.Ec,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 (89): * Single equations (assignments): 74 * 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.0003213/0.2532, allocations: 188.7 kB / 0.5838 GB, free: 1.473 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2398/0.493, allocations: 3.43 MB / 0.5871 GB, free: 96.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.4931, allocations: 0 / 0.5871 GB, free: 96.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002545/0.4956, allocations: 2.461 MB / 0.5895 GB, free: 94.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.4969, allocations: 306.5 kB / 0.5898 GB, free: 94.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007935/0.5049, allocations: 5.569 MB / 0.5952 GB, free: 92.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008758/0.5058, allocations: 1.258 MB / 0.5965 GB, free: 91.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001121/0.5069, allocations: 354.3 kB / 0.5968 GB, free: 91.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.5072, allocations: 75.44 kB / 0.5969 GB, free: 91.49 MB / 462.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5073, allocations: 0 / 0.5969 GB, free: 91.49 MB / 462.1 MB Notification: Performance of Templates: time 0.03315/0.5404, allocations: 23.18 MB / 0.6195 GB, free: 78.52 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)