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.001134/0.001134, allocations: 98.92 kB / 15.05 MB, free: 1.105 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.001323/0.001323, allocations: 177.3 kB / 15.94 MB, free: 228 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.351/1.351, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1858/0.1858, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000317/0.0003171, allocations: 12 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3391, allocations: 55.98 MB / 437.9 MB, free: 39.11 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.002404/0.3416, allocations: 2.053 MB / 440 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.3427, allocations: 0.6833 MB / 440.6 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.3428, allocations: 6.938 kB / 440.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.3429, allocations: 40.17 kB / 440.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.3431, allocations: 96.12 kB / 440.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.3435, allocations: 74.77 kB / 440.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.3438, allocations: 255.9 kB / 441.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.3441, allocations: 183 kB / 441.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.3442, allocations: 139.4 kB / 441.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.3444, allocations: 181.5 kB / 441.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.3445, allocations: 21.66 kB / 441.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.916e-05/0.3446, allocations: 24.16 kB / 441.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.46e-05/0.3446, allocations: 107.3 kB / 441.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.823e-05/0.3447, allocations: 82.36 kB / 441.8 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.345, allocations: 327.3 kB / 442.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.345, allocations: 0 / 442.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.345, allocations: 0 / 442.1 MB, free: 36.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.345, allocations: 2.812 kB / 442.1 MB, free: 36.53 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.001139/0.3461, allocations: 0.6569 MB / 442.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3462, allocations: 12.31 kB / 442.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.489e-05/0.3463, allocations: 61.53 kB / 442.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.3463, allocations: 34.41 kB / 442.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.3467, allocations: 292.8 kB / 443.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3467, allocations: 25.12 kB / 443.2 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.3468, allocations: 24.72 kB / 443.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.3474, allocations: 350.4 kB / 443.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3474, allocations: 3.938 kB / 443.6 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.3474, allocations: 10.78 kB / 443.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.3474, allocations: 10 kB / 443.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006296/0.3481, allocations: 344.4 kB / 443.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.3497, allocations: 1.27 MB / 445.2 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.3503, allocations: 318.1 kB / 445.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.613e-05/0.3503, allocations: 11.25 kB / 445.5 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.3503, allocations: 33.67 kB / 445.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.3503, allocations: 0 / 445.6 MB, free: 34.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002553/0.3529, allocations: 1.287 MB / 446.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.3529, allocations: 62.27 kB / 446.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.3532, allocations: 255.1 kB / 447.2 MB, free: 33.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3532, allocations: 36.7 kB / 447.2 MB, free: 33.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.3533, allocations: 162.3 kB / 447.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.546e-05/0.3533, allocations: 96.23 kB / 447.5 MB, free: 33.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.031e-05/0.3534, allocations: 10.91 kB / 447.5 MB, free: 33.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.82e-05/0.3534, allocations: 338.8 kB / 447.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.3538, allocations: 188.8 kB / 448 MB, free: 32.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.3542, allocations: 187.8 kB / 448.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.3546, allocations: 207.6 kB / 448.4 MB, free: 32.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3546, allocations: 0 / 448.4 MB, free: 32.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0013/0.3559, allocations: 0.638 MB / 449 MB, free: 32.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3559, allocations: 7.719 kB / 449 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3559, allocations: 0 / 449 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006863/0.3566, allocations: 175.9 kB / 449.2 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.3571, allocations: 102.9 kB / 449.3 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003993/0.3612, allocations: 7.125 MB / 456.4 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/0.3616, allocations: 37.83 kB / 456.4 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.3616, allocations: 13.09 kB / 456.5 MB, free: 25.31 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.0001971/0.3618, allocations: 162.2 kB / 456.6 MB, free: 25.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.815e-05/0.3619, allocations: 29.62 kB / 456.6 MB, free: 25.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3632, allocations: 0.5906 MB / 457.2 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3632, allocations: 10.56 kB / 457.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3632, allocations: 6.578 kB / 457.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3632, allocations: 3.328 kB / 457.3 MB, free: 24.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004571/0.3637, allocations: 441.9 kB / 457.7 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3637, allocations: 2.625 kB / 457.7 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.3642, allocations: 95.8 kB / 457.8 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004426/0.3646, allocations: 144.4 kB / 457.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.3647, allocations: 11.42 kB / 457.9 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.3679, allocations: 6.739 MB / 464.7 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3679, allocations: 0 / 464.7 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.3695, allocations: 0.8855 MB / 465.6 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.053e-05/0.3696, allocations: 114 kB / 465.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.3696, allocations: 7.219 kB / 465.7 MB, free: 17.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.3699, allocations: 27.31 kB / 465.7 MB, free: 17.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.37, allocations: 37.33 kB / 465.7 MB, free: 17.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.3701, allocations: 9.578 kB / 465.7 MB, free: 17.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.3703, allocations: 186.8 kB / 465.9 MB, free: 17.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3703, allocations: 2.75 kB / 465.9 MB, free: 17.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000528/0.3708, allocations: 116.9 kB / 466 MB, free: 17.09 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.001849/0.3727, allocations: 1.437 MB / 467.5 MB, free: 16.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3741, allocations: 1.016 MB / 468.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3741, allocations: 0 / 468.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.3749, allocations: 0.7873 MB / 469.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3753, allocations: 67.91 kB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.3784, allocations: 1.68 MB / 471 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.3786, allocations: 0.7968 MB / 471.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.3789, allocations: 50.45 kB / 471.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.379, allocations: 97.97 kB / 472 MB, free: 12.95 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.379, allocations: 5.156 kB / 472 MB, free: 12.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03673/0.4158, allocations: 8.33 MB / 480.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.416, allocations: 228.2 kB / 480.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.452, allocations: 0 / 480.5 MB, free: 12.23 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: