Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings.Fluid.Delays.Examples.Delay") translateModel(Buildings.Fluid.Delays.Examples.Delay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.T",fileNamePrefix="Buildings_9_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.001171/0.001171, 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.001112/0.001112, allocations: 192.3 kB / 16.14 MB, free: 6.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.486/1.486, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.511/2.511, allocations: 390.2 MB / 0.6642 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 71.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8232/0.8254, allocations: 140.4 MB / 0.9489 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.208/1.034, allocations: 181 MB / 1.126 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.007773/1.041, allocations: 4.937 MB / 1.131 GB, free: 7.504 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008567/1.042, allocations: 27.81 kB / 1.131 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001125/1.043, allocations: 374 kB / 1.131 GB, free: 7.109 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003312/1.047, allocations: 1.33 MB / 1.132 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001807/1.049, allocations: 0.6914 MB / 1.133 GB, free: 5.09 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002545/1.051, allocations: 2.534 MB / 1.135 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006733/1.052, allocations: 0.507 MB / 1.136 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/1.053, allocations: 0.7663 MB / 1.137 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/1.054, allocations: 0.5684 MB / 1.137 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.542e-05/1.055, allocations: 32 kB / 1.137 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/1.057, allocations: 1.617 MB / 1.139 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002401/1.057, allocations: 239.3 kB / 1.139 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003553/1.058, allocations: 370 kB / 1.139 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001712/1.059, allocations: 1.464 MB / 1.141 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/1.059, allocations: 3.938 kB / 1.141 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.042e-06/1.06, allocations: 4 kB / 1.141 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.295e-06/1.06, allocations: 0 / 1.141 GB, free: 12.96 MB / 0.9044 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.001622/1.061, allocations: 1.094 MB / 1.142 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/1.061, allocations: 8.031 kB / 1.142 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/1.062, allocations: 214.8 kB / 1.142 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008238/1.063, allocations: 0.5848 MB / 1.143 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/1.063, allocations: 37 kB / 1.143 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.446e-05/1.063, allocations: 44 kB / 1.143 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008581/1.064, allocations: 0.4944 MB / 1.143 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/1.064, allocations: 0 / 1.143 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.867e-05/1.064, allocations: 20 kB / 1.143 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.762e-05/1.064, allocations: 17 kB / 1.143 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/1.065, allocations: 439.7 kB / 1.144 GB, free: 9.922 MB / 0.9044 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.002666/1.068, allocations: 2.002 MB / 1.146 GB, free: 7.746 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006145/1.068, allocations: 352.5 kB / 1.146 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003429/1.069, allocations: 210.6 kB / 1.146 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003098/1.069, allocations: 190.5 kB / 1.146 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/1.069, allocations: 42.84 kB / 1.146 GB, free: 6.914 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=33): time 1.473e-06/1.069, allocations: 0 / 1.146 GB, free: 6.914 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33): time 0.001232/1.07, allocations: 0.5418 MB / 1.147 GB, free: 6.367 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/1.071, allocations: 59.34 kB / 1.147 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005589/1.071, allocations: 0.5069 MB / 1.147 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/1.071, allocations: 37.7 kB / 1.147 GB, free: 5.738 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/1.071, allocations: 304.2 kB / 1.148 GB, free: 5.438 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000107/1.071, allocations: 114.3 kB / 1.148 GB, free: 5.324 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/1.072, allocations: 65.94 kB / 1.148 GB, free: 5.254 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000168/1.072, allocations: 366.8 kB / 1.148 GB, free: 4.887 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/1.072, allocations: 138.1 kB / 1.148 GB, free: 4.75 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/1.072, allocations: 223.3 kB / 1.149 GB, free: 4.508 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005835/1.073, allocations: 343.1 kB / 1.149 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/1.073, allocations: 0 / 1.149 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007273/1.074, allocations: 425.7 kB / 1.149 GB, free: 3.738 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/1.074, allocations: 8 kB / 1.149 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/1.074, allocations: 0 / 1.149 GB, free: 3.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/1.074, allocations: 3.984 kB / 1.149 GB, free: 3.727 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/1.074, allocations: 71.91 kB / 1.149 GB, free: 3.656 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/1.074, allocations: 12.03 kB / 1.149 GB, free: 3.645 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005224/1.075, allocations: 63.64 kB / 1.149 GB, free: 3.582 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/1.075, allocations: 12 kB / 1.15 GB, free: 3.57 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004389/1.075, allocations: 308 kB / 1.15 GB, free: 3.266 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003182/1.076, allocations: 206.8 kB / 1.15 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005433/1.076, allocations: 331.2 kB / 1.15 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/1.076, allocations: 0 / 1.15 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0006856/1.077, allocations: 432.6 kB / 1.151 GB, free: 2.273 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/1.077, allocations: 12.03 kB / 1.151 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-06/1.077, allocations: 0 / 1.151 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-06/1.077, allocations: 0 / 1.151 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/1.077, allocations: 75.89 kB / 1.151 GB, free: 2.188 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/1.077, allocations: 4 kB / 1.151 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/1.078, allocations: 67.58 kB / 1.151 GB, free: 2.117 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/1.078, allocations: 12.12 kB / 1.151 GB, free: 2.105 MB / 0.9044 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.0001368/1.078, allocations: 192.2 kB / 1.151 GB, free: 1.91 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.884e-05/1.078, allocations: 63.34 kB / 1.151 GB, free: 1.848 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007558/1.079, allocations: 431.2 kB / 1.152 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.718e-06/1.079, allocations: 3.984 kB / 1.152 GB, free: 1.414 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/1.079, allocations: 7.938 kB / 1.152 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006151/1.079, allocations: 436.2 kB / 1.152 GB, free: 0.9492 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/1.081, allocations: 1.172 MB / 1.153 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.081, allocations: 0 / 1.153 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/1.081, allocations: 83.89 kB / 1.153 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/1.081, allocations: 4.188 kB / 1.153 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/1.082, allocations: 12 kB / 1.153 GB, free: 15.6 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/1.082, allocations: 4 kB / 1.153 GB, free: 15.6 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.082, allocations: 4 kB / 1.153 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/1.083, allocations: 0.7002 MB / 1.154 GB, free: 14.86 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/1.083, allocations: 180.3 kB / 1.154 GB, free: 14.66 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/1.083, allocations: 8 kB / 1.154 GB, free: 14.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/1.083, allocations: 49.33 kB / 1.154 GB, free: 14.61 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/1.083, allocations: 19.97 kB / 1.154 GB, free: 14.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/1.083, allocations: 15.98 kB / 1.154 GB, free: 14.57 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003808/1.084, allocations: 370.8 kB / 1.155 GB, free: 14.21 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/1.084, allocations: 0 / 1.155 GB, free: 14.21 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000821/1.085, allocations: 323.2 kB / 1.155 GB, free: 13.9 MB / 0.92 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.0004581/1.085, allocations: 195.2 kB / 1.155 GB, free: 13.71 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009684/1.086, allocations: 0.5233 MB / 1.156 GB, free: 13.19 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.086, allocations: 4 kB / 1.156 GB, free: 13.18 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002962/1.086, allocations: 176 kB / 1.156 GB, free: 13.01 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/1.088, allocations: 374.6 kB / 1.156 GB, free: 12.65 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/1.09, allocations: 1.483 MB / 1.158 GB, free: 11.12 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004554/1.091, allocations: 0.9335 MB / 1.158 GB, free: 10.16 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0005749/1.091, allocations: 184.8 kB / 1.159 GB, free: 9.973 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/1.091, allocations: 43.44 kB / 1.159 GB, free: 9.93 MB / 0.92 GB Notification: Performance of SimCode: time 3.5e-07/1.091, allocations: 0 / 1.159 GB, free: 9.93 MB / 0.92 GB Notification: Performance of Templates: time 0.01722/1.109, allocations: 11.35 MB / 1.17 GB, free: 14.75 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.makefile (rm -f Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; mkfifo Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe >> ../files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.sim & ./Buildings_9_Buildings.Fluid.Delays.Examples.Delay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Delays.Examples.Delay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Delays.Examples.Delay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Delays_Examples_Delay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches