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.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001387/0.001386, allocations: 198.2 kB / 16.14 MB, free: 6.746 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1964/0.1964, allocations: 22.34 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.89 kB / 380.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.279, allocations: 54.94 MB / 435 MB, free: 39.67 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.03396/0.313, allocations: 22.12 MB / 457.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3145, allocations: 0.6926 MB / 457.9 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002644/0.3148, allocations: 3.219 kB / 457.9 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.315, allocations: 28.91 kB / 457.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003317/0.3153, allocations: 103.2 kB / 458 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.3158, allocations: 86.55 kB / 458.1 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005784/0.3164, allocations: 494 kB / 458.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003699/0.3167, allocations: 209.1 kB / 458.8 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.317, allocations: 158.2 kB / 458.9 MB, free: 30.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003628/0.3174, allocations: 227.5 kB / 459.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.869e-05/0.3175, allocations: 25.31 kB / 459.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3176, allocations: 25.56 kB / 459.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.3178, allocations: 109.6 kB / 459.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.318, allocations: 183.9 kB / 459.5 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.3184, allocations: 438.4 kB / 459.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3184, allocations: 1.312 kB / 459.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.3184, allocations: 0 / 459.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.3184, allocations: 0 / 459.9 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.001499/0.3199, allocations: 0.6857 MB / 460.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.32, allocations: 9.906 kB / 460.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.3201, allocations: 34.31 kB / 460.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.3205, allocations: 300.1 kB / 460.9 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.3205, allocations: 19.19 kB / 460.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.3206, allocations: 24.19 kB / 461 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007125/0.3213, allocations: 349 kB / 461.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3213, allocations: 5.078 kB / 461.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.3214, allocations: 9.344 kB / 461.3 MB, free: 29.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.3214, allocations: 9.375 kB / 461.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007221/0.3221, allocations: 327.7 kB / 461.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.324, allocations: 1.253 MB / 462.9 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/0.3246, allocations: 311.3 kB / 463.2 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/0.325, allocations: 224.8 kB / 463.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.3251, allocations: 6.406 kB / 463.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.3251, allocations: 40.61 kB / 463.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.3251, allocations: 0 / 463.5 MB, free: 28.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002731/0.3278, allocations: 1.23 MB / 464.7 MB, free: 27.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.3279, allocations: 63.28 kB / 464.8 MB, free: 27.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.3282, allocations: 255.3 kB / 465 MB, free: 27.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.3282, allocations: 34.64 kB / 465 MB, free: 27.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.759e-05/0.3283, allocations: 167.1 kB / 465.2 MB, free: 26.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.3284, allocations: 96.84 kB / 465.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.3285, allocations: 59.02 kB / 465.4 MB, free: 26.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.239e-05/0.3286, allocations: 337.1 kB / 465.7 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003881/0.329, allocations: 178.8 kB / 465.9 MB, free: 26.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.3294, allocations: 183.1 kB / 466 MB, free: 26.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007603/0.3301, allocations: 397.5 kB / 466.4 MB, free: 26.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3302, allocations: 0 / 466.4 MB, free: 26.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001308/0.3315, allocations: 0.5975 MB / 467 MB, free: 25.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3315, allocations: 8 kB / 467 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3315, allocations: 0 / 467 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.3322, allocations: 172.1 kB / 467.2 MB, free: 25.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3327, allocations: 100.3 kB / 467.3 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/0.3366, allocations: 7.07 MB / 474.4 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004178/0.337, allocations: 34.33 kB / 474.4 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.337, allocations: 11.28 kB / 474.4 MB, free: 17.94 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.0001801/0.3372, allocations: 157 kB / 474.6 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.3373, allocations: 35.56 kB / 474.6 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.3385, allocations: 0.5697 MB / 475.2 MB, free: 17.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3385, allocations: 8.078 kB / 475.2 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3385, allocations: 4 kB / 475.2 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3385, allocations: 3.469 kB / 475.2 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004857/0.339, allocations: 446.2 kB / 475.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.339, allocations: 0 / 475.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.3395, allocations: 89.08 kB / 475.7 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.34, allocations: 146.8 kB / 475.9 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.3401, allocations: 11 kB / 475.9 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.3434, allocations: 6.679 MB / 482.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3434, allocations: 0 / 482.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.3451, allocations: 0.8613 MB / 483.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.3453, allocations: 107.9 kB / 483.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.389e-05/0.3453, allocations: 8 kB / 483.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.3457, allocations: 26.42 kB / 483.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.3458, allocations: 33.69 kB / 483.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.3459, allocations: 4 kB / 483.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.346, allocations: 187.8 kB / 483.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3461, allocations: 0 / 483.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006128/0.3467, allocations: 123.8 kB / 483.9 MB, free: 8.238 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.0001861/0.3469, allocations: 122.2 kB / 484 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3482, allocations: 0.9851 MB / 485 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3482, allocations: 0 / 485 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.349, allocations: 0.7841 MB / 485.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.3495, allocations: 65.55 kB / 485.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3522, allocations: 1.289 MB / 487.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.3525, allocations: 0.8028 MB / 487.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.3527, allocations: 46.86 kB / 488 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.803e-05/0.3528, allocations: 25.31 kB / 488 MB, free: 4.277 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3528, allocations: 0 / 488 MB, free: 4.277 MB / 350.1 MB Notification: Performance of Templates: time 0.01141/0.3642, allocations: 5.874 MB / 493.9 MB, free: 0.9336 MB / 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)