Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.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.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ter.1..TLoaODE.TAir|minTSet.y|ter.1..QReqHea_flow|ter.1..QActHea_flow|ter.1..mReqHeaWat_flow|ter.1..port_aHeaWat.m_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1") translateModel(Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ter.1..TLoaODE.TAir|minTSet.y|ter.1..QReqHea_flow|ter.1..QActHea_flow|ter.1..mReqHeaWat_flow|ter.1..port_aHeaWat.m_flow",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 114.6 kB / 16.42 MB, free: 6.473 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.001895/0.001895, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.498/1.498, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.721/2.721, allocations: 472.7 MB / 0.746 GB, free: 428 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 67.89 kB / 1.07 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9884/0.9899, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1): time 1.48/2.47, allocations: 426.8 MB / 1.643 GB, free: 31.43 MB / 1.279 GB Notification: Performance of NFInst.instExpressions: time 0.09682/2.567, allocations: 66.86 MB / 1.708 GB, free: 29.38 MB / 1.279 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01925/2.586, allocations: 306 kB / 1.709 GB, free: 29.38 MB / 1.279 GB Notification: Performance of NFTyping.typeComponents: time 0.01164/2.598, allocations: 3.622 MB / 1.712 GB, free: 28.56 MB / 1.279 GB Notification: Performance of NFTyping.typeBindings: time 0.02285/2.621, allocations: 7.69 MB / 1.72 GB, free: 26.59 MB / 1.279 GB Notification: Performance of NFTyping.typeClassSections: time 0.0146/2.635, allocations: 5.421 MB / 1.725 GB, free: 24.42 MB / 1.279 GB Notification: Performance of NFFlatten.flatten: time 0.115/2.75, allocations: 60.02 MB / 1.784 GB, free: 4.605 MB / 1.295 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03774/2.788, allocations: 19.75 MB / 1.803 GB, free: 0.9062 MB / 1.311 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03681/2.825, allocations: 14.28 MB / 1.817 GB, free: 3.316 MB / 1.326 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02565/2.851, allocations: 10.99 MB / 1.828 GB, free: 9.082 MB / 1.342 GB Notification: Performance of NFPackage.collectConstants: time 0.008332/2.859, allocations: 1.684 MB / 1.829 GB, free: 7.398 MB / 1.342 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03315/2.892, allocations: 7.167 MB / 1.836 GB, free: 0.6719 MB / 1.342 GB Notification: Performance of NFScalarize.scalarize: time 0.01275/2.905, allocations: 5.738 MB / 1.842 GB, free: 10.98 MB / 1.357 GB Notification: Performance of NFVerifyModel.verify: time 0.02872/2.934, allocations: 10.13 MB / 1.852 GB, free: 0.875 MB / 1.357 GB Notification: Performance of NFConvertDAE.convert: time 0.06316/2.997, allocations: 32.66 MB / 1.884 GB, free: 0.9844 MB / 1.389 GB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/2.997, allocations: 4 kB / 1.884 GB, free: 0.9805 MB / 1.389 GB Notification: Performance of FrontEnd: time 1.443e-06/2.997, allocations: 0 / 1.884 GB, free: 0.9805 MB / 1.389 GB Notification: Performance of Transformations before backend: time 0.001265/2.998, allocations: 0 / 1.884 GB, free: 0.9805 MB / 1.389 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2376 * Number of variables: 2376 Notification: Performance of Generate backend data structure: time 0.07269/3.071, allocations: 21.01 MB / 1.904 GB, free: 11.99 MB / 1.42 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/3.071, allocations: 8.031 kB / 1.904 GB, free: 11.98 MB / 1.42 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03067/3.102, allocations: 5.586 MB / 1.91 GB, free: 6.387 MB / 1.42 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06271/3.165, allocations: 25.83 MB / 1.935 GB, free: 12.93 MB / 1.451 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001252/3.166, allocations: 0.7733 MB / 1.936 GB, free: 12.16 MB / 1.451 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005065/3.171, allocations: 0.9792 MB / 1.937 GB, free: 11.19 MB / 1.451 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04762/3.219, allocations: 15.53 MB / 1.952 GB, free: 10.96 MB / 1.467 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004867/3.219, allocations: 35.69 kB / 1.952 GB, free: 10.93 MB / 1.467 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004222/3.223, allocations: 399.7 kB / 1.952 GB, free: 10.54 MB / 1.467 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004959/3.224, allocations: 372.5 kB / 1.953 GB, free: 10.17 MB / 1.467 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04132/3.265, allocations: 13.79 MB / 1.966 GB, free: 12.35 MB / 1.482 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.1408/3.406, allocations: 68.08 MB / 2.033 GB, free: 5.574 MB / 1.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02657/3.433, allocations: 10.53 MB / 2.043 GB, free: 11.02 MB / 1.561 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.011/3.444, allocations: 4.563 MB / 2.047 GB, free: 6.453 MB / 1.561 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04145/3.485, allocations: 14.19 MB / 2.061 GB, free: 8.004 MB / 1.576 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01342/3.499, allocations: 5.081 MB / 2.066 GB, free: 2.867 MB / 1.576 GB Notification: Performance of pre-optimization done (n=429): time 1.4e-05/3.499, allocations: 0 / 2.066 GB, free: 2.867 MB / 1.576 GB Notification: Performance of matching and sorting (n=429): time 0.1052/3.604, allocations: 28.46 MB / 2.094 GB, free: 6.285 MB / 1.607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002823/3.604, allocations: 465.2 kB / 2.094 GB, free: 5.734 MB / 1.607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05602/3.66, allocations: 19.33 MB / 2.113 GB, free: 2.477 MB / 1.623 GB Notification: Performance of collectPreVariables (initialization): time 0.002078/3.662, allocations: 165.7 kB / 2.113 GB, free: 2.309 MB / 1.623 GB Notification: Performance of collectInitialEqns (initialization): time 0.01508/3.678, allocations: 8.028 MB / 2.121 GB, free: 10.32 MB / 1.639 GB Notification: Performance of collectInitialBindings (initialization): time 0.003197/3.681, allocations: 1.604 MB / 2.123 GB, free: 8.738 MB / 1.639 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01069/3.692, allocations: 2.45 MB / 2.125 GB, free: 6.281 MB / 1.639 GB Notification: Performance of setup shared object (initialization): time 0.0001308/3.692, allocations: 309.1 kB / 2.125 GB, free: 5.977 MB / 1.639 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01603/3.708, allocations: 6.488 MB / 2.132 GB, free: 15.47 MB / 1.654 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02072/3.729, allocations: 10.11 MB / 2.142 GB, free: 3.875 MB / 1.654 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03166/3.76, allocations: 14.92 MB / 2.156 GB, free: 3.625 MB / 1.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001626/3.76, allocations: 28 kB / 2.156 GB, free: 3.598 MB / 1.67 GB Notification: Performance of matching and sorting (n=1345) (initialization): time 0.06193/3.822, allocations: 20.45 MB / 2.176 GB, free: 15.04 MB / 1.701 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001929/3.823, allocations: 44 kB / 2.176 GB, free: 15 MB / 1.701 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002535/3.823, allocations: 88.38 kB / 2.176 GB, free: 14.91 MB / 1.701 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01643/3.839, allocations: 4.776 MB / 2.181 GB, free: 10.12 MB / 1.701 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/3.85, allocations: 1.927 MB / 2.183 GB, free: 8.188 MB / 1.701 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01978/3.87, allocations: 10.24 MB / 2.193 GB, free: 13.79 MB / 1.717 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01775/3.887, allocations: 1.78 MB / 2.195 GB, free: 12 MB / 1.717 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003017/3.891, allocations: 490 kB / 2.195 GB, free: 11.52 MB / 1.717 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.9567/4.847, allocations: 11.95 MB / 2.207 GB, free: 0.6994 GB / 1.717 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01965/4.867, allocations: 9.772 MB / 2.216 GB, free: 0.6956 GB / 1.717 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0263/4.893, allocations: 14.34 MB / 2.23 GB, free: 0.69 GB / 1.717 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.0002232/4.894, allocations: 31.03 kB / 2.23 GB, free: 0.69 GB / 1.717 GB Notification: Performance of matching and sorting (n=1345) (initialization_lambda0): time 0.04746/4.941, allocations: 19.39 MB / 2.249 GB, free: 0.6848 GB / 1.717 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/4.941, allocations: 45.12 kB / 2.249 GB, free: 0.6848 GB / 1.717 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/4.941, allocations: 88.97 kB / 2.249 GB, free: 0.6848 GB / 1.717 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009415/4.951, allocations: 3.737 MB / 2.253 GB, free: 0.6843 GB / 1.717 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007996/4.959, allocations: 1.951 MB / 2.255 GB, free: 0.6841 GB / 1.717 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/4.969, allocations: 8.158 MB / 2.263 GB, free: 0.6801 GB / 1.717 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.015/4.984, allocations: 1.39 MB / 2.264 GB, free: 0.6799 GB / 1.717 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00234/4.987, allocations: 469.6 kB / 2.265 GB, free: 0.6799 GB / 1.717 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.loa.nextTimeEvent,$whenCondition1,ter[5].con1.y,ter[4].con1.y,ter[3].con1.y,ter[2].con1.y,ter[1].con1.y,ter[1].hex.flowRegime_nominal,ter[1].hex.flowRegime,ter[2].hex.flowRegime_nominal,ter[2].hex.flowRegime,ter[3].hex.flowRegime_nominal,ter[3].hex.flowRegime,ter[4].hex.flowRegime_nominal,ter[4].hex.flowRegime,ter[5].hex.flowRegime_nominal,ter[5].hex.flowRegime,loa.nextTimeEventScaled,$PRE.loa.nextTimeEventScaled,loa.nextTimeEvent,ter[5].greThr.greHys.y,$PRE.ter[5].greThr.greHys.y,ter[4].greThr.greHys.y,$PRE.ter[4].greThr.greHys.y,ter[3].greThr.greHys.y,$PRE.ter[3].greThr.greHys.y,ter[2].greThr.greHys.y,$PRE.ter[2].greThr.greHys.y,ter[1].greThr.greHys.y,$PRE.ter[1].greThr.greHys.y,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (985): * Single equations (assignments): 967 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,32), (1,32), (1,32), (1,32), (1,32)} Notification: Performance of prepare postOptimizeDAE: time 0.00345/4.99, allocations: 0.7771 MB / 2.265 GB, free: 0.6793 GB / 1.717 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007766/4.998, allocations: 1.558 MB / 2.267 GB, free: 0.6793 GB / 1.717 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03135/5.029, allocations: 11.71 MB / 2.278 GB, free: 0.6752 GB / 1.717 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01977/5.049, allocations: 9.557 MB / 2.288 GB, free: 0.6658 GB / 1.717 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.531e-05/5.049, allocations: 4 kB / 2.288 GB, free: 0.6658 GB / 1.717 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00988/5.059, allocations: 2.941 MB / 2.291 GB, free: 0.663 GB / 1.717 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005817/5.065, allocations: 99.97 kB / 2.291 GB, free: 0.6629 GB / 1.717 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01281/5.078, allocations: 0.9161 MB / 2.292 GB, free: 0.662 GB / 1.717 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001535/5.079, allocations: 330.6 kB / 2.292 GB, free: 0.6617 GB / 1.717 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03798/5.117, allocations: 14.72 MB / 2.306 GB, free: 0.6476 GB / 1.717 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03516/5.153, allocations: 15.46 MB / 2.321 GB, free: 0.6325 GB / 1.717 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.008882/5.162, allocations: 4.429 MB / 2.326 GB, free: 0.6282 GB / 1.717 GB Notification: Performance of sorting global known variables: time 0.0313/5.193, allocations: 13.34 MB / 2.339 GB, free: 0.6152 GB / 1.717 GB Notification: Performance of Backend: time 8.72e-07/5.193, allocations: 0 / 2.339 GB, free: 0.6152 GB / 1.717 GB Notification: Performance of simCode: created initialization part: time 0.05364/5.247, allocations: 19.66 MB / 2.358 GB, free: 0.5967 GB / 1.717 GB Notification: Performance of SimCode: time 0.08618/5.333, allocations: 39.85 MB / 2.397 GB, free: 0.5579 GB / 1.717 GB Notification: Performance of Templates: time 0.4576/5.79, allocations: 352.7 MB / 2.741 GB, free: 220.6 MB / 1.717 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.sim & ./Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_BaseClasses_Validation_BenchmarkFlowDistribution1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.BaseClasses.Validation.BenchmarkFlowDistribution1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches