Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009603/0.0009603, allocations: 98.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 179.6 kB / 16.92 MB, free: 6.918 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.318/1.318, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1975/0.1975, allocations: 22.35 MB / 314.4 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005053/0.0005055, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2921, allocations: 55.98 MB / 439.2 MB, free: 39.19 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop): time 0.02501/0.3172, allocations: 22.41 MB / 461.7 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.3189, allocations: 0.9394 MB / 462.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003305/0.3192, allocations: 9.375 kB / 462.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002149/0.3194, allocations: 58.69 kB / 462.7 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004585/0.3199, allocations: 198.4 kB / 462.9 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005413/0.3205, allocations: 178.8 kB / 463 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009645/0.3214, allocations: 1.105 MB / 464.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005952/0.322, allocations: 470.1 kB / 464.6 MB, free: 29.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004957/0.3225, allocations: 327.4 kB / 464.9 MB, free: 29.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006153/0.3232, allocations: 452.6 kB / 465.4 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000145/0.3233, allocations: 44.88 kB / 465.4 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.3235, allocations: 50.72 kB / 465.4 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.3237, allocations: 243.4 kB / 465.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.3241, allocations: 399 kB / 466.1 MB, free: 28.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.3246, allocations: 0.7091 MB / 466.8 MB, free: 28.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3246, allocations: 0 / 466.8 MB, free: 28.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3246, allocations: 1.406 kB / 466.8 MB, free: 28.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.175e-05/0.3247, allocations: 0 / 466.8 MB, free: 28.55 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.00181/0.3265, allocations: 0.9319 MB / 467.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3265, allocations: 13.09 kB / 467.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001412/0.3267, allocations: 82.53 kB / 467.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.3272, allocations: 450 kB / 468.3 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.896e-05/0.3273, allocations: 78.81 kB / 468.3 MB, free: 27.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.3274, allocations: 66.59 kB / 468.4 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.3286, allocations: 0.7153 MB / 469.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3286, allocations: 0 / 469.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.3287, allocations: 26.66 kB / 469.1 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.3287, allocations: 16 kB / 469.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009419/0.3297, allocations: 0.6465 MB / 469.8 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/0.3335, allocations: 2.802 MB / 472.6 MB, free: 24.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.3351, allocations: 0.6519 MB / 473.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006155/0.3358, allocations: 408.9 kB / 473.7 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.3358, allocations: 8.422 kB / 473.7 MB, free: 23.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.3358, allocations: 42.94 kB / 473.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.545e-06/0.3359, allocations: 0 / 473.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002645/0.3385, allocations: 1.532 MB / 475.2 MB, free: 21.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.3385, allocations: 63.84 kB / 475.3 MB, free: 21.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003715/0.3389, allocations: 425.3 kB / 475.7 MB, free: 21.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.339, allocations: 33.7 kB / 475.7 MB, free: 21.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3391, allocations: 298.2 kB / 476 MB, free: 20.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.3392, allocations: 196.9 kB / 476.2 MB, free: 20.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.971e-05/0.3393, allocations: 55.77 kB / 476.3 MB, free: 20.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.859e-05/0.3394, allocations: 365.2 kB / 476.6 MB, free: 20.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.3399, allocations: 336.2 kB / 477 MB, free: 20.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004688/0.3403, allocations: 391.2 kB / 477.3 MB, free: 19.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007282/0.3476, allocations: 2.213 MB / 479.6 MB, free: 17.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.3476, allocations: 3.938 kB / 479.6 MB, free: 17.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001749/0.3494, allocations: 0.9769 MB / 480.5 MB, free: 17.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3494, allocations: 8 kB / 480.5 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.3495, allocations: 0.7031 kB / 480.6 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006212/0.3501, allocations: 174.9 kB / 480.7 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3513, allocations: 230.1 kB / 480.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0038/0.3551, allocations: 7.075 MB / 488 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/0.3558, allocations: 78.23 kB / 488.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.299e-05/0.3559, allocations: 23.09 kB / 488.1 MB, free: 9.094 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0003691/0.3562, allocations: 229.8 kB / 488.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.3564, allocations: 51.98 kB / 488.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.3579, allocations: 0.8264 MB / 489.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3579, allocations: 8 kB / 489.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3579, allocations: 0.7031 kB / 489.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3579, allocations: 6.844 kB / 489.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/0.3606, allocations: 1.69 MB / 490.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3607, allocations: 0 / 490.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.3618, allocations: 181.9 kB / 491.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/0.3622, allocations: 154 kB / 491.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.987e-05/0.3623, allocations: 19.38 kB / 491.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/0.3658, allocations: 6.688 MB / 498 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3658, allocations: 4.594 kB / 498 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3682, allocations: 1.265 MB / 499.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.3684, allocations: 132.9 kB / 499.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3686, allocations: 26.28 kB / 499.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004899/0.3691, allocations: 26.38 kB / 499.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.3693, allocations: 56.06 kB / 499.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/0.3694, allocations: 22.14 kB / 499.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003632/0.3697, allocations: 295.9 kB / 499.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3697, allocations: 0 / 499.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008037/0.3705, allocations: 231.5 kB / 0.4883 GB, free: 13.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 13 (stream_loss.T[1],stream_loss.T[2],stream_loss.T[3],stream_loss.T[4],stream_loss.T[5],stream_load.T[1],stream_load.T[2],stream_load.T[3],stream_load.T[4],stream_load.T[5],heater.Tfo,heater.Ec,heater.xpi) * 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 (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0001682/0.3707, allocations: 131 kB / 0.4884 GB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.3728, allocations: 1.286 MB / 0.4897 GB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3729, allocations: 0 / 0.4897 GB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.3739, allocations: 0.8932 MB / 0.4905 GB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008183/0.3748, allocations: 128.1 kB / 0.4907 GB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.3787, allocations: 2.437 MB / 0.493 GB, free: 8.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.3792, allocations: 0.9328 MB / 0.494 GB, free: 7.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003157/0.3796, allocations: 57.48 kB / 0.494 GB, free: 7.688 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3796, allocations: 0 / 0.494 GB, free: 7.688 MB / 366.1 MB Notification: Performance of Templates: time 0.02191/0.4015, allocations: 18.75 MB / 0.5123 GB, free: 5.707 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)