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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001081/0.001081, allocations: 199.7 kB / 16.14 MB, free: 6.656 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.139/1.139, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1579/0.1579, allocations: 22.37 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 63.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1906/0.1916, allocations: 54.94 MB / 435.2 MB, free: 39.54 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.0217/0.2133, allocations: 21.89 MB / 457.1 MB, free: 31.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008826/0.2142, allocations: 0.6863 MB / 457.8 MB, free: 31.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-05/0.2143, allocations: 7.531 kB / 457.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.2145, allocations: 32.72 kB / 457.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.2146, allocations: 94.61 kB / 457.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.2149, allocations: 86.25 kB / 458 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.2152, allocations: 498 kB / 458.5 MB, free: 30.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.2154, allocations: 211.9 kB / 458.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.2156, allocations: 158.5 kB / 458.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.2158, allocations: 220.6 kB / 459 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.2159, allocations: 26.53 kB / 459.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.062e-05/0.2159, allocations: 25.5 kB / 459.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.434e-05/0.216, allocations: 117 kB / 459.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.2162, allocations: 180.5 kB / 459.4 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002585/0.2164, allocations: 436.3 kB / 459.8 MB, free: 30.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2164, allocations: 4 kB / 459.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.2164, allocations: 0 / 459.8 MB, free: 30.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.2165, allocations: 0.9688 kB / 459.8 MB, free: 30.29 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.00108/0.2175, allocations: 0.6814 MB / 460.5 MB, free: 29.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.2176, allocations: 12.94 kB / 460.5 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.267e-05/0.2176, allocations: 62.48 kB / 460.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/0.2177, allocations: 41.84 kB / 460.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.2179, allocations: 302.5 kB / 460.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.218, allocations: 22.06 kB / 460.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.787e-05/0.218, allocations: 25 kB / 460.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005698/0.2186, allocations: 342.1 kB / 461.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.2186, allocations: 1.531 kB / 461.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.2186, allocations: 9.281 kB / 461.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2187, allocations: 6.719 kB / 461.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.2193, allocations: 333.6 kB / 461.6 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.2207, allocations: 1.251 MB / 462.9 MB, free: 28.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004679/0.2212, allocations: 313.8 kB / 463.2 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/0.2216, allocations: 226.5 kB / 463.4 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2216, allocations: 2.641 kB / 463.4 MB, free: 28.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.2216, allocations: 37.52 kB / 463.4 MB, free: 28.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.252e-06/0.2216, allocations: 0 / 463.4 MB, free: 28.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002307/0.224, allocations: 1.234 MB / 464.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.224, allocations: 58 kB / 464.7 MB, free: 27.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.2242, allocations: 253.2 kB / 465 MB, free: 27.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.2242, allocations: 35.08 kB / 465 MB, free: 27.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.2243, allocations: 163.5 kB / 465.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.2243, allocations: 109.4 kB / 465.3 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.226e-05/0.2244, allocations: 53.84 kB / 465.3 MB, free: 26.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.358e-05/0.2245, allocations: 343.3 kB / 465.7 MB, free: 26.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003293/0.2248, allocations: 179.5 kB / 465.8 MB, free: 26.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.2251, allocations: 180.9 kB / 466 MB, free: 26.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.2258, allocations: 391.1 kB / 466.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2258, allocations: 3.938 kB / 466.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001176/0.2269, allocations: 0.6035 MB / 467 MB, free: 25.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.227, allocations: 9.453 kB / 467 MB, free: 25.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.227, allocations: 0 / 467 MB, free: 25.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005828/0.2276, allocations: 174.2 kB / 467.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004353/0.228, allocations: 95.97 kB / 467.3 MB, free: 25.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/0.2311, allocations: 7.058 MB / 474.3 MB, free: 18.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.2314, allocations: 34.88 kB / 474.4 MB, free: 18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.2314, allocations: 12 kB / 474.4 MB, free: 17.99 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.0001049/0.2315, allocations: 156.5 kB / 474.5 MB, free: 17.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.2316, allocations: 35.56 kB / 474.6 MB, free: 17.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.2326, allocations: 0.5824 MB / 475.2 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2326, allocations: 4 kB / 475.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2326, allocations: 4 kB / 475.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2326, allocations: 0 / 475.2 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.233, allocations: 437 kB / 475.6 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.233, allocations: 3.938 kB / 475.6 MB, free: 16.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004425/0.2334, allocations: 91.25 kB / 475.7 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003812/0.2338, allocations: 150.9 kB / 475.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.2339, allocations: 11.52 kB / 475.8 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002572/0.2364, allocations: 6.68 MB / 482.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2364, allocations: 0 / 482.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.2377, allocations: 0.8568 MB / 483.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.2378, allocations: 104.7 kB / 483.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.2378, allocations: 15.41 kB / 483.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.2381, allocations: 26.73 kB / 483.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.804e-05/0.2382, allocations: 37.3 kB / 483.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2382, allocations: 8 kB / 483.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001043/0.2383, allocations: 193.4 kB / 483.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2383, allocations: 0 / 483.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.2387, allocations: 119.8 kB / 483.9 MB, free: 8.273 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.001447/0.2401, allocations: 1.406 MB / 485.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.2411, allocations: 0.9883 MB / 486.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2411, allocations: 0 / 486.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006074/0.2417, allocations: 0.7777 MB / 487 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.2421, allocations: 65.55 kB / 487.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00579/0.2479, allocations: 4.342 MB / 491.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.2481, allocations: 0.7924 MB / 492.2 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001631/0.2483, allocations: 51.55 kB / 492.3 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001351/0.2484, allocations: 101.2 kB / 492.4 MB, free: 228 kB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2484, allocations: 0 / 492.4 MB, free: 228 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.2674, allocations: 8.753 MB / 0.4894 GB, free: 10.32 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.2676, allocations: 236.8 kB / 0.4896 GB, free: 10.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.991, allocations: 4 kB / 0.4896 GB, free: 10.06 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 & /home/hudson/saved_omc/OMSimulator/install/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)