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.001834/0.001834, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002355/0.002355, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2002/0.2002, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002431, allocations: 67.84 kB / 380.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.345, allocations: 54.93 MB / 435.9 MB, free: 39.76 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.02994/0.375, allocations: 21.95 MB / 457.8 MB, free: 31.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.3766, allocations: 0.6788 MB / 458.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.3768, allocations: 3.469 kB / 458.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.377, allocations: 39.95 kB / 458.6 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.3772, allocations: 109.9 kB / 458.7 MB, free: 31.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.3776, allocations: 99.23 kB / 458.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005245/0.3781, allocations: 418.3 kB / 459.2 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004411/0.3786, allocations: 238.2 kB / 459.4 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.3789, allocations: 176.1 kB / 459.6 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000375/0.3792, allocations: 221.3 kB / 459.8 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.3794, allocations: 39.09 kB / 459.8 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.3795, allocations: 42.47 kB / 459.9 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001602/0.3796, allocations: 121.7 kB / 460 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.3799, allocations: 201 kB / 460.2 MB, free: 30.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000567/0.3805, allocations: 439.8 kB / 460.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.3805, allocations: 0 / 460.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3805, allocations: 1.219 kB / 460.6 MB, free: 30.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3805, allocations: 3.281 kB / 460.6 MB, free: 30.47 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.001649/0.3822, allocations: 0.6816 MB / 461.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.922e-05/0.3823, allocations: 9 kB / 461.3 MB, free: 29.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.3824, allocations: 62.7 kB / 461.4 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.3825, allocations: 33.66 kB / 461.4 MB, free: 29.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/0.383, allocations: 302.4 kB / 461.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.383, allocations: 18.53 kB / 461.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.249e-05/0.3831, allocations: 28.03 kB / 461.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.3839, allocations: 353.4 kB / 462.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3839, allocations: 0 / 462.1 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.384, allocations: 14.06 kB / 462.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.384, allocations: 5.281 kB / 462.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007708/0.3848, allocations: 331.4 kB / 462.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.3868, allocations: 1.262 MB / 463.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/0.3875, allocations: 309.5 kB / 464 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005003/0.388, allocations: 225.6 kB / 464.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.388, allocations: 3.578 kB / 464.2 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.3881, allocations: 36.92 kB / 464.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.094e-06/0.3881, allocations: 4 kB / 464.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002944/0.391, allocations: 1.227 MB / 465.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.3911, allocations: 62.56 kB / 465.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/0.3913, allocations: 258.6 kB / 465.8 MB, free: 27.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.3914, allocations: 27.02 kB / 465.8 MB, free: 27.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/0.3915, allocations: 168.2 kB / 466 MB, free: 27.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.316e-05/0.3915, allocations: 100.8 kB / 466.1 MB, free: 26.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.3917, allocations: 54.95 kB / 466.1 MB, free: 26.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.864e-05/0.3918, allocations: 341.2 kB / 466.5 MB, free: 26.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/0.3921, allocations: 177.7 kB / 466.6 MB, free: 26.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.3925, allocations: 184.1 kB / 466.8 MB, free: 26.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006697/0.3932, allocations: 388.5 kB / 467.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3932, allocations: 0 / 467.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001302/0.3945, allocations: 0.6128 MB / 467.8 MB, free: 25.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3945, allocations: 4 kB / 467.8 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3945, allocations: 0 / 467.8 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007052/0.3952, allocations: 168.1 kB / 468 MB, free: 25.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.3958, allocations: 92.53 kB / 468.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004042/0.3998, allocations: 7.606 MB / 475.7 MB, free: 17.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.4002, allocations: 38.2 kB / 475.7 MB, free: 17.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.4002, allocations: 11.23 kB / 475.7 MB, free: 17.15 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.0001483/0.4004, allocations: 165.8 kB / 475.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/0.4004, allocations: 23.72 kB / 475.9 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.4016, allocations: 0.5793 MB / 476.5 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.4016, allocations: 4 kB / 476.5 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4016, allocations: 0 / 476.5 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4017, allocations: 3 kB / 476.5 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004072/0.4021, allocations: 444.5 kB / 476.9 MB, free: 16.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4021, allocations: 4 kB / 476.9 MB, free: 16.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/0.4026, allocations: 90.23 kB / 477 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/0.403, allocations: 142.3 kB / 477.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.4031, allocations: 19.12 kB / 477.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003251/0.4063, allocations: 7.208 MB / 484.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4064, allocations: 0 / 484.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.4079, allocations: 0.8651 MB / 485.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.408, allocations: 104.7 kB / 485.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.4081, allocations: 14.89 kB / 485.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.4084, allocations: 22.7 kB / 485.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.4085, allocations: 40.03 kB / 485.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4085, allocations: 4 kB / 485.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001351/0.4087, allocations: 192.9 kB / 485.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4087, allocations: 0 / 485.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000482/0.4092, allocations: 123.8 kB / 485.8 MB, free: 6.883 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.001643/0.4108, allocations: 1.393 MB / 487.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.4122, allocations: 1.027 MB / 488.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4122, allocations: 0 / 488.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007603/0.413, allocations: 0.7854 MB / 489 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004479/0.4134, allocations: 70.44 kB / 489 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007027/0.4205, allocations: 4.24 MB / 493.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.4209, allocations: 0.7979 MB / 494.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002433/0.4211, allocations: 45.03 kB / 494.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.4213, allocations: 101.5 kB / 494.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4213, allocations: 0 / 494.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05444/0.4758, allocations: 9.209 MB / 0.4916 GB, free: 8.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.398/9.874, allocations: 8.703 kB / 0.4916 GB, free: 8.395 MB / 366.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT_res.csv --start-time 0 --stop-time 1.5e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1500 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)