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 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.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.001387/0.001387, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001375/0.001375, allocations: 188.5 kB / 16.25 MB, free: 6.641 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.859/2.859, allocations: 482.3 MB / 0.7543 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002663, allocations: 63.06 kB / 0.9233 GB, free: 29.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2859, allocations: 162.2 MB / 1.082 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.7755/1.061, allocations: 180.9 MB / 1.258 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00736/1.069, allocations: 4.852 MB / 1.263 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009143/1.07, allocations: 29.33 kB / 1.263 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001037/1.071, allocations: 380.3 kB / 1.264 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00319/1.074, allocations: 1.322 MB / 1.265 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001857/1.076, allocations: 0.7039 MB / 1.265 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002218/1.078, allocations: 1.849 MB / 1.267 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007331/1.079, allocations: 0.5769 MB / 1.268 GB, free: 7.113 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002093/1.081, allocations: 1.071 MB / 1.269 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/1.082, allocations: 0.5664 MB / 1.269 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.715e-05/1.082, allocations: 57.94 kB / 1.27 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/1.085, allocations: 1.461 MB / 1.271 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000286/1.085, allocations: 262.1 kB / 1.271 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004149/1.085, allocations: 403.7 kB / 1.272 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00212/1.087, allocations: 1.488 MB / 1.273 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.087, allocations: 0 / 1.273 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.773e-06/1.087, allocations: 4.875 kB / 1.273 GB, free: 7 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.068e-05/1.087, allocations: 0 / 1.273 GB, free: 7 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.001834/1.089, allocations: 1.106 MB / 1.274 GB, free: 22.34 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/1.089, allocations: 9.672 kB / 1.274 GB, free: 22.34 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/1.091, allocations: 207 kB / 1.274 GB, free: 22.3 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008105/1.091, allocations: 0.5924 MB / 1.275 GB, free: 22 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/1.091, allocations: 33.25 kB / 1.275 GB, free: 22 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.699e-05/1.092, allocations: 49.64 kB / 1.275 GB, free: 22 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008613/1.092, allocations: 498.6 kB / 1.275 GB, free: 21.97 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/1.092, allocations: 9.531 kB / 1.275 GB, free: 21.97 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/1.092, allocations: 17.47 kB / 1.275 GB, free: 21.97 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.068e-05/1.093, allocations: 19.45 kB / 1.275 GB, free: 21.96 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007427/1.093, allocations: 438 kB / 1.276 GB, free: 21.96 MB / 1.014 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.002627/1.096, allocations: 2.073 MB / 1.278 GB, free: 20.88 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/1.096, allocations: 351.2 kB / 1.278 GB, free: 20.86 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/1.097, allocations: 204.8 kB / 1.278 GB, free: 20.85 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002941/1.097, allocations: 193.7 kB / 1.279 GB, free: 20.66 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/1.097, allocations: 40.77 kB / 1.279 GB, free: 20.62 MB / 1.014 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/1.097, allocations: 0 / 1.279 GB, free: 20.62 MB / 1.014 GB Notification: Performance of matching and sorting (n=33): time 0.001156/1.098, allocations: 0.5429 MB / 1.279 GB, free: 20.55 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/1.098, allocations: 57.09 kB / 1.279 GB, free: 20.49 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005049/1.099, allocations: 0.5081 MB / 1.28 GB, free: 20.37 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.461e-05/1.099, allocations: 32.45 kB / 1.28 GB, free: 20.34 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/1.099, allocations: 300.6 kB / 1.28 GB, free: 20.2 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 9.203e-05/1.099, allocations: 120.7 kB / 1.28 GB, free: 20.13 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/1.099, allocations: 65.64 kB / 1.28 GB, free: 20.11 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001767/1.1, allocations: 370.3 kB / 1.281 GB, free: 19.8 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/1.1, allocations: 146.4 kB / 1.281 GB, free: 19.79 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/1.1, allocations: 221.4 kB / 1.281 GB, free: 19.72 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/1.101, allocations: 333.5 kB / 1.281 GB, free: 19.69 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/1.101, allocations: 0.9062 kB / 1.281 GB, free: 19.69 MB / 1.014 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007122/1.101, allocations: 438.7 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.101, allocations: 6.5 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.101, allocations: 1.125 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/1.101, allocations: 4.016 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/1.102, allocations: 72.17 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/1.102, allocations: 1.438 kB / 1.282 GB, free: 19.61 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000583/1.102, allocations: 67.7 kB / 1.282 GB, free: 19.59 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/1.102, allocations: 15.64 kB / 1.282 GB, free: 19.59 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004956/1.103, allocations: 310.2 kB / 1.282 GB, free: 19.51 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003639/1.103, allocations: 210.9 kB / 1.282 GB, free: 19.45 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006137/1.104, allocations: 332.8 kB / 1.283 GB, free: 19.41 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/1.104, allocations: 4.688 kB / 1.283 GB, free: 19.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0006925/1.105, allocations: 424.6 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/1.105, allocations: 7.312 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-06/1.105, allocations: 1.562 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.34e-06/1.105, allocations: 3.875 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/1.105, allocations: 69.73 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/1.105, allocations: 4.984 kB / 1.283 GB, free: 19.34 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005603/1.106, allocations: 61.2 kB / 1.283 GB, free: 19.33 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/1.106, allocations: 13.67 kB / 1.283 GB, free: 19.33 MB / 1.014 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.0002011/1.106, allocations: 201.6 kB / 1.283 GB, free: 19.14 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/1.106, allocations: 61.23 kB / 1.283 GB, free: 19.11 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/1.107, allocations: 422.3 kB / 1.284 GB, free: 19.07 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.107, allocations: 4 kB / 1.284 GB, free: 19.07 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.107, allocations: 0.5625 kB / 1.284 GB, free: 19.07 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006137/1.107, allocations: 438.6 kB / 1.284 GB, free: 18.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/1.109, allocations: 1.177 MB / 1.285 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/1.109, allocations: 4.781 kB / 1.285 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/1.11, allocations: 84.56 kB / 1.286 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/1.11, allocations: 6.562 kB / 1.286 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/1.11, allocations: 11.42 kB / 1.286 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/1.11, allocations: 5.562 kB / 1.286 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.11, allocations: 1.875 kB / 1.286 GB, free: 18.54 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009824/1.111, allocations: 0.6938 MB / 1.286 GB, free: 18.32 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/1.111, allocations: 177 kB / 1.286 GB, free: 18.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/1.111, allocations: 15.89 kB / 1.286 GB, free: 18.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/1.112, allocations: 47.58 kB / 1.286 GB, free: 18.19 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.445e-05/1.112, allocations: 26.53 kB / 1.287 GB, free: 18.19 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.14e-05/1.112, allocations: 15.52 kB / 1.287 GB, free: 18.19 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004047/1.112, allocations: 361.8 kB / 1.287 GB, free: 18.11 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.112, allocations: 1.938 kB / 1.287 GB, free: 18.11 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0008591/1.113, allocations: 325.6 kB / 1.287 GB, free: 18.06 MB / 1.014 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.0004635/1.113, allocations: 203.2 kB / 1.287 GB, free: 17.96 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001042/1.114, allocations: 0.5525 MB / 1.288 GB, free: 17.95 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.114, allocations: 2.203 kB / 1.288 GB, free: 17.95 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000293/1.115, allocations: 177.8 kB / 1.288 GB, free: 17.95 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/1.116, allocations: 355 kB / 1.288 GB, free: 17.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/1.118, allocations: 1.486 MB / 1.29 GB, free: 17.15 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006298/1.119, allocations: 0.9334 MB / 1.291 GB, free: 16.45 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0007499/1.12, allocations: 179 kB / 1.291 GB, free: 16.44 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/1.12, allocations: 52.86 kB / 1.291 GB, free: 16.43 MB / 1.014 GB Notification: Performance of SimCode: time 8.62e-07/1.12, allocations: 0 / 1.291 GB, free: 16.43 MB / 1.014 GB Notification: Performance of Templates: time 0.02191/1.142, allocations: 11.58 MB / 1.302 GB, free: 15.72 MB / 1.014 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=400 -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