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.001318/0.001318, 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.001514/0.001514, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.339/1.339, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2231/0.2231, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00231/0.00231, allocations: 55.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3207, allocations: 54.94 MB / 435.2 MB, free: 39.71 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.03225/0.353, allocations: 22.12 MB / 457.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3544, allocations: 0.6931 MB / 458 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.3546, allocations: 3.312 kB / 458.1 MB, free: 31.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.3547, allocations: 28.39 kB / 458.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.355, allocations: 103.8 kB / 458.2 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.3553, allocations: 86.81 kB / 458.3 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003623/0.3556, allocations: 410.5 kB / 458.7 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.356, allocations: 238.2 kB / 458.9 MB, free: 30.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.3561, allocations: 176.5 kB / 459.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.3564, allocations: 234.9 kB / 459.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.3565, allocations: 39 kB / 459.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.3566, allocations: 38.69 kB / 459.4 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.78e-05/0.3567, allocations: 126.2 kB / 459.5 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.3568, allocations: 189.7 kB / 459.7 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.3572, allocations: 454.5 kB / 460.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3572, allocations: 5.219 kB / 460.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3572, allocations: 0 / 460.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.3572, allocations: 0 / 460.1 MB, free: 30.32 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.0012/0.3584, allocations: 0.6751 MB / 460.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3584, allocations: 8.438 kB / 460.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.831e-05/0.3585, allocations: 34.56 kB / 460.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003262/0.3589, allocations: 310.4 kB / 461.2 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.3589, allocations: 15 kB / 461.2 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.359, allocations: 25 kB / 461.2 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006464/0.3596, allocations: 347.8 kB / 461.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3596, allocations: 0 / 461.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.3597, allocations: 22.73 kB / 461.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.3597, allocations: 5.75 kB / 461.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006764/0.3604, allocations: 327 kB / 461.9 MB, free: 29.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3621, allocations: 1.258 MB / 463.1 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000595/0.3627, allocations: 308.6 kB / 463.4 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/0.3633, allocations: 226 kB / 463.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.3633, allocations: 14.3 kB / 463.7 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3633, allocations: 36.33 kB / 463.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.933e-06/0.3634, allocations: 0 / 463.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002974/0.3663, allocations: 1.232 MB / 464.9 MB, free: 27.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.3664, allocations: 58.66 kB / 465 MB, free: 27.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.3667, allocations: 253.3 kB / 465.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.3667, allocations: 30.67 kB / 465.3 MB, free: 27.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.3668, allocations: 163.6 kB / 465.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.3669, allocations: 101.1 kB / 465.5 MB, free: 26.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.367, allocations: 59.19 kB / 465.6 MB, free: 26.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.609e-05/0.3671, allocations: 339.8 kB / 465.9 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.3674, allocations: 178.3 kB / 466.1 MB, free: 26.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.3678, allocations: 187.7 kB / 466.3 MB, free: 26.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006605/0.3685, allocations: 388.2 kB / 466.7 MB, free: 26.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3685, allocations: 8 kB / 466.7 MB, free: 26.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001275/0.3698, allocations: 0.601 MB / 467.3 MB, free: 25.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3698, allocations: 4 kB / 467.3 MB, free: 25.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3698, allocations: 0 / 467.3 MB, free: 25.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006856/0.3705, allocations: 168.6 kB / 467.4 MB, free: 25.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005415/0.371, allocations: 103.8 kB / 467.5 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004219/0.3753, allocations: 7.594 MB / 475.1 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003968/0.3757, allocations: 40.25 kB / 475.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.3757, allocations: 13.03 kB / 475.2 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.0001989/0.3759, allocations: 161.8 kB / 475.3 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.376, allocations: 27.72 kB / 475.4 MB, free: 17.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.3772, allocations: 0.5779 MB / 476 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3772, allocations: 0 / 476 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3772, allocations: 4 kB / 476 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3772, allocations: 3.281 kB / 476 MB, free: 16.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.3776, allocations: 446.8 kB / 476.4 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3776, allocations: 0 / 476.4 MB, free: 16.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000493/0.3781, allocations: 88.22 kB / 476.5 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004344/0.3786, allocations: 144.4 kB / 476.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.3786, allocations: 12 kB / 476.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/0.3819, allocations: 7.209 MB / 483.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3819, allocations: 0 / 483.8 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.3833, allocations: 0.8577 MB / 484.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.83e-05/0.3834, allocations: 108.1 kB / 484.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.3834, allocations: 8.062 kB / 484.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.3837, allocations: 26.22 kB / 484.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3838, allocations: 44.31 kB / 484.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.3839, allocations: 7.938 kB / 484.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.384, allocations: 188.6 kB / 485.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.384, allocations: 0 / 485.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004885/0.3845, allocations: 123.8 kB / 485.2 MB, free: 6.953 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.0001351/0.3847, allocations: 110.5 kB / 485.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.3859, allocations: 1.016 MB / 486.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3859, allocations: 4 kB / 486.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007056/0.3866, allocations: 0.7766 MB / 487.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.3871, allocations: 68.95 kB / 487.2 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00268/0.3898, allocations: 1.288 MB / 488.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.39, allocations: 0.7949 MB / 489.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.3902, allocations: 48.7 kB / 489.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.3903, allocations: 31.28 kB / 489.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3903, allocations: 0 / 489.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of Templates: time 0.01055/0.4008, allocations: 6.151 MB / 495.5 MB, free: 15.51 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)