Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001284/0.001284, allocations: 187 kB / 17.34 MB, free: 5.719 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.439/1.439, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 67.89 kB / 1.055 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.936/0.9374, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05871/0.9962, allocations: 53.75 MB / 1.261 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02776/1.024, allocations: 17.02 MB / 1.278 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003849/1.028, allocations: 91.5 kB / 1.278 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006505/1.034, allocations: 1.907 MB / 1.28 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008091/1.043, allocations: 2.507 MB / 1.282 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006958/1.049, allocations: 2.343 MB / 1.284 GB, free: 15.76 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01242/1.062, allocations: 7.545 MB / 1.292 GB, free: 8.211 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003487/1.065, allocations: 1.663 MB / 1.293 GB, free: 6.512 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00585/1.071, allocations: 1.963 MB / 1.295 GB, free: 4.547 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/1.075, allocations: 1.428 MB / 1.297 GB, free: 3.113 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0008689/1.075, allocations: 180 kB / 1.297 GB, free: 2.938 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005223/1.081, allocations: 2.024 MB / 1.299 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001236/1.082, allocations: 0.658 MB / 1.299 GB, free: 256 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002747/1.085, allocations: 1.224 MB / 1.301 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.008679/1.093, allocations: 3.933 MB / 1.304 GB, free: 11.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/1.093, allocations: 0 / 1.304 GB, free: 11.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.355e-06/1.093, allocations: 4 kB / 1.304 GB, free: 11.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001489/1.094, allocations: 0 / 1.304 GB, free: 11.07 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.007984/1.102, allocations: 2.936 MB / 1.307 GB, free: 8.055 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/1.102, allocations: 12.03 kB / 1.307 GB, free: 8.043 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003133/1.105, allocations: 0.5472 MB / 1.308 GB, free: 7.492 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006221/1.111, allocations: 2.735 MB / 1.31 GB, free: 4.684 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/1.111, allocations: 94.17 kB / 1.311 GB, free: 4.59 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004551/1.112, allocations: 120 kB / 1.311 GB, free: 4.473 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003611/1.115, allocations: 1.359 MB / 1.312 GB, free: 3.016 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.309e-05/1.115, allocations: 7.938 kB / 1.312 GB, free: 3.008 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/1.116, allocations: 48 kB / 1.312 GB, free: 2.961 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.218e-05/1.116, allocations: 38.08 kB / 1.312 GB, free: 2.922 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00308/1.119, allocations: 1.105 MB / 1.313 GB, free: 1.809 MB / 1.029 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.01165/1.13, allocations: 7.468 MB / 1.32 GB, free: 9.777 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/1.133, allocations: 1.329 MB / 1.322 GB, free: 8.332 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009947/1.134, allocations: 422.8 kB / 1.322 GB, free: 7.914 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006156/1.14, allocations: 3.16 MB / 1.325 GB, free: 4.41 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/1.141, allocations: 422.9 kB / 1.326 GB, free: 3.988 MB / 1.045 GB Notification: Performance of pre-optimization done (n=59): time 3.838e-06/1.141, allocations: 0 / 1.326 GB, free: 3.988 MB / 1.045 GB Notification: Performance of matching and sorting (n=59): time 0.003612/1.145, allocations: 1.248 MB / 1.327 GB, free: 2.711 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/1.145, allocations: 63.97 kB / 1.327 GB, free: 2.637 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/1.149, allocations: 2.129 MB / 1.329 GB, free: 492 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001673/1.149, allocations: 37.7 kB / 1.329 GB, free: 448 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001099/1.15, allocations: 1.022 MB / 1.33 GB, free: 15.41 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003039/1.151, allocations: 217 kB / 1.33 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005636/1.151, allocations: 314.5 kB / 1.331 GB, free: 14.88 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.151, allocations: 305.1 kB / 1.331 GB, free: 14.57 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/1.153, allocations: 0.5493 MB / 1.331 GB, free: 14.02 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/1.154, allocations: 0.9963 MB / 1.332 GB, free: 12.84 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/1.157, allocations: 1.448 MB / 1.334 GB, free: 11.22 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.691e-05/1.157, allocations: 4 kB / 1.334 GB, free: 11.22 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003826/1.161, allocations: 1.767 MB / 1.335 GB, free: 9.438 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/1.161, allocations: 41.7 kB / 1.336 GB, free: 9.391 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/1.161, allocations: 12 kB / 1.336 GB, free: 9.379 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.128e-05/1.161, allocations: 16.69 kB / 1.336 GB, free: 9.363 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/1.162, allocations: 311.5 kB / 1.336 GB, free: 9.059 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.709e-05/1.162, allocations: 23.94 kB / 1.336 GB, free: 9.035 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/1.164, allocations: 182.5 kB / 1.336 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001424/1.164, allocations: 63.98 kB / 1.336 GB, free: 8.793 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002081/1.166, allocations: 0.9764 MB / 1.337 GB, free: 7.809 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001583/1.168, allocations: 0.9924 MB / 1.338 GB, free: 6.637 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002543/1.17, allocations: 1.451 MB / 1.339 GB, free: 5.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-05/1.17, allocations: 0 / 1.339 GB, free: 5.02 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.00382/1.174, allocations: 1.765 MB / 1.341 GB, free: 3.238 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/1.174, allocations: 45.64 kB / 1.341 GB, free: 3.188 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/1.174, allocations: 12 kB / 1.341 GB, free: 3.176 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/1.174, allocations: 16 kB / 1.341 GB, free: 3.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/1.175, allocations: 308 kB / 1.342 GB, free: 2.859 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.163e-05/1.175, allocations: 27.92 kB / 1.342 GB, free: 2.832 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/1.177, allocations: 155.6 kB / 1.342 GB, free: 2.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/1.177, allocations: 67.97 kB / 1.342 GB, free: 2.613 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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.0004188/1.178, allocations: 255.8 kB / 1.342 GB, free: 2.355 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/1.178, allocations: 205.3 kB / 1.342 GB, free: 2.152 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002852/1.181, allocations: 1.131 MB / 1.343 GB, free: 1.008 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/1.181, allocations: 11.94 kB / 1.343 GB, free: 0.9961 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.181, allocations: 0 / 1.343 GB, free: 0.9961 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001997/1.183, allocations: 0.9504 MB / 1.344 GB, free: 0 / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005404/1.189, allocations: 2.625 MB / 1.347 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/1.189, allocations: 4.062 kB / 1.347 GB, free: 13.3 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/1.19, allocations: 147.8 kB / 1.347 GB, free: 13.16 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/1.19, allocations: 32.78 kB / 1.347 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.584e-05/1.19, allocations: 23.98 kB / 1.347 GB, free: 13.1 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/1.191, allocations: 1.414 MB / 1.348 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/1.191, allocations: 3.938 kB / 1.348 GB, free: 11.54 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003651/1.195, allocations: 1.563 MB / 1.35 GB, free: 9.945 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/1.196, allocations: 402 kB / 1.35 GB, free: 9.531 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000554/1.196, allocations: 24 kB / 1.35 GB, free: 9.508 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/1.197, allocations: 63.88 kB / 1.35 GB, free: 9.445 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/1.198, allocations: 60.42 kB / 1.35 GB, free: 9.387 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.364e-05/1.198, allocations: 31.97 kB / 1.35 GB, free: 9.355 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.002991/1.201, allocations: 1.477 MB / 1.352 GB, free: 7.867 MB / 1.076 GB Notification: Performance of sort global known variables: time 4.01e-07/1.201, allocations: 0 / 1.352 GB, free: 7.867 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.004023/1.205, allocations: 1.022 MB / 1.353 GB, free: 6.844 MB / 1.076 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 (69): * Single equations (assignments): 60 * 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.00253/1.207, allocations: 0.881 MB / 1.354 GB, free: 6.094 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.004772/1.212, allocations: 2.093 MB / 1.356 GB, free: 3.98 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/1.212, allocations: 0.5625 kB / 1.356 GB, free: 3.98 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.00132/1.213, allocations: 0.5409 MB / 1.356 GB, free: 3.43 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005217/1.219, allocations: 0.9689 MB / 1.357 GB, free: 2.488 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007961/1.227, allocations: 3.704 MB / 1.361 GB, free: 14.74 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/1.228, allocations: 1.531 MB / 1.362 GB, free: 13.18 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007819/1.229, allocations: 183.4 kB / 1.363 GB, free: 13 MB / 1.092 GB Notification: Performance of SimCode: time 1.182e-06/1.229, allocations: 0 / 1.363 GB, free: 13 MB / 1.092 GB Notification: Performance of Templates: time 0.0608/1.29, allocations: 40.5 MB / 1.402 GB, free: 4.75 MB / 1.123 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,TSet.y,TOut.y,TVol.T,THeaOut.T,hea.TSet,hea.Q_flow Variables in the result:THeaOut.T,TOut.y,TSet.y,TVol.T,hea.Q_flow,hea.TSet,time