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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001231/0.001231, allocations: 110.9 kB / 16.42 MB, free: 5.973 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.001307/0.001308, allocations: 186.7 kB / 17.35 MB, free: 5.586 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.382/1.382, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.675/2.675, allocations: 472.7 MB / 0.746 GB, free: 408 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 67.89 kB / 1.07 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.707/0.7085, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06829/0.7768, allocations: 67.46 MB / 1.292 GB, free: 9.828 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0272/0.804, allocations: 18.6 MB / 1.31 GB, free: 7.191 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003008/0.8071, allocations: 95.5 kB / 1.311 GB, free: 7.098 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.005207/0.8123, allocations: 2.002 MB / 1.312 GB, free: 5.086 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.007329/0.8196, allocations: 2.942 MB / 1.315 GB, free: 2.133 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.006659/0.8263, allocations: 2.46 MB / 1.318 GB, free: 15.69 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01348/0.8398, allocations: 8.27 MB / 1.326 GB, free: 7.402 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003136/0.843, allocations: 1.938 MB / 1.328 GB, free: 5.414 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004703/0.8477, allocations: 2.147 MB / 1.33 GB, free: 3.27 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.8503, allocations: 1.56 MB / 1.331 GB, free: 1.703 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0006037/0.8509, allocations: 200 kB / 1.332 GB, free: 1.508 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004499/0.8554, allocations: 2.156 MB / 1.334 GB, free: 15.35 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0009144/0.8563, allocations: 0.6969 MB / 1.334 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.8584, allocations: 1.321 MB / 1.336 GB, free: 13.32 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.006968/0.8653, allocations: 4.254 MB / 1.34 GB, free: 9.051 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.8654, allocations: 0 / 1.34 GB, free: 9.051 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.532e-06/0.8654, allocations: 4 kB / 1.34 GB, free: 9.047 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001022/0.8655, allocations: 0 / 1.34 GB, free: 9.047 MB / 1.061 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.006838/0.8723, allocations: 3.205 MB / 1.343 GB, free: 5.754 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.8724, allocations: 15.97 kB / 1.343 GB, free: 5.738 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002297/0.8747, allocations: 493.9 kB / 1.343 GB, free: 5.254 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005742/0.8805, allocations: 2.89 MB / 1.346 GB, free: 2.293 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.8806, allocations: 98.47 kB / 1.346 GB, free: 2.195 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.8809, allocations: 139.9 kB / 1.346 GB, free: 2.059 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003079/0.884, allocations: 1.45 MB / 1.348 GB, free: 0.5195 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.007e-05/0.8841, allocations: 3.938 kB / 1.348 GB, free: 0.5156 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.8842, allocations: 56 kB / 1.348 GB, free: 472 kB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-05/0.8843, allocations: 46.3 kB / 1.348 GB, free: 424 kB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002811/0.8871, allocations: 1.122 MB / 1.349 GB, free: 15.28 MB / 1.076 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.01137/0.8985, allocations: 7.771 MB / 1.357 GB, free: 6.934 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/0.9006, allocations: 1.277 MB / 1.358 GB, free: 5.535 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.9017, allocations: 450.2 kB / 1.358 GB, free: 5.094 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005502/0.9072, allocations: 2.701 MB / 1.361 GB, free: 2.16 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.9083, allocations: 474.5 kB / 1.361 GB, free: 1.676 MB / 1.076 GB Notification: Performance of pre-optimization done (n=62): time 2.966e-06/0.9083, allocations: 4.875 kB / 1.361 GB, free: 1.672 MB / 1.076 GB Notification: Performance of matching and sorting (n=62): time 0.00335/0.9117, allocations: 1.249 MB / 1.363 GB, free: 404 kB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.9118, allocations: 119.3 kB / 1.363 GB, free: 256 kB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/0.9151, allocations: 2.072 MB / 1.365 GB, free: 14.15 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.9153, allocations: 41.7 kB / 1.365 GB, free: 14.11 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009575/0.9162, allocations: 1.047 MB / 1.366 GB, free: 13.05 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.9165, allocations: 238 kB / 1.366 GB, free: 12.82 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.917, allocations: 310.7 kB / 1.366 GB, free: 12.51 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 9.344e-05/0.9171, allocations: 305.1 kB / 1.367 GB, free: 12.21 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.9182, allocations: 0.5532 MB / 1.367 GB, free: 11.65 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.9197, allocations: 0.9619 MB / 1.368 GB, free: 10.51 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/0.9221, allocations: 1.426 MB / 1.37 GB, free: 8.93 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.9221, allocations: 4 kB / 1.37 GB, free: 8.926 MB / 1.092 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003463/0.9256, allocations: 1.758 MB / 1.371 GB, free: 7.152 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.912e-05/0.9256, allocations: 43.52 kB / 1.371 GB, free: 7.105 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.9257, allocations: 12.66 kB / 1.371 GB, free: 7.094 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.149e-05/0.9257, allocations: 20 kB / 1.371 GB, free: 7.074 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.9269, allocations: 299.5 kB / 1.372 GB, free: 6.781 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.129e-05/0.9269, allocations: 27.92 kB / 1.372 GB, free: 6.754 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.9284, allocations: 187.5 kB / 1.372 GB, free: 6.57 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.9286, allocations: 59.98 kB / 1.372 GB, free: 6.512 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001864/0.9304, allocations: 0.9834 MB / 1.373 GB, free: 5.523 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001434/0.9319, allocations: 0.9619 MB / 1.374 GB, free: 4.391 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002354/0.9342, allocations: 1.43 MB / 1.375 GB, free: 2.805 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.317e-06/0.9343, allocations: 4 kB / 1.375 GB, free: 2.801 MB / 1.092 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003454/0.9377, allocations: 1.753 MB / 1.377 GB, free: 1.035 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.9378, allocations: 33.7 kB / 1.377 GB, free: 0.9961 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.9378, allocations: 15.94 kB / 1.377 GB, free: 0.9805 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.9378, allocations: 16 kB / 1.377 GB, free: 0.9648 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.939, allocations: 308.1 kB / 1.377 GB, free: 0.6641 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.45e-05/0.939, allocations: 23.92 kB / 1.377 GB, free: 0.6406 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.9405, allocations: 151.9 kB / 1.377 GB, free: 0.4922 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.9406, allocations: 59.98 kB / 1.377 GB, free: 444 kB / 1.092 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.0003115/0.9409, allocations: 259.8 kB / 1.378 GB, free: 176 kB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004993/0.9414, allocations: 222.5 kB / 1.378 GB, free: 15.95 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.9442, allocations: 1.068 MB / 1.379 GB, free: 14.87 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001822/0.946, allocations: 0.7764 MB / 1.38 GB, free: 14.07 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.9461, allocations: 3.938 kB / 1.38 GB, free: 14.07 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007857/0.9468, allocations: 399.4 kB / 1.38 GB, free: 13.66 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003732/0.9472, allocations: 19.94 kB / 1.38 GB, free: 13.64 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.9483, allocations: 63.92 kB / 1.38 GB, free: 13.58 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.9485, allocations: 56.48 kB / 1.38 GB, free: 13.52 MB / 1.107 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002833/0.9513, allocations: 1.175 MB / 1.381 GB, free: 12.34 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003334/0.9547, allocations: 1.75 MB / 1.383 GB, free: 10.57 MB / 1.107 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009124/0.9556, allocations: 416.3 kB / 1.383 GB, free: 10.16 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002319/0.9579, allocations: 1.377 MB / 1.385 GB, free: 8.773 MB / 1.107 GB Notification: Performance of Backend: time 6.71e-07/0.958, allocations: 4 kB / 1.385 GB, free: 8.77 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.006047/0.964, allocations: 2.522 MB / 1.387 GB, free: 6.23 MB / 1.107 GB Notification: Performance of SimCode: time 0.009018/0.973, allocations: 4.827 MB / 1.392 GB, free: 1.367 MB / 1.107 GB Notification: Performance of Templates: time 0.07447/1.048, allocations: 45.84 MB / 1.437 GB, free: 4.004 MB / 1.154 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