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.000886/0.000886, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005212/0.005212, allocations: 174 kB / 16.27 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.268/1.268, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.184/0.184, allocations: 22.34 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002629/0.0002629, allocations: 8 kB / 382.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2158, allocations: 55.99 MB / 438.6 MB, free: 39.22 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_component_models.Heater_power_vs_wTin.heater_wT): time 0.01852/0.2343, allocations: 21.5 MB / 460.1 MB, free: 31.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009699/0.2353, allocations: 0.6885 MB / 460.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.702e-05/0.2354, allocations: 7.312 kB / 460.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.2355, allocations: 28.75 kB / 460.8 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.2357, allocations: 99.3 kB / 460.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.236, allocations: 83.16 kB / 461 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.2364, allocations: 493.6 kB / 461.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.2366, allocations: 200.7 kB / 461.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.2368, allocations: 147.6 kB / 461.8 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.2371, allocations: 214.3 kB / 462 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.2371, allocations: 22.47 kB / 462.1 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.54e-05/0.2372, allocations: 21.56 kB / 462.1 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.508e-05/0.2373, allocations: 115.5 kB / 462.2 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.2374, allocations: 192.6 kB / 462.4 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.2377, allocations: 429.7 kB / 462.8 MB, free: 30.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2377, allocations: 5.031 kB / 462.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2377, allocations: 0 / 462.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2377, allocations: 0 / 462.8 MB, free: 30.21 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.001073/0.2388, allocations: 0.652 MB / 463.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.2389, allocations: 9.594 kB / 463.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.115e-05/0.2389, allocations: 35.16 kB / 463.5 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.2392, allocations: 301.4 kB / 463.8 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.2392, allocations: 18.84 kB / 463.8 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.2393, allocations: 24.56 kB / 463.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.24, allocations: 362.4 kB / 464.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.24, allocations: 0 / 464.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.24, allocations: 18.11 kB / 464.2 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.24, allocations: 6.562 kB / 464.2 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007322/0.2408, allocations: 350.5 kB / 464.6 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.2424, allocations: 1.267 MB / 465.8 MB, free: 28.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.243, allocations: 321.6 kB / 466.1 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004329/0.2434, allocations: 236.1 kB / 466.4 MB, free: 28.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.2435, allocations: 11.94 kB / 466.4 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.2435, allocations: 35.83 kB / 466.4 MB, free: 28.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.353e-06/0.2435, allocations: 3.938 kB / 466.4 MB, free: 28.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002763/0.2463, allocations: 1.293 MB / 467.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.801e-05/0.2463, allocations: 62.31 kB / 467.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.2465, allocations: 253.7 kB / 468 MB, free: 27.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.2466, allocations: 26.92 kB / 468 MB, free: 27.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.2466, allocations: 166.3 kB / 468.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.298e-05/0.2467, allocations: 105.3 kB / 468.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.2468, allocations: 30.16 kB / 468.3 MB, free: 26.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.565e-05/0.2468, allocations: 339.8 kB / 468.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.2472, allocations: 191.6 kB / 468.9 MB, free: 26.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003788/0.2476, allocations: 197.1 kB / 469.1 MB, free: 26.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007146/0.2483, allocations: 415.4 kB / 469.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2483, allocations: 0 / 469.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001341/0.2497, allocations: 0.6354 MB / 470.1 MB, free: 25.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.2497, allocations: 4 kB / 470.1 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2497, allocations: 0 / 470.1 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006651/0.2504, allocations: 170.1 kB / 470.3 MB, free: 25.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.2509, allocations: 108.2 kB / 470.4 MB, free: 25.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003514/0.2544, allocations: 7.075 MB / 477.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.2547, allocations: 46.7 kB / 477.5 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.2548, allocations: 11.28 kB / 477.5 MB, free: 17.55 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.0001223/0.2549, allocations: 157 kB / 477.7 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.701e-05/0.255, allocations: 31.56 kB / 477.7 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.2562, allocations: 0.6053 MB / 478.3 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.2562, allocations: 0 / 478.3 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2562, allocations: 4 kB / 478.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2562, allocations: 0 / 478.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.2566, allocations: 439.3 kB / 478.7 MB, free: 16.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2566, allocations: 4 kB / 478.7 MB, free: 16.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005297/0.2572, allocations: 97.7 kB / 478.8 MB, free: 16.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/0.2576, allocations: 142.6 kB / 479 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.2576, allocations: 11.38 kB / 479 MB, free: 16.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/0.2605, allocations: 6.688 MB / 485.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2606, allocations: 0 / 485.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.2621, allocations: 0.8923 MB / 486.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.2621, allocations: 112.7 kB / 486.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.2622, allocations: 11.38 kB / 486.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.2625, allocations: 30.55 kB / 486.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.2626, allocations: 33.55 kB / 486.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2626, allocations: 8 kB / 486.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.2627, allocations: 189.9 kB / 486.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2628, allocations: 3.938 kB / 486.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004089/0.2632, allocations: 119.9 kB / 487 MB, free: 7.77 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 9.583e-05/0.2633, allocations: 109.4 kB / 487.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001196/0.2645, allocations: 1.015 MB / 488.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2645, allocations: 0 / 488.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007254/0.2652, allocations: 0.8006 MB / 489 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.2656, allocations: 66.39 kB / 489 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.2682, allocations: 1.373 MB / 490.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.2684, allocations: 0.7922 MB / 491.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001833/0.2686, allocations: 56.11 kB / 491.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.302e-05/0.2687, allocations: 24.23 kB / 491.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2687, allocations: 0 / 491.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of Templates: time 0.008919/0.2776, allocations: 5.791 MB / 497.1 MB, free: 488 kB / 350.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)