Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_latest_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_latest_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.001558/0.001558, allocations: 108.3 kB / 16.41 MB, free: 6.512 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.001639/0.001639, allocations: 187 kB / 17.34 MB, free: 5.742 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.754/2.754, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001497, allocations: 68.11 kB / 1.055 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9943/0.9958, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.08046/1.076, allocations: 67.46 MB / 1.274 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0316/1.108, allocations: 18.59 MB / 1.292 GB, free: 7.301 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/1.113, allocations: 99.44 kB / 1.293 GB, free: 7.203 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.006999/1.12, allocations: 1.963 MB / 1.295 GB, free: 5.234 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.00953/1.129, allocations: 2.826 MB / 1.297 GB, free: 2.395 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.007611/1.137, allocations: 2.437 MB / 1.3 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01415/1.151, allocations: 8.276 MB / 1.308 GB, free: 7.684 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004206/1.155, allocations: 1.938 MB / 1.31 GB, free: 5.691 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006561/1.162, allocations: 2.15 MB / 1.312 GB, free: 3.543 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00354/1.165, allocations: 1.566 MB / 1.313 GB, free: 1.973 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.001056/1.167, allocations: 200 kB / 1.313 GB, free: 1.777 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005864/1.172, allocations: 2.149 MB / 1.316 GB, free: 15.62 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001386/1.174, allocations: 0.6969 MB / 1.316 GB, free: 14.93 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003164/1.177, allocations: 1.325 MB / 1.318 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.009431/1.186, allocations: 4.241 MB / 1.322 GB, free: 9.34 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/1.187, allocations: 0 / 1.322 GB, free: 9.34 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.565e-06/1.187, allocations: 0 / 1.322 GB, free: 9.34 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0001514/1.187, allocations: 0 / 1.322 GB, free: 9.34 MB / 1.045 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.008628/1.195, allocations: 3.103 MB / 1.325 GB, free: 6.152 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/1.195, allocations: 8.031 kB / 1.325 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002601/1.198, allocations: 484.4 kB / 1.325 GB, free: 5.668 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006708/1.205, allocations: 2.88 MB / 1.328 GB, free: 2.715 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/1.205, allocations: 102.5 kB / 1.328 GB, free: 2.613 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004588/1.205, allocations: 131.9 kB / 1.328 GB, free: 2.484 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/1.209, allocations: 1.448 MB / 1.33 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/1.209, allocations: 11.92 kB / 1.33 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/1.21, allocations: 55.98 kB / 1.33 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.334e-05/1.21, allocations: 46.31 kB / 1.33 GB, free: 0.832 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/1.213, allocations: 1.122 MB / 1.331 GB, free: 15.7 MB / 1.061 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.01315/1.226, allocations: 7.738 MB / 1.338 GB, free: 7.387 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/1.228, allocations: 1.275 MB / 1.34 GB, free: 5.996 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/1.229, allocations: 454 kB / 1.34 GB, free: 5.551 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006004/1.235, allocations: 2.716 MB / 1.343 GB, free: 2.602 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/1.237, allocations: 470.5 kB / 1.343 GB, free: 2.125 MB / 1.061 GB Notification: Performance of pre-optimization done (n=62): time 4.99e-06/1.237, allocations: 4 kB / 1.343 GB, free: 2.121 MB / 1.061 GB Notification: Performance of matching and sorting (n=62): time 0.003693/1.24, allocations: 1.24 MB / 1.344 GB, free: 0.8516 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.186e-05/1.24, allocations: 115.3 kB / 1.344 GB, free: 0.7148 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004679/1.245, allocations: 2.075 MB / 1.346 GB, free: 14.61 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0002299/1.245, allocations: 45.7 kB / 1.347 GB, free: 14.56 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001338/1.247, allocations: 1.03 MB / 1.348 GB, free: 13.52 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004/1.247, allocations: 224.9 kB / 1.348 GB, free: 13.3 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007275/1.248, allocations: 318.5 kB / 1.348 GB, free: 12.98 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001124/1.248, allocations: 301.1 kB / 1.348 GB, free: 12.69 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/1.249, allocations: 0.5415 MB / 1.349 GB, free: 12.14 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/1.251, allocations: 0.9619 MB / 1.35 GB, free: 11 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002625/1.254, allocations: 1.43 MB / 1.351 GB, free: 9.41 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/1.254, allocations: 4 kB / 1.351 GB, free: 9.406 MB / 1.076 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003873/1.258, allocations: 1.745 MB / 1.353 GB, free: 7.648 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/1.258, allocations: 45.62 kB / 1.353 GB, free: 7.598 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/1.258, allocations: 8 kB / 1.353 GB, free: 7.59 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.454e-05/1.258, allocations: 20 kB / 1.353 GB, free: 7.57 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/1.259, allocations: 304.2 kB / 1.353 GB, free: 7.273 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-05/1.259, allocations: 23.92 kB / 1.353 GB, free: 7.25 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/1.261, allocations: 170.6 kB / 1.353 GB, free: 7.082 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/1.261, allocations: 63.98 kB / 1.354 GB, free: 7.02 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002148/1.263, allocations: 0.9795 MB / 1.354 GB, free: 6.039 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001524/1.265, allocations: 0.9657 MB / 1.355 GB, free: 4.898 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00249/1.267, allocations: 1.426 MB / 1.357 GB, free: 3.316 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.731e-05/1.267, allocations: 11.94 kB / 1.357 GB, free: 3.305 MB / 1.076 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003764/1.271, allocations: 1.744 MB / 1.359 GB, free: 1.543 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 5.044e-05/1.271, allocations: 45.64 kB / 1.359 GB, free: 1.492 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/1.271, allocations: 8 kB / 1.359 GB, free: 1.484 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/1.271, allocations: 20 kB / 1.359 GB, free: 1.465 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/1.272, allocations: 303.8 kB / 1.359 GB, free: 1.168 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.164e-05/1.272, allocations: 19.94 kB / 1.359 GB, free: 1.148 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/1.274, allocations: 151.1 kB / 1.359 GB, free: 1 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/1.274, allocations: 59.98 kB / 1.359 GB, free: 0.9414 MB / 1.076 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.0003986/1.274, allocations: 255.9 kB / 1.359 GB, free: 0.6836 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/1.275, allocations: 205.3 kB / 1.36 GB, free: 492 kB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/1.278, allocations: 1.08 MB / 1.361 GB, free: 15.38 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/1.278, allocations: 8 kB / 1.361 GB, free: 15.38 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.278, allocations: 0 / 1.361 GB, free: 15.38 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00178/1.28, allocations: 0.7764 MB / 1.361 GB, free: 14.59 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006623/1.286, allocations: 2.897 MB / 1.364 GB, free: 11.61 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/1.287, allocations: 7.969 kB / 1.364 GB, free: 11.6 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007644/1.287, allocations: 155.8 kB / 1.364 GB, free: 11.45 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/1.288, allocations: 36.84 kB / 1.364 GB, free: 11.41 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/1.288, allocations: 23.98 kB / 1.364 GB, free: 11.38 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/1.289, allocations: 1.418 MB / 1.366 GB, free: 9.824 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.289, allocations: 0 / 1.366 GB, free: 9.824 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003697/1.293, allocations: 1.6 MB / 1.367 GB, free: 8.18 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/1.294, allocations: 413.9 kB / 1.368 GB, free: 7.754 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005698/1.294, allocations: 27.98 kB / 1.368 GB, free: 7.727 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/1.296, allocations: 63.88 kB / 1.368 GB, free: 7.664 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/1.296, allocations: 68.36 kB / 1.368 GB, free: 7.598 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/1.296, allocations: 35.97 kB / 1.368 GB, free: 7.562 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.003067/1.299, allocations: 1.458 MB / 1.369 GB, free: 6.094 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.8e-07/1.299, allocations: 0 / 1.369 GB, free: 6.094 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003928/1.303, allocations: 1.096 MB / 1.37 GB, free: 4.996 MB / 1.092 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.001904/1.305, allocations: 0.6763 MB / 1.371 GB, free: 4.32 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.004549/1.309, allocations: 2.084 MB / 1.373 GB, free: 2.219 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.309, allocations: 0 / 1.373 GB, free: 2.219 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.001271/1.311, allocations: 0.5418 MB / 1.374 GB, free: 1.668 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005597/1.316, allocations: 1.097 MB / 1.375 GB, free: 0.5977 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007709/1.324, allocations: 3.795 MB / 1.378 GB, free: 12.74 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/1.326, allocations: 1.57 MB / 1.38 GB, free: 11.14 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007672/1.327, allocations: 183.3 kB / 1.38 GB, free: 10.96 MB / 1.107 GB Notification: Performance of SimCode: time 1.133e-06/1.327, allocations: 0 / 1.38 GB, free: 10.96 MB / 1.107 GB Notification: Performance of Templates: time 0.06655/1.393, allocations: 42.41 MB / 1.422 GB, free: 0.8242 MB / 1.139 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches