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.007803/0.007803, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001905/0.001905, allocations: 197.3 kB / 16.79 MB, free: 6.254 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.301/1.301, allocations: 222.9 MB / 240.5 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2014/0.2014, allocations: 22.35 MB / 313 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.89 kB / 380.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2361, allocations: 54.94 MB / 435.7 MB, free: 39.51 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.02896/0.2651, allocations: 22.82 MB / 458.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2667, allocations: 0.9418 MB / 459.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/0.2669, allocations: 9.219 kB / 459.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.2671, allocations: 60.94 kB / 459.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.2674, allocations: 193.2 kB / 459.7 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005509/0.268, allocations: 181.4 kB / 459.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007585/0.2688, allocations: 1.101 MB / 461 MB, free: 29.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004726/0.2692, allocations: 492.9 kB / 461.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.2696, allocations: 343.2 kB / 461.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.27, allocations: 483.8 kB / 462.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.2701, allocations: 53.41 kB / 462.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2703, allocations: 54.69 kB / 462.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.2705, allocations: 262 kB / 462.7 MB, free: 29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.2708, allocations: 380.8 kB / 463 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.2712, allocations: 0.7311 MB / 463.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.2712, allocations: 0 / 463.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.2713, allocations: 0 / 463.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.2713, allocations: 0 / 463.8 MB, free: 28.58 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.00192/0.2732, allocations: 1.038 MB / 464.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.2732, allocations: 17.12 kB / 464.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.2734, allocations: 81.84 kB / 464.9 MB, free: 27.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.2739, allocations: 448.7 kB / 465.3 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.398e-05/0.274, allocations: 78.36 kB / 465.4 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.2741, allocations: 67.22 kB / 465.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.2752, allocations: 0.7166 MB / 466.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.2752, allocations: 4 kB / 466.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.539e-05/0.2753, allocations: 25.38 kB / 466.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.2753, allocations: 15.06 kB / 466.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.2763, allocations: 0.6485 MB / 466.9 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.2799, allocations: 2.783 MB / 469.7 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.2816, allocations: 0.6348 MB / 470.3 MB, free: 23.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.2822, allocations: 393.2 kB / 470.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.2822, allocations: 12.44 kB / 470.7 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.2822, allocations: 31 kB / 470.7 MB, free: 23.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.733e-06/0.2822, allocations: 3.938 kB / 470.7 MB, free: 23.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002532/0.2848, allocations: 1.504 MB / 472.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.2848, allocations: 59.84 kB / 472.3 MB, free: 21.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.2852, allocations: 427.5 kB / 472.7 MB, free: 21.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.2852, allocations: 37.7 kB / 472.7 MB, free: 21.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2853, allocations: 302.5 kB / 473 MB, free: 21.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.2855, allocations: 195.9 kB / 473.2 MB, free: 21.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.2856, allocations: 118.9 kB / 473.3 MB, free: 20.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.2857, allocations: 364.1 kB / 473.7 MB, free: 20.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00046/0.2862, allocations: 333.2 kB / 474 MB, free: 20.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.2866, allocations: 394.2 kB / 474.4 MB, free: 19.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00687/0.2935, allocations: 2.046 MB / 476.5 MB, free: 18.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.2935, allocations: 11.88 kB / 476.5 MB, free: 18.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001618/0.2952, allocations: 0.9649 MB / 477.4 MB, free: 17.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2952, allocations: 4.703 kB / 477.4 MB, free: 17.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2952, allocations: 4 kB / 477.4 MB, free: 17.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006291/0.2958, allocations: 166.6 kB / 477.6 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.2971, allocations: 231.4 kB / 477.8 MB, free: 17.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003649/0.3008, allocations: 7.059 MB / 484.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005912/0.3014, allocations: 73.92 kB / 485 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.3014, allocations: 27.33 kB / 485 MB, free: 9.504 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.0003256/0.3018, allocations: 226.1 kB / 485.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.789e-05/0.3019, allocations: 51.34 kB / 485.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.3033, allocations: 0.8226 MB / 486.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.3033, allocations: 8.703 kB / 486.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3034, allocations: 4 kB / 486.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3034, allocations: 6.562 kB / 486.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002502/0.3059, allocations: 1.683 MB / 487.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3059, allocations: 4 kB / 487.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.3069, allocations: 190.2 kB / 488 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004146/0.3074, allocations: 142.1 kB / 488.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.518e-05/0.3074, allocations: 23.42 kB / 488.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.3106, allocations: 6.682 MB / 494.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.3106, allocations: 4.031 kB / 494.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.3127, allocations: 1.262 MB / 496.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3129, allocations: 136.5 kB / 496.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.6e-05/0.313, allocations: 22.86 kB / 496.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.3134, allocations: 25.84 kB / 496.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.3135, allocations: 56.34 kB / 496.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-05/0.3136, allocations: 18.67 kB / 496.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003234/0.3139, allocations: 295.8 kB / 496.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3139, allocations: 0 / 496.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006926/0.3146, allocations: 235.5 kB / 496.9 MB, free: 13.64 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.0001497/0.3148, allocations: 121.2 kB / 497 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001743/0.3165, allocations: 1.286 MB / 498.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3166, allocations: 0 / 498.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3176, allocations: 0.8887 MB / 499.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006621/0.3182, allocations: 128 kB / 499.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.3217, allocations: 2.257 MB / 0.4898 GB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005091/0.3222, allocations: 0.9283 MB / 0.4907 GB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002844/0.3225, allocations: 61.44 kB / 0.4907 GB, free: 8.207 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3225, allocations: 0 / 0.4907 GB, free: 8.207 MB / 366.1 MB Notification: Performance of Templates: time 0.01984/0.3423, allocations: 18.8 MB / 0.5091 GB, free: 6.426 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)