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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007959/0.0007959, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.000865/0.000865, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2437/0.2437, allocations: 22.35 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003286/0.0003286, allocations: 8 kB / 382.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3221, allocations: 55.98 MB / 438 MB, free: 39.4 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.002091/0.3242, allocations: 2.177 MB / 440.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008433/0.325, allocations: 0.658 MB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.3252, allocations: 2.875 kB / 440.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.3253, allocations: 36.14 kB / 440.9 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.3255, allocations: 108.8 kB / 441 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.3258, allocations: 81.95 kB / 441.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.3262, allocations: 434.8 kB / 441.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.3264, allocations: 189.9 kB / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.3266, allocations: 143.1 kB / 441.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.3269, allocations: 220.6 kB / 442.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.327, allocations: 21.28 kB / 442.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.304e-05/0.327, allocations: 23.19 kB / 442.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.606e-05/0.3271, allocations: 109.6 kB / 442.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.992e-05/0.3272, allocations: 81.33 kB / 442.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.3275, allocations: 327.6 kB / 442.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3275, allocations: 3.422 kB / 442.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3275, allocations: 0 / 442.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3275, allocations: 3.938 kB / 442.6 MB, free: 36.68 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.00113/0.3286, allocations: 0.6507 MB / 443.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3287, allocations: 8.562 kB / 443.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.656e-05/0.3288, allocations: 61.69 kB / 443.3 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.323e-05/0.3288, allocations: 32.78 kB / 443.4 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.3292, allocations: 298.7 kB / 443.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3292, allocations: 18.97 kB / 443.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.3292, allocations: 22.34 kB / 443.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006507/0.3299, allocations: 359.3 kB / 444.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3299, allocations: 2.656 kB / 444.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.33, allocations: 8 kB / 444.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.33, allocations: 5.844 kB / 444.1 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000667/0.3307, allocations: 354.1 kB / 444.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.3323, allocations: 1.271 MB / 445.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004984/0.3328, allocations: 315.8 kB / 446 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004032/0.3332, allocations: 237.8 kB / 446.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.3333, allocations: 3.266 kB / 446.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.3333, allocations: 38.12 kB / 446.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.394e-06/0.3333, allocations: 4 kB / 446.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002388/0.3357, allocations: 1.291 MB / 447.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.3358, allocations: 55.36 kB / 447.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.336, allocations: 258.5 kB / 447.9 MB, free: 33.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.336, allocations: 37.14 kB / 447.9 MB, free: 33.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/0.3361, allocations: 163.6 kB / 448.1 MB, free: 33.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.3362, allocations: 100.3 kB / 448.2 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.058e-05/0.3362, allocations: 6.875 kB / 448.2 MB, free: 33.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.863e-05/0.3363, allocations: 338.8 kB / 448.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003377/0.3366, allocations: 193.7 kB / 448.7 MB, free: 32.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003254/0.3369, allocations: 186.3 kB / 448.9 MB, free: 32.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.3373, allocations: 212.2 kB / 449.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3373, allocations: 0 / 449.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001251/0.3386, allocations: 0.6388 MB / 449.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3386, allocations: 13.33 kB / 449.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3386, allocations: 0 / 449.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006595/0.3393, allocations: 176 kB / 449.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.3398, allocations: 94.75 kB / 450 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003875/0.3437, allocations: 7.068 MB / 457.1 MB, free: 25.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.344, allocations: 43.81 kB / 457.1 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.344, allocations: 11.88 kB / 457.1 MB, free: 25.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.3442, allocations: 160.2 kB / 457.3 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.232e-05/0.3442, allocations: 25.47 kB / 457.3 MB, free: 25.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.3454, allocations: 0.5982 MB / 457.9 MB, free: 24.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3454, allocations: 6.578 kB / 457.9 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3454, allocations: 2.625 kB / 457.9 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3454, allocations: 4 kB / 457.9 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.3458, allocations: 443.9 kB / 458.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3458, allocations: 0 / 458.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3463, allocations: 93.27 kB / 458.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000414/0.3467, allocations: 150.5 kB / 458.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.3468, allocations: 14.48 kB / 458.6 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.3502, allocations: 6.682 MB / 465.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3502, allocations: 0 / 465.3 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.3521, allocations: 0.8925 MB / 466.2 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.807e-05/0.3522, allocations: 104.1 kB / 466.3 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.3523, allocations: 10.97 kB / 466.3 MB, free: 17.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.3526, allocations: 30.69 kB / 466.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3527, allocations: 40.77 kB / 466.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3527, allocations: 12.97 kB / 466.4 MB, free: 17.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.3529, allocations: 184.2 kB / 466.5 MB, free: 17.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3529, allocations: 0 / 466.5 MB, free: 17.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006179/0.3535, allocations: 119.2 kB / 466.7 MB, free: 17.19 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001999/0.3555, allocations: 1.441 MB / 468.1 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.357, allocations: 1.015 MB / 469.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.357, allocations: 0.9375 kB / 469.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008786/0.3579, allocations: 0.791 MB / 469.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.3584, allocations: 76.16 kB / 470 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006114/0.3645, allocations: 2.971 MB / 473 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3648, allocations: 0.7943 MB / 473.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003077/0.3652, allocations: 53.38 kB / 473.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.3654, allocations: 98.89 kB / 473.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3654, allocations: 1.156 kB / 473.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.3897, allocations: 8.511 MB / 482.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001248/0.3898, allocations: 217 kB / 482.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.311, allocations: 3.375 kB / 482.6 MB, free: 11.43 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT_fmu --startTime=0 --stopTime=1.5e+06 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1) Environment - environmentSimulation: