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.007202/0.007208, allocations: 100.8 kB / 15.73 MB, free: 6.027 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.001368/0.001368, allocations: 193.1 kB / 16.67 MB, free: 5.961 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2453/0.2453, allocations: 22.35 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 62.83 kB / 437.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1244, allocations: 54.97 MB / 492 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005227/0.1297, allocations: 4.407 MB / 496.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.1323, allocations: 1.259 MB / 497.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000304/0.1326, allocations: 19.88 kB / 497.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003826/0.1331, allocations: 158.6 kB / 497.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007206/0.1338, allocations: 433.5 kB / 498.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.1346, allocations: 307.6 kB / 498.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.1365, allocations: 2.15 MB / 0.489 GB, free: 8.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.1381, allocations: 1.598 MB / 0.4906 GB, free: 6.809 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008153/0.1389, allocations: 0.8223 MB / 0.4914 GB, free: 5.984 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.1401, allocations: 0.9855 MB / 0.4923 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002937/0.1404, allocations: 240 kB / 0.4926 GB, free: 4.762 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003488/0.1407, allocations: 240 kB / 0.4928 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005778/0.1413, allocations: 0.6976 MB / 0.4935 GB, free: 3.828 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008434/0.1422, allocations: 0.9223 MB / 0.4944 GB, free: 2.902 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002096/0.1443, allocations: 2.59 MB / 0.4969 GB, free: 312 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.1443, allocations: 7.875 kB / 0.4969 GB, free: 304 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1443, allocations: 0 / 0.4969 GB, free: 304 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.1443, allocations: 0 / 0.4969 GB, free: 304 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.004458/0.1488, allocations: 2.015 MB / 0.4989 GB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1488, allocations: 8.031 kB / 0.4989 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002856/0.1491, allocations: 147.2 kB / 0.499 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.1506, allocations: 0.8642 MB / 0.4999 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.1507, allocations: 116.6 kB / 0.5 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00024/0.151, allocations: 132.2 kB / 0.5001 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.1536, allocations: 1.589 MB / 0.5017 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.1537, allocations: 7.984 kB / 0.5017 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.1538, allocations: 48 kB / 0.5017 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.1538, allocations: 28 kB / 0.5017 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002261/0.1561, allocations: 1.423 MB / 0.5031 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009923/0.166, allocations: 7.117 MB / 0.5101 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004545/0.1706, allocations: 1.894 MB / 0.5119 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.1717, allocations: 0.7245 MB / 0.5126 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.891e-05/0.1718, allocations: 13 kB / 0.5126 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1718, allocations: 47.56 kB / 0.5127 GB, free: 15.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.675e-06/0.1718, allocations: 0 / 0.5127 GB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.006916/0.1787, allocations: 3.932 MB / 0.5165 GB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.1788, allocations: 60.41 kB / 0.5166 GB, free: 11.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009437/0.1798, allocations: 0.6838 MB / 0.5173 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.364e-05/0.1799, allocations: 45.7 kB / 0.5173 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003422/0.1802, allocations: 0.507 MB / 0.5178 GB, free: 9.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004095/0.1806, allocations: 410.1 kB / 0.5182 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/0.1811, allocations: 239.5 kB / 0.5184 GB, free: 9.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.1813, allocations: 410.7 kB / 0.5188 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.1825, allocations: 0.8507 MB / 0.5196 GB, free: 7.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.1838, allocations: 1.001 MB / 0.5206 GB, free: 6.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01293/0.1968, allocations: 4.451 MB / 0.525 GB, free: 2.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.1968, allocations: 0 / 0.525 GB, free: 2.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004473/0.2013, allocations: 2.464 MB / 0.5274 GB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.2013, allocations: 8 kB / 0.5274 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.2014, allocations: 4 kB / 0.5274 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/0.2032, allocations: 0.5278 MB / 0.5279 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.205, allocations: 403.5 kB / 0.5283 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/0.2228, allocations: 23.05 MB / 0.5508 GB, free: 5.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.2243, allocations: 142.6 kB / 0.5509 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.2244, allocations: 51.98 kB / 0.551 GB, free: 5.465 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.0008105/0.2252, allocations: 421.4 kB / 0.5514 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.2255, allocations: 90.88 kB / 0.5515 GB, free: 4.953 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/0.229, allocations: 1.99 MB / 0.5534 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.229, allocations: 12 kB / 0.5534 GB, free: 2.895 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.229, allocations: 4 kB / 0.5534 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2291, allocations: 3.984 kB / 0.5534 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005254/0.2343, allocations: 3.543 MB / 0.5569 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.2343, allocations: 3.984 kB / 0.5569 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/0.2363, allocations: 331.7 kB / 0.5572 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.2375, allocations: 480.7 kB / 0.5577 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.2377, allocations: 67.95 kB / 0.5577 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/0.2522, allocations: 22.17 MB / 0.5794 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2522, allocations: 3.984 kB / 0.5794 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00459/0.2568, allocations: 2.73 MB / 0.5821 GB, free: 3.211 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.2571, allocations: 199.6 kB / 0.5822 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002093/0.2573, allocations: 63.97 kB / 0.5823 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007397/0.2581, allocations: 51.94 kB / 0.5824 GB, free: 2.883 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.2583, allocations: 100.8 kB / 0.5824 GB, free: 2.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/0.2584, allocations: 27.98 kB / 0.5825 GB, free: 2.758 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005956/0.259, allocations: 483 kB / 0.5829 GB, free: 2.289 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.259, allocations: 0 / 0.5829 GB, free: 2.289 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001483/0.2605, allocations: 0.4991 MB / 0.5834 GB, free: 1.789 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.0002546/0.2608, allocations: 184.8 kB / 0.5836 GB, free: 1.598 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.266/0.5268, allocations: 3.425 MB / 0.5869 GB, free: 96.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.056e-06/0.5268, allocations: 2.75 kB / 0.5869 GB, free: 96.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003/0.5299, allocations: 2.454 MB / 0.5893 GB, free: 94.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.5316, allocations: 313.9 kB / 0.5896 GB, free: 94.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008657/0.5403, allocations: 5.505 MB / 0.595 GB, free: 92.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.5414, allocations: 1.263 MB / 0.5963 GB, free: 91.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001184/0.5426, allocations: 362.6 kB / 0.5966 GB, free: 91.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.5429, allocations: 78.08 kB / 0.5967 GB, free: 91.62 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5429, allocations: 3.281 kB / 0.5967 GB, free: 91.62 MB / 462.1 MB Notification: Performance of Templates: time 0.03508/0.578, allocations: 23.54 MB / 0.6197 GB, free: 78.31 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)