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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 108.9 kB / 16.41 MB, free: 6.441 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.002148/0.002147, allocations: 189.2 kB / 17.34 MB, free: 5.703 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.547/1.547, allocations: 222.9 MB / 241 MB, free: 15.12 MB / 206.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.618/2.618, allocations: 437.1 MB / 0.7112 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 59.91 kB / 1.019 GB, free: 9.27 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8272/0.8292, allocations: 151.6 MB / 1.167 GB, free: 3.734 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07742/0.9066, allocations: 67.48 MB / 1.233 GB, free: 20 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03107/0.9377, allocations: 18.58 MB / 1.251 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004729/0.9425, allocations: 99.44 kB / 1.252 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.006457/0.949, allocations: 2.009 MB / 1.253 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.009131/0.9582, allocations: 2.945 MB / 1.256 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.006731/0.9649, allocations: 2.449 MB / 1.259 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01382/0.9787, allocations: 8.298 MB / 1.267 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003985/0.9828, allocations: 1.942 MB / 1.269 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006443/0.9892, allocations: 2.151 MB / 1.271 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003184/0.9924, allocations: 1.574 MB / 1.272 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000767/0.9932, allocations: 200 kB / 1.273 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0059/0.9991, allocations: 2.152 MB / 1.275 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001259/1, allocations: 0.693 MB / 1.275 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002998/1.003, allocations: 1.329 MB / 1.277 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01081/1.014, allocations: 4.258 MB / 1.281 GB, free: 15.2 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/1.014, allocations: 4 kB / 1.281 GB, free: 15.19 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.796e-06/1.014, allocations: 0 / 1.281 GB, free: 15.19 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001786/1.015, allocations: 0 / 1.281 GB, free: 15.19 MB / 1.014 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.008674/1.023, allocations: 3.201 MB / 1.284 GB, free: 11.91 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.023, allocations: 8.031 kB / 1.284 GB, free: 11.9 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002293/1.026, allocations: 497.9 kB / 1.284 GB, free: 11.41 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00635/1.032, allocations: 2.893 MB / 1.287 GB, free: 8.445 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/1.032, allocations: 98.47 kB / 1.287 GB, free: 8.348 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/1.032, allocations: 139.9 kB / 1.287 GB, free: 8.211 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/1.036, allocations: 1.456 MB / 1.289 GB, free: 6.664 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/1.036, allocations: 3.938 kB / 1.289 GB, free: 6.66 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/1.036, allocations: 48 kB / 1.289 GB, free: 6.613 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.618e-05/1.036, allocations: 50.31 kB / 1.289 GB, free: 6.562 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002805/1.039, allocations: 1.121 MB / 1.29 GB, free: 5.434 MB / 1.014 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.01201/1.051, allocations: 7.744 MB / 1.298 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002443/1.053, allocations: 1.282 MB / 1.299 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/1.054, allocations: 454.2 kB / 1.299 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005564/1.06, allocations: 2.716 MB / 1.302 GB, free: 8.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/1.061, allocations: 478.5 kB / 1.302 GB, free: 7.836 MB / 1.029 GB Notification: Performance of pre-optimization done (n=62): time 2.314e-06/1.061, allocations: 0 / 1.302 GB, free: 7.836 MB / 1.029 GB Notification: Performance of matching and sorting (n=62): time 0.003552/1.065, allocations: 1.249 MB / 1.304 GB, free: 6.559 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/1.065, allocations: 119.4 kB / 1.304 GB, free: 6.418 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/1.068, allocations: 2.075 MB / 1.306 GB, free: 4.316 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001252/1.069, allocations: 41.7 kB / 1.306 GB, free: 4.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001088/1.07, allocations: 1.051 MB / 1.307 GB, free: 3.211 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/1.07, allocations: 238.1 kB / 1.307 GB, free: 2.977 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/1.07, allocations: 314.7 kB / 1.307 GB, free: 2.664 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001417/1.071, allocations: 301.1 kB / 1.308 GB, free: 2.367 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/1.072, allocations: 0.5454 MB / 1.308 GB, free: 1.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/1.074, allocations: 0.9696 MB / 1.309 GB, free: 0.668 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002762/1.076, allocations: 1.418 MB / 1.311 GB, free: 15.1 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/1.076, allocations: 4 kB / 1.311 GB, free: 15.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003938/1.08, allocations: 1.762 MB / 1.312 GB, free: 13.32 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.122e-05/1.08, allocations: 38.34 kB / 1.312 GB, free: 13.27 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/1.08, allocations: 15.98 kB / 1.312 GB, free: 13.26 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.383e-05/1.08, allocations: 20 kB / 1.312 GB, free: 13.24 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/1.082, allocations: 299.6 kB / 1.313 GB, free: 12.95 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.109e-05/1.082, allocations: 31.81 kB / 1.313 GB, free: 12.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/1.083, allocations: 182.9 kB / 1.313 GB, free: 12.73 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/1.083, allocations: 59.98 kB / 1.313 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002133/1.085, allocations: 0.9795 MB / 1.314 GB, free: 11.69 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001643/1.087, allocations: 0.958 MB / 1.315 GB, free: 10.56 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002746/1.09, allocations: 1.429 MB / 1.316 GB, free: 8.973 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.514e-06/1.09, allocations: 4 kB / 1.316 GB, free: 8.969 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003814/1.094, allocations: 1.754 MB / 1.318 GB, free: 7.203 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/1.094, allocations: 37.64 kB / 1.318 GB, free: 7.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/1.094, allocations: 12 kB / 1.318 GB, free: 7.148 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/1.094, allocations: 16 kB / 1.318 GB, free: 7.133 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/1.095, allocations: 304.2 kB / 1.318 GB, free: 6.836 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/1.095, allocations: 23.94 kB / 1.318 GB, free: 6.812 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/1.096, allocations: 155.3 kB / 1.318 GB, free: 6.66 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/1.097, allocations: 59.98 kB / 1.318 GB, free: 6.602 MB / 1.045 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.0003717/1.097, allocations: 255.8 kB / 1.319 GB, free: 6.344 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003495/1.097, allocations: 226.5 kB / 1.319 GB, free: 6.121 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/1.1, allocations: 1.068 MB / 1.32 GB, free: 5.039 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/1.1, allocations: 8 kB / 1.32 GB, free: 5.031 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/1.1, allocations: 8 kB / 1.32 GB, free: 5.023 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001948/1.102, allocations: 0.7764 MB / 1.321 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0056/1.108, allocations: 2.893 MB / 1.324 GB, free: 1.246 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/1.108, allocations: 7.938 kB / 1.324 GB, free: 1.238 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007654/1.109, allocations: 164 kB / 1.324 GB, free: 1.078 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001631/1.109, allocations: 28.84 kB / 1.324 GB, free: 1.047 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.54e-05/1.109, allocations: 19.98 kB / 1.324 GB, free: 1.027 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001371/1.11, allocations: 1.426 MB / 1.325 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.11, allocations: 4 kB / 1.325 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003592/1.114, allocations: 1.612 MB / 1.327 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008651/1.115, allocations: 423.3 kB / 1.327 GB, free: 13.38 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/1.115, allocations: 16 kB / 1.327 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/1.116, allocations: 75.81 kB / 1.327 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.116, allocations: 60.42 kB / 1.327 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-05/1.116, allocations: 39.91 kB / 1.327 GB, free: 13.19 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002453/1.119, allocations: 1.454 MB / 1.329 GB, free: 11.72 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.1e-07/1.119, allocations: 0 / 1.329 GB, free: 11.72 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002928/1.122, allocations: 1.119 MB / 1.33 GB, free: 10.6 MB / 1.061 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.001528/1.123, allocations: 0.6721 MB / 1.331 GB, free: 9.926 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004507/1.128, allocations: 2.083 MB / 1.333 GB, free: 7.824 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.128, allocations: 0 / 1.333 GB, free: 7.824 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001312/1.129, allocations: 0.5505 MB / 1.333 GB, free: 7.266 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/1.134, allocations: 1.101 MB / 1.334 GB, free: 6.195 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006902/1.14, allocations: 3.776 MB / 1.338 GB, free: 2.359 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/1.142, allocations: 1.574 MB / 1.339 GB, free: 0.75 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001988/1.144, allocations: 0.5322 MB / 1.34 GB, free: 220 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000457/1.144, allocations: 171.4 kB / 1.34 GB, free: 48 kB / 1.061 GB Notification: Performance of SimCode: time 9.52e-07/1.145, allocations: 0 / 1.34 GB, free: 48 kB / 1.061 GB Notification: Performance of Templates: time 0.07883/1.223, allocations: 42.83 MB / 1.382 GB, free: 5.719 MB / 1.107 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (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 & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches