Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",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.001291/0.001291, allocations: 108 kB / 15.6 MB, free: 132 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.001295/0.001295, allocations: 190.3 kB / 16.53 MB, free: 6.391 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.265/1.265, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.378/2.378, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 67.89 kB / 0.8693 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5168/0.5181, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06417/0.5823, allocations: 67.46 MB / 1.083 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02611/0.6084, allocations: 18.59 MB / 1.101 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002847/0.6113, allocations: 99.44 kB / 1.102 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.008674/0.62, allocations: 4.413 MB / 1.106 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007619/0.6277, allocations: 2.721 MB / 1.108 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.6335, allocations: 2.359 MB / 1.111 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01056/0.6441, allocations: 8.143 MB / 1.119 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00299/0.6471, allocations: 1.919 MB / 1.121 GB, free: 8.434 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004281/0.6514, allocations: 2.058 MB / 1.123 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002453/0.6538, allocations: 1.524 MB / 1.124 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005596/0.6544, allocations: 200 kB / 1.124 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.6587, allocations: 2.145 MB / 1.126 GB, free: 2.5 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0008646/0.6596, allocations: 0.6852 MB / 1.127 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002296/0.6619, allocations: 1.314 MB / 1.128 GB, free: 0.4922 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006659/0.6686, allocations: 4.152 MB / 1.132 GB, free: 12.33 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.6686, allocations: 0 / 1.132 GB, free: 12.33 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.527e-06/0.6686, allocations: 3.984 kB / 1.132 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001026/0.6687, allocations: 0 / 1.132 GB, free: 12.32 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.005956/0.6747, allocations: 3.087 MB / 1.135 GB, free: 9.152 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.6747, allocations: 15.98 kB / 1.135 GB, free: 9.137 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002968/0.675, allocations: 181.9 kB / 1.136 GB, free: 8.949 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002176/0.6772, allocations: 484.4 kB / 1.136 GB, free: 8.473 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.6821, allocations: 2.754 MB / 1.139 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004238/0.6825, allocations: 166.5 kB / 1.139 GB, free: 5.484 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002748/0.6828, allocations: 144 kB / 1.139 GB, free: 5.344 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002887/0.6857, allocations: 1.448 MB / 1.14 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.6857, allocations: 0 / 1.14 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.6859, allocations: 51.98 kB / 1.141 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-05/0.6859, allocations: 50.31 kB / 1.141 GB, free: 3.703 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002801/0.6887, allocations: 1.133 MB / 1.142 GB, free: 2.562 MB / 0.8887 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.01127/0.7, allocations: 7.785 MB / 1.149 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00231/0.7024, allocations: 1.299 MB / 1.151 GB, free: 8.789 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.7035, allocations: 463.4 kB / 1.151 GB, free: 8.336 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005284/0.7088, allocations: 2.719 MB / 1.154 GB, free: 5.383 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.7099, allocations: 478.6 kB / 1.154 GB, free: 4.895 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=62): time 2.765e-06/0.7099, allocations: 0 / 1.154 GB, free: 4.895 MB / 0.9044 GB Notification: Performance of matching and sorting (n=62): time 0.003359/0.7133, allocations: 1.268 MB / 1.155 GB, free: 3.598 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.7134, allocations: 115.4 kB / 1.155 GB, free: 3.461 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.7163, allocations: 2.048 MB / 1.157 GB, free: 1.387 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.7165, allocations: 45.7 kB / 1.158 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008685/0.7173, allocations: 1.034 MB / 1.159 GB, free: 300 kB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.7176, allocations: 220.9 kB / 1.159 GB, free: 76 kB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/0.7181, allocations: 314.6 kB / 1.159 GB, free: 15.75 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.324e-05/0.7181, allocations: 301.1 kB / 1.159 GB, free: 15.46 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.7193, allocations: 0.5571 MB / 1.16 GB, free: 14.89 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.7208, allocations: 0.9658 MB / 1.161 GB, free: 13.75 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002439/0.7232, allocations: 1.446 MB / 1.162 GB, free: 12.15 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.7232, allocations: 0 / 1.162 GB, free: 12.15 MB / 0.92 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003481/0.7267, allocations: 1.769 MB / 1.164 GB, free: 10.37 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.7268, allocations: 37.7 kB / 1.164 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.7268, allocations: 12 kB / 1.164 GB, free: 10.31 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/0.7269, allocations: 16 kB / 1.164 GB, free: 10.3 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.728, allocations: 308 kB / 1.164 GB, free: 9.996 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.728, allocations: 19.94 kB / 1.164 GB, free: 9.977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.7294, allocations: 179 kB / 1.164 GB, free: 9.801 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.7296, allocations: 59.98 kB / 1.165 GB, free: 9.742 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001848/0.7314, allocations: 0.9873 MB / 1.166 GB, free: 8.75 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001426/0.7328, allocations: 0.9774 MB / 1.166 GB, free: 7.602 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002433/0.7353, allocations: 1.437 MB / 1.168 GB, free: 6.008 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.1e-05/0.7353, allocations: 7.984 kB / 1.168 GB, free: 6 MB / 0.92 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003714/0.739, allocations: 1.756 MB / 1.17 GB, free: 4.227 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.7391, allocations: 38.98 kB / 1.17 GB, free: 4.184 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.7392, allocations: 12.09 kB / 1.17 GB, free: 4.172 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.7392, allocations: 23.92 kB / 1.17 GB, free: 4.148 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.7403, allocations: 303.6 kB / 1.17 GB, free: 3.852 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.968e-05/0.7404, allocations: 27.91 kB / 1.17 GB, free: 3.824 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.742, allocations: 167.2 kB / 1.17 GB, free: 3.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/0.7421, allocations: 59.98 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003204/0.7425, allocations: 257.3 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004296/0.7429, allocations: 205.4 kB / 1.171 GB, free: 3.145 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.7456, allocations: 1.084 MB / 1.172 GB, free: 2.047 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.7456, allocations: 11.98 kB / 1.172 GB, free: 2.035 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.7456, allocations: 4 kB / 1.172 GB, free: 2.031 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001878/0.7475, allocations: 0.7881 MB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00544/0.7529, allocations: 2.908 MB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.753, allocations: 4 kB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000781/0.7538, allocations: 155.9 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001475/0.7539, allocations: 36.84 kB / 1.176 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.754, allocations: 19.98 kB / 1.176 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.755, allocations: 1.429 MB / 1.177 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.755, allocations: 3.938 kB / 1.177 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.7585, allocations: 1.618 MB / 1.179 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008528/0.7594, allocations: 406 kB / 1.179 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000416/0.7598, allocations: 31.91 kB / 1.179 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.7611, allocations: 63.94 kB / 1.179 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.7612, allocations: 56.48 kB / 1.179 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-05/0.7613, allocations: 35.97 kB / 1.179 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002616/0.764, allocations: 1.45 MB / 1.18 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.11e-07/0.764, allocations: 0 / 1.18 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00329/0.7673, allocations: 1.107 MB / 1.182 GB, free: 7.609 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.005543/0.7728, allocations: 2.738 MB / 1.184 GB, free: 4.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00467/0.7775, allocations: 2.173 MB / 1.186 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7775, allocations: 0 / 1.186 GB, free: 2.633 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.7788, allocations: 0.553 MB / 1.187 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004883/0.7837, allocations: 1.106 MB / 1.188 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/0.8113, allocations: 16.46 MB / 1.204 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.8129, allocations: 1.578 MB / 1.206 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002488/0.8155, allocations: 0.5362 MB / 1.206 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.8168, allocations: 0.8859 MB / 1.207 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of SimCode: time 8.92e-07/0.8168, allocations: 0 / 1.207 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5642/1.381, allocations: 59.12 MB / 1.265 GB, free: 223.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/13.13, allocations: 8.719 kB / 1.265 GB, free: 223.4 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)