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.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.001357/0.001357, allocations: 82.95 kB / 19.96 MB, free: 1.754 MB / 14.72 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.001555/0.001555, allocations: 162.8 kB / 23.23 MB, free: 4.883 MB / 14.72 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.563/1.563, allocations: 177.1 MB / 203.5 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.1069/0.1069, allocations: 18.14 MB / 278.1 MB, free: 15.04 MB / 270.1 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_component_models.Controlled_heater_case_003_ideal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 415.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.81e-05/3.016e-05, allocations: 6.219 kB / 415.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.00585/0.00588, allocations: 3.955 MB / 419.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.008631, allocations: 1.263 MB / 420.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004419/0.009072, allocations: 23.81 kB / 420.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005754/0.009648, allocations: 178.5 kB / 421 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.01068, allocations: 461 kB / 421.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009218/0.0116, allocations: 327.4 kB / 421.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002797/0.0144, allocations: 2.212 MB / 424 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001774/0.01617, allocations: 1.157 MB / 425.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.0177, allocations: 0.8148 MB / 425.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001469/0.01917, allocations: 0.8729 MB / 426.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003337/0.0195, allocations: 236 kB / 427 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004173/0.01992, allocations: 239.9 kB / 427.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007136/0.02063, allocations: 0.725 MB / 428 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009077/0.02154, allocations: 0.7018 MB / 428.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003019/0.02456, allocations: 2.708 MB / 431.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.02457, allocations: 4 kB / 431.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.02457, allocations: 0 / 431.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.625e-05/0.02461, allocations: 0 / 431.4 MB, free: 2.621 MB / 350.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.005067/0.02968, allocations: 1.958 MB / 433.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.02972, allocations: 8.922 kB / 433.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003515/0.03007, allocations: 152 kB / 433.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.03163, allocations: 0.8024 MB / 434.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.03176, allocations: 116.6 kB / 434.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002799/0.03204, allocations: 140.3 kB / 434.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003244/0.03528, allocations: 1.615 MB / 436.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.03531, allocations: 192 / 436.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.03546, allocations: 52.12 kB / 436.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.03549, allocations: 28 kB / 436.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002605/0.0381, allocations: 1.419 MB / 437.7 MB, free: 12.22 MB / 366.1 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.009833/0.04793, allocations: 4.723 MB / 442.4 MB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005203/0.05313, allocations: 1.867 MB / 444.3 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.05439, allocations: 0.7287 MB / 445 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.11e-05/0.05446, allocations: 12.94 kB / 445 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.05451, allocations: 47.56 kB / 445.1 MB, free: 4.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=104): time 5.109e-06/0.05451, allocations: 4 kB / 445.1 MB, free: 4.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.01056/0.06507, allocations: 4.664 MB / 449.7 MB, free: 24 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2008/0.2658, allocations: 60.91 kB / 449.8 MB, free: 46.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.2673, allocations: 0.6643 MB / 450.5 MB, free: 46.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000471/0.2678, allocations: 41.36 kB / 450.5 MB, free: 46.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/0.2683, allocations: 0.5131 MB / 451 MB, free: 45.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007331/0.2691, allocations: 440.8 kB / 451.5 MB, free: 45.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006778/0.2697, allocations: 239.6 kB / 451.7 MB, free: 45.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.2699, allocations: 412.2 kB / 452.1 MB, free: 45.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002252/0.2722, allocations: 0.856 MB / 452.9 MB, free: 44.92 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/0.2746, allocations: 1.019 MB / 454 MB, free: 44.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/0.2962, allocations: 4.489 MB / 458.5 MB, free: 42.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.752e-05/0.2962, allocations: 1.312 kB / 458.5 MB, free: 42.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.006827/0.303, allocations: 2.481 MB / 460.9 MB, free: 41.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.3031, allocations: 8.469 kB / 460.9 MB, free: 41.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.3031, allocations: 5.312 kB / 460.9 MB, free: 41.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002811/0.3059, allocations: 0.5359 MB / 461.5 MB, free: 41.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003252/0.3091, allocations: 407.1 kB / 461.9 MB, free: 41.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01777/0.3269, allocations: 21.08 MB / 483 MB, free: 21.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.3288, allocations: 71.8 kB / 483 MB, free: 21.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003716/0.3291, allocations: 50.75 kB / 483.1 MB, free: 21.61 MB / 366.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 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 (159): * Single equations (assignments): 144 * 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.001254/0.3304, allocations: 425.5 kB / 483.5 MB, free: 21.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/0.3307, allocations: 100.1 kB / 483.6 MB, free: 21.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00523/0.3359, allocations: 1.999 MB / 485.6 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.3359, allocations: 15.44 kB / 485.6 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.089e-05/0.3359, allocations: 3.781 kB / 485.6 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.336, allocations: 3.797 kB / 485.6 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006553/0.3425, allocations: 3.523 MB / 489.1 MB, free: 17.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.3425, allocations: 8 kB / 489.1 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/0.3445, allocations: 344 kB / 489.5 MB, free: 17.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/0.3457, allocations: 480.5 kB / 489.9 MB, free: 17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/0.3458, allocations: 63.97 kB / 490 MB, free: 16.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.3575, allocations: 20.2 MB / 0.4983 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.3575, allocations: 3.984 kB / 0.4983 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005554/0.3631, allocations: 2.789 MB / 0.501 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.3634, allocations: 103.4 kB / 0.5011 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.3636, allocations: 59.98 kB / 0.5011 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.3645, allocations: 59.86 kB / 0.5012 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003091/0.3648, allocations: 104.7 kB / 0.5013 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.3649, allocations: 39.98 kB / 0.5013 GB, free: 7.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006294/0.3656, allocations: 462.9 kB / 0.5018 GB, free: 7.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3656, allocations: 0 / 0.5018 GB, free: 7.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001564/0.3671, allocations: 448 kB / 0.5022 GB, free: 7.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (92): * Single equations (assignments): 77 * 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.0002878/0.3674, allocations: 186.2 kB / 0.5024 GB, free: 6.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004904/0.3723, allocations: 3.375 MB / 0.5057 GB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3723, allocations: 0 / 0.5057 GB, free: 3.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003048/0.3754, allocations: 2.454 MB / 0.5081 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.3766, allocations: 317.5 kB / 0.5084 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008887/0.3855, allocations: 4.768 MB / 0.513 GB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00088/0.3864, allocations: 0.6787 MB / 0.5137 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009977/0.3874, allocations: 351.6 kB / 0.514 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003991/0.3878, allocations: 76.48 kB / 0.5141 GB, free: 10.46 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3878, allocations: 0 / 0.5141 GB, free: 10.46 MB / 398.1 MB Notification: Performance of Templates: time 0.04581/0.4336, allocations: 24.74 MB / 0.5383 GB, free: 2.09 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.115726303309202] Failed to read output from testmodel.py, exit status != 0: 0.4436097666621208 0.45899461 0.431220947 Calling exit ...