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.001004/0.001004, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00108/0.00108, allocations: 191.7 kB / 16.25 MB, free: 6.648 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.302/1.302, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2067/0.2067, allocations: 22.36 MB / 312.4 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 59.91 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2775, allocations: 54.94 MB / 435.2 MB, free: 39.5 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.0309/0.3084, allocations: 22.92 MB / 458.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.3105, allocations: 0.945 MB / 459.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002368/0.3108, allocations: 10.28 kB / 459.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.311, allocations: 61.88 kB / 459.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.3114, allocations: 193 kB / 459.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004699/0.3118, allocations: 184.6 kB / 459.5 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007015/0.3125, allocations: 0.8779 MB / 460.4 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000539/0.3131, allocations: 0.5516 MB / 461 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003801/0.3135, allocations: 391.2 kB / 461.4 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000519/0.314, allocations: 496.7 kB / 461.8 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.3142, allocations: 80.97 kB / 461.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.3143, allocations: 80.22 kB / 462 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.3146, allocations: 283.3 kB / 462.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.3149, allocations: 409.1 kB / 462.7 MB, free: 28.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006575/0.3156, allocations: 0.9483 MB / 463.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3156, allocations: 4 kB / 463.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3156, allocations: 0.9688 kB / 463.6 MB, free: 28.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3156, allocations: 0 / 463.6 MB, free: 28.25 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.001982/0.3176, allocations: 1.04 MB / 464.7 MB, free: 27.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3177, allocations: 10 kB / 464.7 MB, free: 27.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3178, allocations: 78.12 kB / 464.8 MB, free: 27.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.3184, allocations: 453.9 kB / 465.2 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.573e-05/0.3185, allocations: 78.77 kB / 465.3 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3186, allocations: 66.09 kB / 465.3 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001212/0.3198, allocations: 0.7198 MB / 466.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.3198, allocations: 3.938 kB / 466.1 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.466e-05/0.3199, allocations: 25.28 kB / 466.1 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.32, allocations: 18.81 kB / 466.1 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009782/0.3209, allocations: 0.6515 MB / 466.8 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.3246, allocations: 2.764 MB / 469.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.3262, allocations: 0.6437 MB / 470.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005614/0.3267, allocations: 388.9 kB / 470.5 MB, free: 23.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.279e-05/0.3268, allocations: 8.422 kB / 470.6 MB, free: 23.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3268, allocations: 39 kB / 470.6 MB, free: 22.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.134e-06/0.3268, allocations: 4 kB / 470.6 MB, free: 22.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002584/0.3294, allocations: 1.504 MB / 472.1 MB, free: 21.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.311e-05/0.3295, allocations: 55.84 kB / 472.2 MB, free: 21.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.3298, allocations: 428 kB / 472.6 MB, free: 21.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.3299, allocations: 33.7 kB / 472.6 MB, free: 21.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.33, allocations: 294.1 kB / 472.9 MB, free: 20.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.3301, allocations: 195.7 kB / 473.1 MB, free: 20.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.3303, allocations: 122.4 kB / 473.2 MB, free: 20.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.619e-05/0.3304, allocations: 367.5 kB / 473.6 MB, free: 20.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.3308, allocations: 343.4 kB / 473.9 MB, free: 19.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.3313, allocations: 382.8 kB / 474.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006866/0.3382, allocations: 2.057 MB / 476.3 MB, free: 17.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3382, allocations: 7.875 kB / 476.3 MB, free: 17.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001679/0.3399, allocations: 0.9687 MB / 477.3 MB, free: 17.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3399, allocations: 8.938 kB / 477.3 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3399, allocations: 0 / 477.3 MB, free: 17.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006406/0.3406, allocations: 170.7 kB / 477.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.3418, allocations: 226.5 kB / 477.7 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004559/0.3464, allocations: 7.605 MB / 485.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008439/0.3472, allocations: 74.55 kB / 485.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-05/0.3473, allocations: 22.77 kB / 485.4 MB, free: 8.512 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.000388/0.3477, allocations: 226.3 kB / 485.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.909e-05/0.3478, allocations: 47.44 kB / 485.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.3493, allocations: 0.8306 MB / 486.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3493, allocations: 8.734 kB / 486.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3493, allocations: 4 kB / 486.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3493, allocations: 6.25 kB / 486.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.3518, allocations: 1.683 MB / 488.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.3518, allocations: 0 / 488.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.3529, allocations: 186.2 kB / 488.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004206/0.3533, allocations: 150 kB / 488.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.434e-05/0.3534, allocations: 24.08 kB / 488.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003828/0.3572, allocations: 7.207 MB / 495.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3573, allocations: 0.6094 kB / 495.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.3594, allocations: 1.266 MB / 497 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.3596, allocations: 140.5 kB / 497.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.3597, allocations: 22.47 kB / 497.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004717/0.3602, allocations: 25.86 kB / 497.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.3604, allocations: 48.5 kB / 497.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-05/0.3604, allocations: 17.97 kB / 497.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003457/0.3608, allocations: 299.4 kB / 497.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3608, allocations: 0 / 497.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007677/0.3616, allocations: 231.5 kB / 497.8 MB, free: 12.11 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.0001843/0.3618, allocations: 129.7 kB / 497.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.364, allocations: 1.366 MB / 499.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.364, allocations: 0 / 499.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.3651, allocations: 0.8894 MB / 0.4885 GB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.3658, allocations: 146.6 kB / 0.4886 GB, free: 9.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.3697, allocations: 2.199 MB / 0.4907 GB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006001/0.3703, allocations: 0.9286 MB / 0.4916 GB, free: 6.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005901/0.3709, allocations: 131 kB / 0.4918 GB, free: 6.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.3711, allocations: 47.84 kB / 0.4918 GB, free: 6.539 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3711, allocations: 0 / 0.4918 GB, free: 6.539 MB / 366.1 MB Notification: Performance of Templates: time 0.01975/0.3909, allocations: 9.997 MB / 0.5016 GB, free: 13.64 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)