Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.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.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Delays.Examples.Delay") translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Delays.Examples.Delay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002368/0.002368, allocations: 195.4 kB / 16.14 MB, free: 6.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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.744/2.744, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 63.14 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3596, allocations: 157.4 MB / 1.052 GB, free: 8.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.2096/0.5693, allocations: 181 MB / 1.229 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008992/0.5783, allocations: 4.937 MB / 1.234 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.5795, allocations: 27.81 kB / 1.234 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001356/0.5809, allocations: 374 kB / 1.234 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004048/0.585, allocations: 1.331 MB / 1.235 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002131/0.5872, allocations: 0.6913 MB / 1.236 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003178/0.5903, allocations: 2.534 MB / 1.239 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000854/0.5912, allocations: 0.5069 MB / 1.239 GB, free: 8.758 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002/0.5932, allocations: 0.7741 MB / 1.24 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.5945, allocations: 0.5723 MB / 1.24 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.5946, allocations: 32 kB / 1.24 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.5977, allocations: 1.609 MB / 1.242 GB, free: 5.766 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003671/0.5981, allocations: 235.2 kB / 1.242 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004994/0.5986, allocations: 374.1 kB / 1.243 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.6011, allocations: 1.464 MB / 1.244 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.6011, allocations: 0 / 1.244 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of FrontEnd: time 8.01e-07/0.6011, allocations: 4 kB / 1.244 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.343e-05/0.6011, allocations: 4 kB / 1.244 GB, free: 3.691 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001796/0.6029, allocations: 1.098 MB / 1.245 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.603, allocations: 8.031 kB / 1.245 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/0.6044, allocations: 214.8 kB / 1.245 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009444/0.6053, allocations: 0.5772 MB / 1.246 GB, free: 1.703 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.6054, allocations: 37 kB / 1.246 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001843/0.6056, allocations: 51.94 kB / 1.246 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.6067, allocations: 0.4906 MB / 1.246 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.6067, allocations: 4 kB / 1.246 GB, free: 1.121 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.6068, allocations: 16 kB / 1.246 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.994e-05/0.6068, allocations: 17 kB / 1.246 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007922/0.6076, allocations: 439.6 kB / 1.247 GB, free: 0.6562 MB / 0.9981 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.6678/1.275, allocations: 2.001 MB / 1.249 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007691/1.276, allocations: 345.3 kB / 1.249 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004111/1.277, allocations: 207.1 kB / 1.249 GB, free: 196.2 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003193/1.277, allocations: 196.6 kB / 1.249 GB, free: 196 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.277, allocations: 37.91 kB / 1.25 GB, free: 196 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/1.277, allocations: 0 / 1.25 GB, free: 196 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.001672/1.279, allocations: 0.5435 MB / 1.25 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/1.279, allocations: 62.22 kB / 1.25 GB, free: 195.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007269/1.279, allocations: 0.5095 MB / 1.251 GB, free: 195.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/1.28, allocations: 32.61 kB / 1.251 GB, free: 195.7 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000246/1.28, allocations: 300.5 kB / 1.251 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/1.28, allocations: 124.5 kB / 1.251 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/1.28, allocations: 73.23 kB / 1.251 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001129/1.28, allocations: 366.5 kB / 1.251 GB, free: 195.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/1.28, allocations: 144.7 kB / 1.252 GB, free: 195.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003683/1.281, allocations: 216 kB / 1.252 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/1.281, allocations: 337.1 kB / 1.252 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/1.282, allocations: 0 / 1.252 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006738/1.282, allocations: 432.2 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/1.282, allocations: 5.781 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.282, allocations: 2.344 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/1.282, allocations: 2.906 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/1.283, allocations: 76.25 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/1.283, allocations: 6.812 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/1.283, allocations: 60.94 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/1.283, allocations: 23.19 kB / 1.253 GB, free: 195 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004278/1.284, allocations: 303.6 kB / 1.253 GB, free: 194.9 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002698/1.284, allocations: 209.7 kB / 1.253 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004769/1.284, allocations: 333.8 kB / 1.254 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-06/1.284, allocations: 0 / 1.254 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0006259/1.285, allocations: 429.7 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/1.285, allocations: 8.25 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-06/1.285, allocations: 2.562 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-06/1.285, allocations: 2.812 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/1.285, allocations: 70.98 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/1.285, allocations: 2.906 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005244/1.286, allocations: 52.59 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/1.286, allocations: 18.88 kB / 1.254 GB, free: 194.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001412/1.286, allocations: 208.5 kB / 1.254 GB, free: 194.5 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.555e-05/1.286, allocations: 61.53 kB / 1.254 GB, free: 194.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007414/1.287, allocations: 415.8 kB / 1.255 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/1.287, allocations: 5.125 kB / 1.255 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/1.287, allocations: 0 / 1.255 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005493/1.288, allocations: 437.2 kB / 1.255 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/1.289, allocations: 1.182 MB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.289, allocations: 4.5 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/1.29, allocations: 85.53 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.228e-06/1.29, allocations: 5.016 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/1.29, allocations: 16.94 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/1.29, allocations: 7.094 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.29, allocations: 2.688 kB / 1.256 GB, free: 193.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/1.291, allocations: 0.699 MB / 1.257 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/1.291, allocations: 183.6 kB / 1.257 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.125e-05/1.291, allocations: 9.719 kB / 1.257 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005238/1.292, allocations: 47.23 kB / 1.257 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/1.292, allocations: 22.75 kB / 1.257 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/1.292, allocations: 12.48 kB / 1.257 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005505/1.293, allocations: 366.9 kB / 1.258 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3e-07/1.293, allocations: 0 / 1.258 GB, free: 193.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001085/1.294, allocations: 319.4 kB / 1.258 GB, free: 193.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (del.dynBal.medium.Xi[1],del.dynBal.U,del.dynBal.m) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000525/1.294, allocations: 200.3 kB / 1.258 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001016/1.295, allocations: 0.5058 MB / 1.259 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.295, allocations: 2.938 kB / 1.259 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003002/1.296, allocations: 183.5 kB / 1.259 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/1.297, allocations: 369.3 kB / 1.259 GB, free: 193.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/1.299, allocations: 1.488 MB / 1.261 GB, free: 192.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005052/1.3, allocations: 0.933 MB / 1.262 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007842/1.301, allocations: 185.6 kB / 1.262 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/1.301, allocations: 46.47 kB / 1.262 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of SimCode: time 2.054e-06/1.301, allocations: 0 / 1.262 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.02908/1.33, allocations: 11.33 MB / 1.273 GB, free: 189.7 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.makefile (rm -f Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.sim & ./Buildings_latest_Buildings.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Delays_Examples_Delay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches