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.006205/0.006205, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001187/0.001187, allocations: 197 kB / 16.67 MB, free: 5.977 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.232/0.232, allocations: 22.36 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.69 kB / 436.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.105, allocations: 54.97 MB / 491.5 MB, free: 1.727 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.03159/0.1367, allocations: 21.84 MB / 0.5014 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.1383, allocations: 0.6665 MB / 0.502 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.1385, allocations: 0 / 0.502 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.1388, allocations: 43.58 kB / 0.502 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003168/0.1391, allocations: 107.2 kB / 0.5021 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.1396, allocations: 99.8 kB / 0.5022 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005451/0.1401, allocations: 423 kB / 0.5026 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004012/0.1405, allocations: 251.6 kB / 0.5029 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003012/0.1408, allocations: 171.4 kB / 0.5031 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.1412, allocations: 223.3 kB / 0.5033 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.556e-05/0.1413, allocations: 36 kB / 0.5033 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.633e-05/0.1414, allocations: 40 kB / 0.5033 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.1415, allocations: 135.5 kB / 0.5035 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.1417, allocations: 191.2 kB / 0.5036 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.1422, allocations: 446.6 kB / 0.5041 GB, free: 9.211 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1422, allocations: 0 / 0.5041 GB, free: 9.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1422, allocations: 0 / 0.5041 GB, free: 9.211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1422, allocations: 0 / 0.5041 GB, free: 9.211 MB / 382.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.001427/0.1436, allocations: 0.6859 MB / 0.5047 GB, free: 8.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1437, allocations: 12.03 kB / 0.5048 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.985e-05/0.1438, allocations: 62.72 kB / 0.5048 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/0.1439, allocations: 40.47 kB / 0.5049 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.1443, allocations: 298.6 kB / 0.5051 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.1444, allocations: 20.94 kB / 0.5052 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.145e-05/0.1444, allocations: 24.38 kB / 0.5052 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.1451, allocations: 340.7 kB / 0.5055 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1451, allocations: 0 / 0.5055 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.1452, allocations: 12 kB / 0.5055 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1452, allocations: 4 kB / 0.5055 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007333/0.1459, allocations: 342 kB / 0.5058 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.148, allocations: 1.241 MB / 0.5071 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005704/0.1486, allocations: 307.9 kB / 0.5074 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004527/0.149, allocations: 237.3 kB / 0.5076 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.1491, allocations: 240 / 0.5076 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1491, allocations: 38.8 kB / 0.5076 GB, free: 5.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.382e-06/0.1491, allocations: 0 / 0.5076 GB, free: 5.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.002918/0.152, allocations: 1.235 MB / 0.5088 GB, free: 4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1521, allocations: 59.34 kB / 0.5089 GB, free: 3.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.1524, allocations: 254.6 kB / 0.5091 GB, free: 3.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.1524, allocations: 29.7 kB / 0.5092 GB, free: 3.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.1525, allocations: 168.6 kB / 0.5093 GB, free: 3.469 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.534e-05/0.1526, allocations: 94.56 kB / 0.5094 GB, free: 3.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.1527, allocations: 65.69 kB / 0.5095 GB, free: 3.305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1528, allocations: 334.8 kB / 0.5098 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.1532, allocations: 179.7 kB / 0.51 GB, free: 2.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.1536, allocations: 179.9 kB / 0.5101 GB, free: 2.617 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007821/0.1544, allocations: 389.7 kB / 0.5105 GB, free: 2.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1544, allocations: 0 / 0.5105 GB, free: 2.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001442/0.1559, allocations: 0.6101 MB / 0.5111 GB, free: 1.602 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1559, allocations: 11.98 kB / 0.5111 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1559, allocations: 0 / 0.5111 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000739/0.1566, allocations: 164.2 kB / 0.5113 GB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005468/0.1572, allocations: 95.86 kB / 0.5114 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005621/0.1628, allocations: 7.606 MB / 0.5188 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.1632, allocations: 47.84 kB / 0.5188 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.1632, allocations: 8 kB / 0.5188 GB, free: 8.922 MB / 398.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.0001868/0.1634, allocations: 162.4 kB / 0.519 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.479e-05/0.1635, allocations: 23.72 kB / 0.519 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.1648, allocations: 0.5874 MB / 0.5196 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.1649, allocations: 4 kB / 0.5196 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.1649, allocations: 0 / 0.5196 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1649, allocations: 0 / 0.5196 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005384/0.1654, allocations: 449 kB / 0.52 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1654, allocations: 0 / 0.52 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005555/0.166, allocations: 87.94 kB / 0.5201 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005098/0.1665, allocations: 144.1 kB / 0.5202 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.1666, allocations: 12 kB / 0.5203 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004966/0.1715, allocations: 7.203 MB / 0.5273 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.1716, allocations: 3.984 kB / 0.5273 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.1733, allocations: 0.8589 MB / 0.5281 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.994e-05/0.1735, allocations: 104.8 kB / 0.5282 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.023e-05/0.1735, allocations: 15.92 kB / 0.5282 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/0.1739, allocations: 19.98 kB / 0.5283 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.174, allocations: 31.95 kB / 0.5283 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/0.174, allocations: 12.11 kB / 0.5283 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1742, allocations: 186 kB / 0.5285 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1742, allocations: 4 kB / 0.5285 GB, free: 14.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.1747, allocations: 123.8 kB / 0.5286 GB, free: 14.07 MB / 414.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.00202/0.1768, allocations: 1.396 MB / 0.53 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.1784, allocations: 0.9975 MB / 0.5309 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1784, allocations: 0 / 0.5309 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.1794, allocations: 0.7785 MB / 0.5317 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004809/0.1799, allocations: 78.97 kB / 0.5318 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007944/0.1878, allocations: 4.216 MB / 0.5359 GB, free: 6.332 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.1883, allocations: 0.7951 MB / 0.5367 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002126/0.1885, allocations: 50.94 kB / 0.5367 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.1887, allocations: 103.3 kB / 0.5368 GB, free: 5.363 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1887, allocations: 4 kB / 0.5368 GB, free: 5.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03654/0.2252, allocations: 9.237 MB / 0.5458 GB, free: 12.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.371/9.596, allocations: 7.609 kB / 0.5459 GB, free: 12.22 MB / 430.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)