Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.001282/0.001282, allocations: 108 kB / 15.61 MB, free: 152 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.001277/0.001277, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.031/2.031, allocations: 390.2 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 59.91 kB / 0.8126 GB, free: 14.4 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4547/0.4558, allocations: 140.4 MB / 0.9497 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04057/0.4964, allocations: 53.32 MB / 1.002 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01737/0.5138, allocations: 15.2 MB / 1.017 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001429/0.5153, allocations: 87.5 kB / 1.017 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002084/0.5174, allocations: 1.101 MB / 1.018 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.003712/0.5211, allocations: 2.354 MB / 1.02 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003757/0.5249, allocations: 2.249 MB / 1.022 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.003629/0.5285, allocations: 4.63 MB / 1.027 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001479/0.53, allocations: 1.619 MB / 1.028 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.5325, allocations: 1.906 MB / 1.03 GB, free: 15.15 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.5338, allocations: 1.353 MB / 1.032 GB, free: 13.79 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002139/0.534, allocations: 171.9 kB / 1.032 GB, free: 13.62 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002492/0.5365, allocations: 1.837 MB / 1.034 GB, free: 11.79 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003955/0.5369, allocations: 0.5216 MB / 1.034 GB, free: 11.26 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0007776/0.5377, allocations: 1.041 MB / 1.035 GB, free: 10.21 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002902/0.5406, allocations: 3.279 MB / 1.038 GB, free: 6.926 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5406, allocations: 0 / 1.038 GB, free: 6.926 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5406, allocations: 0 / 1.038 GB, free: 6.926 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.586e-05/0.5406, allocations: 0 / 1.038 GB, free: 6.926 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003166/0.5438, allocations: 2.517 MB / 1.041 GB, free: 4.34 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.5438, allocations: 8.031 kB / 1.041 GB, free: 4.332 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.544, allocations: 173.2 kB / 1.041 GB, free: 4.152 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002335/0.5463, allocations: 0.5246 MB / 1.041 GB, free: 3.625 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.5488, allocations: 1.632 MB / 1.043 GB, free: 1.941 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.5491, allocations: 142.4 kB / 1.043 GB, free: 1.801 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.5493, allocations: 116 kB / 1.043 GB, free: 1.688 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.5514, allocations: 1.382 MB / 1.045 GB, free: 216 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.5515, allocations: 0 / 1.045 GB, free: 216 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.5516, allocations: 55.92 kB / 1.045 GB, free: 160 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.073e-05/0.5516, allocations: 45.98 kB / 1.045 GB, free: 112 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002443/0.5541, allocations: 1.128 MB / 1.046 GB, free: 14.97 MB / 0.8106 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.007245/0.5613, allocations: 7.188 MB / 1.053 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002289/0.5636, allocations: 1.398 MB / 1.054 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009268/0.5646, allocations: 440.9 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004215/0.5688, allocations: 3.161 MB / 1.058 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009732/0.5698, allocations: 462.8 kB / 1.058 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=60): time 1.763e-06/0.5698, allocations: 0 / 1.058 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60): time 0.002896/0.5727, allocations: 1.287 MB / 1.059 GB, free: 4 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.5727, allocations: 59.97 kB / 1.059 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.5742, allocations: 1.537 MB / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.5743, allocations: 37.7 kB / 1.061 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005608/0.5749, allocations: 0.8839 MB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.575, allocations: 220.9 kB / 1.062 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.5753, allocations: 202.4 kB / 1.062 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5754, allocations: 341.9 kB / 1.063 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/0.5763, allocations: 408.6 kB / 1.063 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/0.5774, allocations: 0.7787 MB / 1.064 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.5794, allocations: 1.164 MB / 1.065 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.5794, allocations: 7.938 kB / 1.065 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002449/0.5819, allocations: 1.34 MB / 1.066 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.5819, allocations: 41.7 kB / 1.066 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.582, allocations: 16.08 kB / 1.066 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.582, allocations: 19.94 kB / 1.066 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009217/0.5829, allocations: 263.9 kB / 1.066 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.969e-05/0.5829, allocations: 23.92 kB / 1.067 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008637/0.5838, allocations: 143.7 kB / 1.067 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.852e-05/0.5839, allocations: 51.98 kB / 1.067 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001223/0.5851, allocations: 0.7029 MB / 1.067 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001082/0.5862, allocations: 0.7592 MB / 1.068 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001932/0.5882, allocations: 1.132 MB / 1.069 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.749e-06/0.5882, allocations: 4 kB / 1.069 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002445/0.5906, allocations: 1.317 MB / 1.071 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.5907, allocations: 41.69 kB / 1.071 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5907, allocations: 12 kB / 1.071 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.5907, allocations: 16.62 kB / 1.071 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.5916, allocations: 259.6 kB / 1.071 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.5916, allocations: 23.92 kB / 1.071 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008741/0.5925, allocations: 131.9 kB / 1.071 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.376e-05/0.5926, allocations: 55.98 kB / 1.071 GB, free: 3.301 MB / 0.8262 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.000186/0.5928, allocations: 259.8 kB / 1.071 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.593, allocations: 161.9 kB / 1.071 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.5954, allocations: 1.159 MB / 1.073 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.5954, allocations: 12 kB / 1.073 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5954, allocations: 0 / 1.073 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001884/0.5973, allocations: 1.009 MB / 1.074 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003888/0.6012, allocations: 2.494 MB / 1.076 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.6012, allocations: 0 / 1.076 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000693/0.6019, allocations: 151.9 kB / 1.076 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.6021, allocations: 24.84 kB / 1.076 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.6021, allocations: 23.98 kB / 1.076 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008685/0.603, allocations: 1.418 MB / 1.078 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.603, allocations: 3.938 kB / 1.078 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.6061, allocations: 1.616 MB / 1.079 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004054/0.6065, allocations: 342.7 kB / 1.079 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.6067, allocations: 19.94 kB / 1.08 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007669/0.6074, allocations: 63.94 kB / 1.08 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.6075, allocations: 52.48 kB / 1.08 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-05/0.6076, allocations: 31.97 kB / 1.08 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001169/0.6088, allocations: 1.089 MB / 1.081 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6088, allocations: 0 / 1.081 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001676/0.6105, allocations: 0.8692 MB / 1.082 GB, free: 8.164 MB / 0.8419 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.s[1],mov.filter.s[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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.004572/0.615, allocations: 2.806 MB / 1.084 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00346/0.6185, allocations: 1.718 MB / 1.086 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.6185, allocations: 0 / 1.086 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.6196, allocations: 0.5688 MB / 1.087 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.6222, allocations: 0.7715 MB / 1.087 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01643/0.6387, allocations: 13.03 MB / 1.1 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007837/0.6395, allocations: 1.36 MB / 1.101 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001335/0.6408, allocations: 413.9 kB / 1.102 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007772/0.6416, allocations: 0.714 MB / 1.102 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.6416, allocations: 0 / 1.102 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.287/1.928, allocations: 45.12 MB / 1.146 GB, free: 5.324 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/13.85, allocations: 7.969 kB / 1.147 GB, free: 5.316 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)