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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008638/0.0008638, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005144/0.005144, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.285/1.285, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003008, allocations: 12.28 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5404/0.5407, allocations: 142.4 MB / 0.9552 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04649/0.5872, allocations: 51.91 MB / 1.006 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02021/0.6075, allocations: 15.11 MB / 1.021 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002262/0.6097, allocations: 79.5 kB / 1.021 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002451/0.6122, allocations: 0.9529 MB / 1.022 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005113/0.6173, allocations: 2.155 MB / 1.024 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.6219, allocations: 2.012 MB / 1.026 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00608/0.628, allocations: 6.007 MB / 1.032 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001633/0.6296, allocations: 1.35 MB / 1.033 GB, free: 15.56 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.6321, allocations: 1.61 MB / 1.034 GB, free: 13.95 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001391/0.6335, allocations: 1.306 MB / 1.036 GB, free: 12.63 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.6337, allocations: 68 kB / 1.036 GB, free: 12.57 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002829/0.6365, allocations: 1.711 MB / 1.037 GB, free: 10.85 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003994/0.6369, allocations: 426.2 kB / 1.038 GB, free: 10.43 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0008108/0.6377, allocations: 0.9299 MB / 1.039 GB, free: 9.492 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003066/0.6408, allocations: 3.162 MB / 1.042 GB, free: 6.32 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6408, allocations: 4 kB / 1.042 GB, free: 6.316 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.302e-06/0.6408, allocations: 0 / 1.042 GB, free: 6.316 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.632e-05/0.6409, allocations: 0 / 1.042 GB, free: 6.316 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.003274/0.6441, allocations: 2.171 MB / 1.044 GB, free: 4.078 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.6442, allocations: 8.031 kB / 1.044 GB, free: 4.07 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.6444, allocations: 169.2 kB / 1.044 GB, free: 3.895 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/0.6469, allocations: 0.5637 MB / 1.045 GB, free: 3.328 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.65, allocations: 1.686 MB / 1.046 GB, free: 1.59 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003841/0.6504, allocations: 170.4 kB / 1.047 GB, free: 1.422 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.6506, allocations: 116 kB / 1.047 GB, free: 1.309 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00256/0.6531, allocations: 1.398 MB / 1.048 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.6532, allocations: 3.938 kB / 1.048 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.6533, allocations: 47.94 kB / 1.048 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/0.6533, allocations: 42.08 kB / 1.048 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002813/0.6561, allocations: 1.179 MB / 1.049 GB, free: 14.54 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.008244/0.6644, allocations: 7.052 MB / 1.056 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/0.667, allocations: 1.466 MB / 1.058 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.6681, allocations: 468.6 kB / 1.058 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004847/0.6729, allocations: 3.192 MB / 1.061 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/0.674, allocations: 494.8 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003043/0.6744, allocations: 83.25 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.124e-06/0.6744, allocations: 0 / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.00322/0.6776, allocations: 1.338 MB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.6777, allocations: 63.97 kB / 1.063 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.6794, allocations: 1.513 MB / 1.065 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.98e-05/0.6795, allocations: 41.7 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009539/0.6804, allocations: 0.88 MB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.6806, allocations: 220.9 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.6808, allocations: 89.66 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.6809, allocations: 345.9 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.6819, allocations: 413.8 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.6832, allocations: 0.7983 MB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00223/0.6855, allocations: 1.199 MB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.6855, allocations: 7.938 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002726/0.6882, allocations: 1.375 MB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002556/0.6885, allocations: 454.2 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.6885, allocations: 8 kB / 1.07 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.6885, allocations: 16 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.6895, allocations: 275.6 kB / 1.07 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.109e-05/0.6896, allocations: 23.92 kB / 1.07 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.6906, allocations: 132.5 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.422e-05/0.6907, allocations: 51.98 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.6907, allocations: 11.94 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002496/0.6932, allocations: 1.185 MB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.6933, allocations: 8 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.6933, allocations: 16.09 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/0.6943, allocations: 275.8 kB / 1.072 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.6943, allocations: 23.92 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009847/0.6953, allocations: 132.4 kB / 1.072 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.611e-05/0.6954, allocations: 51.98 kB / 1.072 GB, free: 5.316 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 (121): * Single equations (assignments): 119 * 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.0005664/0.696, allocations: 478.7 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.6962, allocations: 165.9 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.6989, allocations: 1.209 MB / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.6989, allocations: 8 kB / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6989, allocations: 4 kB / 1.074 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002126/0.7011, allocations: 1.052 MB / 1.075 GB, free: 2.336 MB / 0.8262 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.004469/0.7056, allocations: 2.514 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.7056, allocations: 3.938 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009867/0.7066, allocations: 163.9 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.7067, allocations: 32.78 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-05/0.7068, allocations: 19.98 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009314/0.7077, allocations: 1.315 MB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7077, allocations: 3.938 kB / 1.079 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003355/0.7111, allocations: 1.67 MB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004572/0.7116, allocations: 350.6 kB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.7118, allocations: 19.94 kB / 1.081 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009859/0.7128, allocations: 115.9 kB / 1.081 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.7129, allocations: 60.36 kB / 1.081 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.713, allocations: 31.97 kB / 1.081 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001305/0.7143, allocations: 1.085 MB / 1.082 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7143, allocations: 0 / 1.082 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002025/0.7163, allocations: 0.8615 MB / 1.083 GB, free: 9.82 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 (71): * Single equations (assignments): 62 * 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.005027/0.7213, allocations: 2.846 MB / 1.086 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003451/0.7248, allocations: 1.719 MB / 1.088 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.7248, allocations: 0 / 1.088 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.726, allocations: 0.5879 MB / 1.088 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003058/0.7291, allocations: 0.7153 MB / 1.089 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02079/0.7499, allocations: 13.72 MB / 1.102 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008567/0.7508, allocations: 1.364 MB / 1.104 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001443/0.7522, allocations: 426 kB / 1.104 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008535/0.7531, allocations: 0.7101 MB / 1.105 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of SimCode: time 5.61e-07/0.7531, allocations: 0 / 1.105 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.169/1.922, allocations: 43.05 MB / 1.147 GB, free: 8.367 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/1.922, allocations: 274.3 kB / 1.147 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.949/4.871, allocations: 0 / 1.147 GB, free: 8.004 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)