Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 108 kB / 15.6 MB, free: 132 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.001497/0.001497, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2314/0.2314, allocations: 22.35 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001505, allocations: 63.89 kB / 380.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2949, allocations: 54.93 MB / 435.8 MB, free: 39.63 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_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/flowOnePort_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_component_models.Heater_power_vs_wTin.heater_wT): time 0.0328/0.3277, allocations: 21.95 MB / 457.7 MB, free: 31.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3295, allocations: 0.6733 MB / 458.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.3297, allocations: 10.16 kB / 458.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.3298, allocations: 33.2 kB / 458.5 MB, free: 31.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.3301, allocations: 114.5 kB / 458.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.3305, allocations: 99.8 kB / 458.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.3309, allocations: 410.1 kB / 459.1 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000323/0.3312, allocations: 243.9 kB / 459.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.3315, allocations: 172.4 kB / 459.5 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003164/0.3318, allocations: 221.1 kB / 459.7 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.689e-05/0.3319, allocations: 42.09 kB / 459.7 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.784e-05/0.332, allocations: 38.97 kB / 459.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.3321, allocations: 129.3 kB / 459.9 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.3323, allocations: 200.6 kB / 460.1 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004427/0.3328, allocations: 446.7 kB / 460.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3328, allocations: 0 / 460.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3328, allocations: 0 / 460.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.3328, allocations: 0 / 460.5 MB, free: 30.35 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001297/0.3341, allocations: 0.6762 MB / 461.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.3342, allocations: 17.69 kB / 461.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.924e-05/0.3343, allocations: 33.91 kB / 461.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.3346, allocations: 301.7 kB / 461.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3347, allocations: 14.91 kB / 461.6 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.3347, allocations: 28.19 kB / 461.6 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000684/0.3354, allocations: 350 kB / 461.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3354, allocations: 0 / 461.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.612e-05/0.3355, allocations: 10.19 kB / 461.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.3355, allocations: 9.719 kB / 461.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.3362, allocations: 323.6 kB / 462.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.3382, allocations: 1.254 MB / 463.5 MB, free: 28.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006407/0.3389, allocations: 307.4 kB / 463.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004639/0.3394, allocations: 230.8 kB / 464 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.3394, allocations: 10.59 kB / 464.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3394, allocations: 37.17 kB / 464.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.423e-06/0.3394, allocations: 3.938 kB / 464.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002756/0.3422, allocations: 1.232 MB / 465.3 MB, free: 27.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.3422, allocations: 57.78 kB / 465.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.3425, allocations: 257.5 kB / 465.6 MB, free: 27.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.3426, allocations: 31.14 kB / 465.7 MB, free: 27.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.014e-05/0.3427, allocations: 163.8 kB / 465.8 MB, free: 26.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.129e-05/0.3428, allocations: 92.81 kB / 465.9 MB, free: 26.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.3429, allocations: 63.39 kB / 466 MB, free: 26.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.136e-05/0.343, allocations: 337.9 kB / 466.3 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.3434, allocations: 178.9 kB / 466.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.3437, allocations: 181 kB / 466.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006807/0.3444, allocations: 400.3 kB / 467 MB, free: 26.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3444, allocations: 0 / 467 MB, free: 26.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00132/0.3458, allocations: 0.5974 MB / 467.6 MB, free: 25.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3458, allocations: 8 kB / 467.7 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3458, allocations: 0 / 467.7 MB, free: 25.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006964/0.3465, allocations: 176.2 kB / 467.8 MB, free: 25.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005194/0.347, allocations: 88.92 kB / 467.9 MB, free: 25.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004068/0.3511, allocations: 7.611 MB / 475.5 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.3515, allocations: 42.23 kB / 475.6 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3515, allocations: 12.09 kB / 475.6 MB, free: 17.21 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 26 * 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.0001711/0.3517, allocations: 165.2 kB / 475.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.3518, allocations: 23.72 kB / 475.8 MB, free: 17.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.353, allocations: 0.5719 MB / 476.3 MB, free: 16.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.353, allocations: 8 kB / 476.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.353, allocations: 0 / 476.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.353, allocations: 3.234 kB / 476.3 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004291/0.3535, allocations: 449.8 kB / 476.8 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3535, allocations: 0 / 476.8 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.354, allocations: 89.84 kB / 476.9 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004421/0.3544, allocations: 138.6 kB / 477 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.3545, allocations: 15.33 kB / 477 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/0.3577, allocations: 7.204 MB / 484.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3578, allocations: 0 / 484.2 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.3593, allocations: 0.8605 MB / 485.1 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.879e-05/0.3594, allocations: 104.7 kB / 485.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.037e-05/0.3594, allocations: 11.02 kB / 485.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.3597, allocations: 26.17 kB / 485.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.471e-05/0.3598, allocations: 40.89 kB / 485.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.3599, allocations: 4.125 kB / 485.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.36, allocations: 188.8 kB / 485.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.36, allocations: 0 / 485.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005082/0.3605, allocations: 123.8 kB / 485.6 MB, free: 6.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (24): * Single equations (assignments): 19 * 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.0001374/0.3607, allocations: 118.9 kB / 485.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.362, allocations: 1.021 MB / 486.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.362, allocations: 0 / 486.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000758/0.3627, allocations: 0.775 MB / 487.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.3632, allocations: 67.75 kB / 487.5 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.3661, allocations: 1.185 MB / 488.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3664, allocations: 0.7902 MB / 489.5 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002183/0.3667, allocations: 51.17 kB / 489.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.775e-05/0.3668, allocations: 32.94 kB / 489.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3668, allocations: 0 / 489.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of Templates: time 0.01081/0.3776, allocations: 6.223 MB / 495.8 MB, free: 15.58 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & ./AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)