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.001623/0.001623, allocations: 114.3 kB / 16.37 MB, free: 6.016 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.001477/0.001477, allocations: 195.4 kB / 17.3 MB, free: 5.613 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.427/1.427, 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.09347/0.09347, allocations: 22.33 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 60.05 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1157, allocations: 54.97 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.006167/0.1219, allocations: 4.402 MB / 441.6 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003921/0.1259, allocations: 1.267 MB / 442.9 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006106/0.1265, allocations: 11.94 kB / 442.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005614/0.1272, allocations: 162.6 kB / 443 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1284, allocations: 433.5 kB / 443.5 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.1296, allocations: 315.5 kB / 443.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003212/0.1328, allocations: 2.142 MB / 445.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002836/0.1357, allocations: 1.594 MB / 447.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.1372, allocations: 0.8223 MB / 448.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.139, allocations: 0.9854 MB / 449.3 MB, free: 88 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004862/0.1395, allocations: 236 kB / 449.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.14, allocations: 240 kB / 449.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008324/0.1408, allocations: 0.6937 MB / 450.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.1422, allocations: 0.93 MB / 451.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.1453, allocations: 2.59 MB / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1454, allocations: 0 / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1454, allocations: 0 / 454 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.559e-05/0.1454, allocations: 0 / 454 MB, free: 11.39 MB / 334.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.006455/0.1519, allocations: 2.014 MB / 456 MB, free: 9.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.1519, allocations: 12.03 kB / 456 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004413/0.1524, allocations: 155.2 kB / 456.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/0.1547, allocations: 0.8603 MB / 457 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.1549, allocations: 116.6 kB / 457.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.1553, allocations: 136.2 kB / 457.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004256/0.1595, allocations: 1.593 MB / 458.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.1596, allocations: 0 / 458.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002161/0.1598, allocations: 48 kB / 458.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.552e-05/0.1599, allocations: 31.94 kB / 459 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004073/0.1639, allocations: 1.423 MB / 460.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01662/0.1806, allocations: 7.113 MB / 467.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006571/0.1872, allocations: 1.898 MB / 469.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.1884, allocations: 0.7222 MB / 470.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.715e-05/0.1885, allocations: 12.98 kB / 470.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.1886, allocations: 43.56 kB / 470.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 4.328e-06/0.1886, allocations: 7.938 kB / 470.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.007041/0.1956, allocations: 3.936 MB / 474.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.1957, allocations: 64.41 kB / 474.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.1968, allocations: 0.6876 MB / 474.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.1969, allocations: 41.7 kB / 474.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003937/0.1973, allocations: 0.4993 MB / 475.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004511/0.1978, allocations: 418.2 kB / 475.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/0.1982, allocations: 235.5 kB / 476 MB, free: 4.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.1985, allocations: 410.7 kB / 476.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.1998, allocations: 0.8507 MB / 477.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.2012, allocations: 1.001 MB / 478.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/0.2139, allocations: 4.451 MB / 482.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.2139, allocations: 4 kB / 482.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005054/0.219, allocations: 2.464 MB / 485.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.219, allocations: 4 kB / 485.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.2191, allocations: 8 kB / 485.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.2209, allocations: 0.5356 MB / 485.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/0.2228, allocations: 395.6 kB / 486.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/0.2399, allocations: 23.03 MB / 0.4972 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.2413, allocations: 146.7 kB / 0.4974 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003574/0.2417, allocations: 47.98 kB / 0.4974 GB, free: 0.5586 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: 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.001081/0.2428, allocations: 437.4 kB / 0.4978 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.243, allocations: 86.97 kB / 0.4979 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.2466, allocations: 1.979 MB / 0.4999 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.2467, allocations: 8 kB / 0.4999 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.2467, allocations: 4 kB / 0.4999 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.2467, allocations: 3.984 kB / 0.4999 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.2521, allocations: 3.554 MB / 0.5034 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.664e-06/0.2521, allocations: 4 kB / 0.5034 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/0.2541, allocations: 335.6 kB / 0.5037 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.2554, allocations: 488.6 kB / 0.5041 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/0.2556, allocations: 63.97 kB / 0.5042 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1999/0.4555, allocations: 22.14 MB / 0.5258 GB, free: 66.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4555, allocations: 9.031 kB / 0.5258 GB, free: 66.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004242/0.4598, allocations: 2.737 MB / 0.5285 GB, free: 65.65 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002457/0.46, allocations: 196 kB / 0.5287 GB, free: 65.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001809/0.4602, allocations: 59.88 kB / 0.5287 GB, free: 65.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007112/0.4609, allocations: 56.61 kB / 0.5288 GB, free: 65.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002684/0.4612, allocations: 94.06 kB / 0.5289 GB, free: 65.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.4613, allocations: 30.61 kB / 0.5289 GB, free: 65.55 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005684/0.4619, allocations: 484.5 kB / 0.5294 GB, free: 65.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4619, allocations: 0 / 0.5294 GB, free: 65.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001551/0.4635, allocations: 0.4998 MB / 0.5299 GB, free: 65.45 MB / 398.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.0002408/0.4637, allocations: 183.5 kB / 0.53 GB, free: 65.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003923/0.4676, allocations: 3.423 MB / 0.5334 GB, free: 63.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4677, allocations: 0 / 0.5334 GB, free: 63.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002344/0.47, allocations: 2.454 MB / 0.5358 GB, free: 62.05 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.4715, allocations: 315.9 kB / 0.5361 GB, free: 62.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008723/0.4802, allocations: 5.512 MB / 0.5415 GB, free: 59.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.4813, allocations: 1.264 MB / 0.5427 GB, free: 58.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001265/0.4825, allocations: 365.3 kB / 0.5431 GB, free: 58.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.4829, allocations: 75.3 kB / 0.5431 GB, free: 58.8 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4829, allocations: 0 / 0.5431 GB, free: 58.8 MB / 398.1 MB Notification: Performance of Templates: time 0.02892/0.5118, allocations: 22.72 MB / 0.5653 GB, free: 43.81 MB / 398.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)