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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 87.56 kB / 20.97 MB, free: 3.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 177 kB / 24.28 MB, free: 280 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.083/1.083, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06861/0.06861, allocations: 18.14 MB / 279.2 MB, free: 11.38 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.477e-06/3.477e-06, allocations: 0 / 358 MB, free: 7.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.735e-05/4.083e-05, allocations: 5.266 kB / 358 MB, free: 7.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.006447/0.006487, allocations: 4.362 MB / 362.4 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003486/0.009974, allocations: 1.294 MB / 363.7 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006234/0.0106, allocations: 27.75 kB / 363.7 MB, free: 1.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004499/0.01105, allocations: 170.5 kB / 363.9 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.01207, allocations: 468.9 kB / 364.4 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.01322, allocations: 327.4 kB / 364.7 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.01583, allocations: 2.235 MB / 366.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.01763, allocations: 1.22 MB / 368.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004587/0.02221, allocations: 0.8498 MB / 369 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.02391, allocations: 0.9199 MB / 369.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004333/0.02435, allocations: 232 kB / 370.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00336/0.02771, allocations: 232 kB / 370.3 MB, free: 11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006565/0.02836, allocations: 0.7366 MB / 371.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009757/0.02934, allocations: 0.6901 MB / 371.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005205/0.03454, allocations: 1.523 MB / 373.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.03455, allocations: 0 / 373.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.03455, allocations: 0 / 373.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.307e-05/0.0346, allocations: 0 / 373.3 MB, free: 8.043 MB / 298.7 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.007234/0.04184, allocations: 2.074 MB / 375.4 MB, free: 5.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.04189, allocations: 12.92 kB / 375.4 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004972/0.04239, allocations: 256 kB / 375.6 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004403/0.04679, allocations: 0.7815 MB / 376.4 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.04693, allocations: 112.6 kB / 376.5 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/0.04718, allocations: 140.3 kB / 376.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001991/0.04918, allocations: 0.8541 MB / 377.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.0492, allocations: 192 / 377.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.04933, allocations: 52.12 kB / 377.6 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.04936, allocations: 36 kB / 377.6 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004549/0.05391, allocations: 0.4979 MB / 378.1 MB, free: 3.105 MB / 298.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(delivery.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/0.07099, allocations: 3.732 MB / 381.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006484/0.07747, allocations: 1.147 MB / 383 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007663/0.07824, allocations: 270.5 kB / 383.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.54e-05/0.0783, allocations: 21 kB / 383.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.07835, allocations: 50.38 kB / 383.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 4.579e-06/0.07835, allocations: 0 / 383.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.007375/0.08573, allocations: 2.599 MB / 385.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.08578, allocations: 64.41 kB / 386 MB, free: 11.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008859/0.08666, allocations: 0.6282 MB / 386.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.77e-05/0.08675, allocations: 41.7 kB / 386.6 MB, free: 10.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004131/0.08716, allocations: 0.5735 MB / 387.2 MB, free: 9.766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000447/0.08761, allocations: 460.3 kB / 387.7 MB, free: 9.312 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004645/0.08807, allocations: 245.2 kB / 387.9 MB, free: 9.066 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000297/0.08837, allocations: 0.5977 MB / 388.5 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008983/0.08927, allocations: 338.2 kB / 388.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009677/0.09024, allocations: 0.5562 MB / 389.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/0.09275, allocations: 1.116 MB / 390.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.936e-06/0.09275, allocations: 0 / 390.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003225/0.09598, allocations: 1.351 MB / 391.9 MB, free: 4.824 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.09601, allocations: 15.11 kB / 391.9 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.09603, allocations: 4 kB / 391.9 MB, free: 4.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002172/0.0982, allocations: 0.5535 MB / 392.4 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.09991, allocations: 407.5 kB / 392.8 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1498/0.2497, allocations: 26.67 MB / 419.5 MB, free: 53.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00091/0.2506, allocations: 77.5 kB / 419.6 MB, free: 53.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.2507, allocations: 50.45 kB / 419.6 MB, free: 53.79 MB / 330.7 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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.pipeline.fluidStream.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (162): * Single equations (assignments): 147 * 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.0005752/0.2513, allocations: 243.8 kB / 419.9 MB, free: 53.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.2515, allocations: 128.8 kB / 420 MB, free: 53.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.2535, allocations: 1.14 MB / 421.1 MB, free: 53.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.2535, allocations: 9.625 kB / 421.1 MB, free: 53.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.2535, allocations: 4.125 kB / 421.1 MB, free: 53.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.2535, allocations: 6.578 kB / 421.1 MB, free: 53.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.2572, allocations: 2.404 MB / 423.5 MB, free: 52.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.2572, allocations: 3.125 kB / 423.6 MB, free: 52.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.2583, allocations: 347.5 kB / 423.9 MB, free: 52.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.2595, allocations: 0.5175 MB / 424.4 MB, free: 52.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.2596, allocations: 62.92 kB / 424.5 MB, free: 52.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006345/0.266, allocations: 26.12 MB / 450.6 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.266, allocations: 3.688 kB / 450.6 MB, free: 25.94 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.2684, allocations: 1.606 MB / 452.2 MB, free: 25.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.2686, allocations: 109.6 kB / 452.3 MB, free: 25.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.2688, allocations: 58.86 kB / 452.4 MB, free: 25.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.2692, allocations: 55.83 kB / 452.4 MB, free: 25.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.2694, allocations: 104.2 kB / 452.5 MB, free: 25.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/0.2695, allocations: 38.95 kB / 452.6 MB, free: 25.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003939/0.2699, allocations: 410.4 kB / 453 MB, free: 24.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2699, allocations: 0 / 453 MB, free: 24.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001155/0.271, allocations: 449.7 kB / 453.4 MB, free: 24.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (95): * Single equations (assignments): 80 * 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.0001964/0.2712, allocations: 178.8 kB / 453.6 MB, free: 24.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.2731, allocations: 3.325 MB / 456.9 MB, free: 21.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.2731, allocations: 384 / 456.9 MB, free: 21.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.2742, allocations: 2.902 MB / 459.8 MB, free: 19.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/0.275, allocations: 291 kB / 460.1 MB, free: 19.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004873/0.2798, allocations: 4.174 MB / 464.3 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.2801, allocations: 329.5 kB / 464.6 MB, free: 16.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005736/0.2807, allocations: 286.2 kB / 464.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.2809, allocations: 80.48 kB / 464.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of SimCode: time 2.675e-06/0.2809, allocations: 0 / 464.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of Templates: time 0.02371/0.3046, allocations: 25.05 MB / 490 MB, free: 7.125 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile [Timeout 660] (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_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=240 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.9590488739777356]