Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.653/1.653, allocations: 288.4 MB / 303.6 MB, free: 8.18 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.00101/0.00101, allocations: 176.5 kB / 372.3 MB, free: 10.13 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.211/1.211, allocations: 205.4 MB / 0.631 GB, free: 9.895 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.0007429/0.000743, allocations: 90.25 kB / 0.7444 GB, free: 5.801 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 12.72 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1705, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.03561/0.2062, allocations: 49.17 MB / 1.028 GB, free: 9.949 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.02038/0.2266, allocations: 16.63 MB / 1.044 GB, free: 9.293 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002123/0.2287, allocations: 71.5 kB / 1.045 GB, free: 9.223 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.2313, allocations: 0.86 MB / 1.045 GB, free: 8.359 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.004539/0.2358, allocations: 1.981 MB / 1.047 GB, free: 6.375 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.006634/0.2424, allocations: 2.762 MB / 1.05 GB, free: 3.633 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.006194/0.2486, allocations: 5.229 MB / 1.055 GB, free: 14.39 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002071/0.2507, allocations: 1.346 MB / 1.056 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002851/0.2536, allocations: 1.602 MB / 1.058 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001841/0.2554, allocations: 1.256 MB / 1.059 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002909/0.2558, allocations: 68 kB / 1.059 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003133/0.2589, allocations: 1.75 MB / 1.061 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004957/0.2594, allocations: 414.3 kB / 1.061 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.2606, allocations: 0.9071 MB / 1.062 GB, free: 6.992 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.002795/0.2634, allocations: 2.548 MB / 1.065 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2634, allocations: 0 / 1.065 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2634, allocations: 0 / 1.065 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.929e-05/0.2634, allocations: 0 / 1.065 GB, free: 4.441 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.003739/0.2672, allocations: 2.225 MB / 1.067 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2672, allocations: 8.031 kB / 1.067 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.2675, allocations: 161.2 kB / 1.067 GB, free: 1.973 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001854/0.2693, allocations: 0.4891 MB / 1.068 GB, free: 1.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3249/0.5943, allocations: 1.641 MB / 1.069 GB, free: 88.96 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004421/0.5948, allocations: 156.8 kB / 1.069 GB, free: 88.96 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003177/0.5951, allocations: 123.9 kB / 1.069 GB, free: 88.96 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002863/0.598, allocations: 1.398 MB / 1.071 GB, free: 88.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.598, allocations: 0 / 1.071 GB, free: 88.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.5981, allocations: 48.75 kB / 1.071 GB, free: 88.57 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.768e-05/0.5982, allocations: 28.27 kB / 1.071 GB, free: 88.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002562/0.6008, allocations: 1.127 MB / 1.072 GB, free: 88.21 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.007696/0.6085, allocations: 7.012 MB / 1.079 GB, free: 83.22 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002258/0.6107, allocations: 1.434 MB / 1.08 GB, free: 82.32 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009201/0.6117, allocations: 433.6 kB / 1.081 GB, free: 82.19 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003885/0.6156, allocations: 3.085 MB / 1.084 GB, free: 79.79 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.6166, allocations: 473.5 kB / 1.084 GB, free: 79.62 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003217/0.6169, allocations: 87.81 kB / 1.084 GB, free: 79.59 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 1.984e-06/0.617, allocations: 0.625 kB / 1.084 GB, free: 79.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.002981/0.6199, allocations: 1.291 MB / 1.085 GB, free: 79.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.62, allocations: 140.9 kB / 1.086 GB, free: 78.94 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/0.6218, allocations: 1.57 MB / 1.087 GB, free: 78.36 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.011e-05/0.6219, allocations: 43.98 kB / 1.087 GB, free: 78.31 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000524/0.6224, allocations: 0.888 MB / 1.088 GB, free: 77.62 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.6226, allocations: 216 kB / 1.088 GB, free: 77.45 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.6226, allocations: 21.67 kB / 1.088 GB, free: 77.44 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.6227, allocations: 347.4 kB / 1.089 GB, free: 77.11 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009065/0.6236, allocations: 395.3 kB / 1.089 GB, free: 77.01 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.6247, allocations: 0.8011 MB / 1.09 GB, free: 76.36 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.6265, allocations: 1.147 MB / 1.091 GB, free: 75.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.6266, allocations: 2.625 kB / 1.091 GB, free: 75.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002389/0.629, allocations: 1.339 MB / 1.092 GB, free: 75.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.6291, allocations: 437.8 kB / 1.093 GB, free: 74.51 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.6291, allocations: 12.83 kB / 1.093 GB, free: 74.51 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.6292, allocations: 20.44 kB / 1.093 GB, free: 74.51 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009432/0.6301, allocations: 266.3 kB / 1.093 GB, free: 74.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.6301, allocations: 22.2 kB / 1.093 GB, free: 74.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009995/0.6311, allocations: 140.5 kB / 1.093 GB, free: 74.44 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-05/0.6312, allocations: 56.42 kB / 1.093 GB, free: 74.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.242e-06/0.6313, allocations: 3.688 kB / 1.093 GB, free: 74.43 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002197/0.6335, allocations: 1.167 MB / 1.094 GB, free: 74 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.6335, allocations: 23.81 kB / 1.094 GB, free: 74 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6335, allocations: 15.72 kB / 1.094 GB, free: 74 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000899/0.6344, allocations: 262.1 kB / 1.095 GB, free: 73.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.6344, allocations: 21.16 kB / 1.095 GB, free: 73.97 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009113/0.6354, allocations: 130.7 kB / 1.095 GB, free: 73.94 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.6354, allocations: 50.03 kB / 1.095 GB, free: 73.93 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.0004773/0.6359, allocations: 488.4 kB / 1.095 GB, free: 73.59 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.6361, allocations: 170.7 kB / 1.095 GB, free: 73.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.6384, allocations: 1.16 MB / 1.096 GB, free: 73.08 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.6385, allocations: 16.73 kB / 1.096 GB, free: 73.07 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6385, allocations: 0.6562 kB / 1.096 GB, free: 73.07 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001762/0.6402, allocations: 1.005 MB / 1.097 GB, free: 72.56 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.003903/0.6442, allocations: 2.446 MB / 1.1 GB, free: 71.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.6442, allocations: 4.672 kB / 1.1 GB, free: 71.47 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006983/0.6449, allocations: 150.9 kB / 1.1 GB, free: 71.46 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/0.645, allocations: 35.5 kB / 1.1 GB, free: 71.44 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.401e-05/0.6451, allocations: 22.39 kB / 1.1 GB, free: 71.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008157/0.6459, allocations: 1.372 MB / 1.101 GB, free: 70.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6459, allocations: 1.812 kB / 1.101 GB, free: 70.07 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.6488, allocations: 1.625 MB / 1.103 GB, free: 69.36 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/0.6492, allocations: 355.5 kB / 1.103 GB, free: 69.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/0.6494, allocations: 13.25 kB / 1.103 GB, free: 69.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008966/0.6503, allocations: 116.3 kB / 1.103 GB, free: 69.08 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-05/0.6504, allocations: 63.22 kB / 1.103 GB, free: 69.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.904e-05/0.6505, allocations: 30.78 kB / 1.104 GB, free: 69.06 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001177/0.6516, allocations: 1.106 MB / 1.105 GB, free: 68.61 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6516, allocations: 0.9688 kB / 1.105 GB, free: 68.61 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002208/0.6539, allocations: 0.928 MB / 1.106 GB, free: 68.46 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.004464/0.6583, allocations: 2.837 MB / 1.108 GB, free: 67.09 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003068/0.6614, allocations: 1.726 MB / 1.11 GB, free: 66.23 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6614, allocations: 0 / 1.11 GB, free: 66.23 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.6625, allocations: 0.5748 MB / 1.111 GB, free: 65.91 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/0.6657, allocations: 0.7451 MB / 1.111 GB, free: 65.54 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.6819, allocations: 11.01 MB / 1.122 GB, free: 58.19 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/0.6826, allocations: 1.363 MB / 1.123 GB, free: 57.19 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0015/0.6841, allocations: 428 kB / 1.124 GB, free: 56.98 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006761/0.6848, allocations: 0.728 MB / 1.124 GB, free: 56.36 MB / 0.6823 GB Notification: Performance of SimCode: time 4.61e-07/0.6848, allocations: 0 / 1.124 GB, free: 56.36 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8334/1.518, allocations: 48.32 MB / 1.172 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/1.518, allocations: 255.4 kB / 1.172 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.46/4.978, allocations: 0 / 1.172 GB, free: 10.5 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)