Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.524/1.524, allocations: 287.4 MB / 302.6 MB, free: 8.148 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000928/0.0009277, allocations: 192.7 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.172/1.172, allocations: 205.4 MB / 0.6298 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00071/0.00071, allocations: 104.6 kB / 0.7431 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003452, allocations: 12.81 kB / 0.8662 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1609, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03542/0.1963, allocations: 49.17 MB / 1.027 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02071/0.2171, allocations: 16.64 MB / 1.043 GB, free: 10.12 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.2197, allocations: 71.5 kB / 1.043 GB, free: 10.05 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002411/0.2221, allocations: 0.7857 MB / 1.044 GB, free: 9.266 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.004682/0.2268, allocations: 1.878 MB / 1.046 GB, free: 7.383 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.006668/0.2335, allocations: 2.733 MB / 1.048 GB, free: 4.672 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.006203/0.2397, allocations: 5.227 MB / 1.053 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.2415, allocations: 1.334 MB / 1.055 GB, free: 14.06 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.2441, allocations: 1.552 MB / 1.056 GB, free: 12.5 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0014/0.2455, allocations: 1.252 MB / 1.057 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.2457, allocations: 72 kB / 1.058 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.2485, allocations: 1.521 MB / 1.059 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004024/0.2489, allocations: 418.2 kB / 1.059 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004163/0.2494, allocations: 408.6 kB / 1.06 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.002484/0.2519, allocations: 2.49 MB / 1.062 GB, free: 6.34 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2519, allocations: 4 kB / 1.062 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2519, allocations: 0 / 1.062 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.604e-05/0.2519, allocations: 0 / 1.062 GB, free: 6.336 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003556/0.2555, allocations: 2.229 MB / 1.064 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2555, allocations: 12.03 kB / 1.064 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/0.2557, allocations: 165.2 kB / 1.065 GB, free: 3.855 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00177/0.2575, allocations: 492.9 kB / 1.065 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/0.2601, allocations: 1.641 MB / 1.067 GB, free: 1.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003272/0.2605, allocations: 158.1 kB / 1.067 GB, free: 1.523 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.2607, allocations: 128 kB / 1.067 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3209/0.5816, allocations: 1.386 MB / 1.068 GB, free: 88.68 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.951e-05/0.5817, allocations: 3.906 kB / 1.068 GB, free: 88.68 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/0.5818, allocations: 48.69 kB / 1.068 GB, free: 88.68 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-05/0.5819, allocations: 28.25 kB / 1.068 GB, free: 88.68 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/0.5851, allocations: 1.129 MB / 1.069 GB, free: 88.66 MB / 0.6823 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007338/0.5924, allocations: 7.008 MB / 1.076 GB, free: 83.73 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.5947, allocations: 1.435 MB / 1.078 GB, free: 82.83 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009288/0.5956, allocations: 441.6 kB / 1.078 GB, free: 82.69 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004184/0.5998, allocations: 3.079 MB / 1.081 GB, free: 80.29 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001008/0.6008, allocations: 465.5 kB / 1.082 GB, free: 80.14 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003548/0.6012, allocations: 94.55 kB / 1.082 GB, free: 80.11 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/0.6012, allocations: 0 / 1.082 GB, free: 80.11 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.00299/0.6042, allocations: 1.293 MB / 1.083 GB, free: 79.61 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.6042, allocations: 145.7 kB / 1.083 GB, free: 79.45 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/0.6062, allocations: 1.571 MB / 1.085 GB, free: 78.86 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.6063, allocations: 39.67 kB / 1.085 GB, free: 78.82 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005923/0.6069, allocations: 0.8881 MB / 1.086 GB, free: 78.12 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.6071, allocations: 217.6 kB / 1.086 GB, free: 77.96 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.6071, allocations: 21.53 kB / 1.086 GB, free: 77.95 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.6072, allocations: 346.8 kB / 1.086 GB, free: 77.62 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009244/0.6081, allocations: 394.5 kB / 1.086 GB, free: 77.52 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.6092, allocations: 0.8055 MB / 1.087 GB, free: 76.89 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.6111, allocations: 1.146 MB / 1.088 GB, free: 76.14 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.6111, allocations: 4.25 kB / 1.088 GB, free: 76.14 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002531/0.6136, allocations: 1.339 MB / 1.09 GB, free: 75.61 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.6138, allocations: 438 kB / 1.09 GB, free: 75.06 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.6139, allocations: 11.45 kB / 1.09 GB, free: 75.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.944e-05/0.6139, allocations: 16.59 kB / 1.09 GB, free: 75.06 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009539/0.6148, allocations: 270.3 kB / 1.09 GB, free: 75.03 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.214e-05/0.6149, allocations: 25.22 kB / 1.09 GB, free: 75.02 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.6161, allocations: 136.1 kB / 1.091 GB, free: 74.99 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.638e-05/0.6162, allocations: 54.31 kB / 1.091 GB, free: 74.98 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.6162, allocations: 4.125 kB / 1.091 GB, free: 74.98 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002215/0.6184, allocations: 1.171 MB / 1.092 GB, free: 74.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.6185, allocations: 17.25 kB / 1.092 GB, free: 74.54 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.6185, allocations: 16.06 kB / 1.092 GB, free: 74.54 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009234/0.6194, allocations: 264.4 kB / 1.092 GB, free: 74.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2e-05/0.6194, allocations: 23.39 kB / 1.092 GB, free: 74.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.6205, allocations: 133.3 kB / 1.092 GB, free: 74.48 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-05/0.6206, allocations: 52.92 kB / 1.092 GB, free: 74.47 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007236/0.6213, allocations: 480.5 kB / 1.093 GB, free: 74.13 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.6215, allocations: 169.1 kB / 1.093 GB, free: 74.04 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002428/0.624, allocations: 1.167 MB / 1.094 GB, free: 73.61 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.624, allocations: 8.312 kB / 1.094 GB, free: 73.61 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.624, allocations: 4.906 kB / 1.094 GB, free: 73.61 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001768/0.6258, allocations: 1.003 MB / 1.095 GB, free: 73.11 MB / 0.6823 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004142/0.6299, allocations: 2.446 MB / 1.097 GB, free: 72.01 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.6299, allocations: 4.266 kB / 1.097 GB, free: 72.01 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007158/0.6307, allocations: 151.5 kB / 1.098 GB, free: 72 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.6309, allocations: 42.14 kB / 1.098 GB, free: 71.97 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.743e-05/0.6309, allocations: 28.41 kB / 1.098 GB, free: 71.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009717/0.6319, allocations: 1.363 MB / 1.099 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.6319, allocations: 0.9062 kB / 1.099 GB, free: 70.61 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003134/0.6351, allocations: 1.627 MB / 1.1 GB, free: 69.9 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006539/0.6357, allocations: 356 kB / 1.101 GB, free: 69.64 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.6359, allocations: 17.09 kB / 1.101 GB, free: 69.63 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008995/0.6369, allocations: 116.2 kB / 1.101 GB, free: 69.62 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.637, allocations: 56.61 kB / 1.101 GB, free: 69.61 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.248e-05/0.6371, allocations: 33.8 kB / 1.101 GB, free: 69.6 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001473/0.6385, allocations: 1.111 MB / 1.102 GB, free: 69.15 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6385, allocations: 0 / 1.102 GB, free: 69.15 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002336/0.6409, allocations: 0.9275 MB / 1.103 GB, free: 68.99 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004472/0.6454, allocations: 2.802 MB / 1.106 GB, free: 67.63 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003342/0.6487, allocations: 1.726 MB / 1.107 GB, free: 66.98 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.6487, allocations: 1.094 kB / 1.107 GB, free: 66.98 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/0.6499, allocations: 0.5741 MB / 1.108 GB, free: 66.73 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003339/0.6533, allocations: 0.7482 MB / 1.109 GB, free: 66.52 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/0.6702, allocations: 11.01 MB / 1.12 GB, free: 59.67 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007027/0.6709, allocations: 1.371 MB / 1.121 GB, free: 58.66 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.00172/0.6727, allocations: 425.1 kB / 1.121 GB, free: 58.45 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007374/0.6734, allocations: 0.7176 MB / 1.122 GB, free: 57.84 MB / 0.6823 GB Notification: Performance of SimCode: time 7.51e-07/0.6734, allocations: 0 / 1.122 GB, free: 57.84 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.398/1.071, allocations: 47.86 MB / 1.169 GB, free: 13.95 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.072, allocations: 259.6 kB / 1.169 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.743/4.815, allocations: 0 / 1.169 GB, free: 13.61 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)