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.001452/0.001451, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.001448/0.001448, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.414/1.414, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.684/2.684, allocations: 469.4 MB / 0.7423 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.00152, allocations: 64.75 kB / 0.9083 GB, free: 14.49 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3761, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Delays.Examples.Delay): time 0.8612/1.237, allocations: 180.8 MB / 1.24 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00838/1.246, allocations: 4.853 MB / 1.245 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/1.247, allocations: 27.81 kB / 1.245 GB, free: 15.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001283/1.248, allocations: 382 kB / 1.245 GB, free: 15.45 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003539/1.252, allocations: 1.327 MB / 1.247 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00203/1.254, allocations: 0.707 MB / 1.247 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002425/1.256, allocations: 1.845 MB / 1.249 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008029/1.257, allocations: 0.5745 MB / 1.25 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001774/1.259, allocations: 0.8794 MB / 1.251 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/1.26, allocations: 0.5673 MB / 1.251 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001028/1.26, allocations: 60 kB / 1.251 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002624/1.263, allocations: 1.469 MB / 1.253 GB, free: 8 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002779/1.263, allocations: 267.2 kB / 1.253 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004136/1.264, allocations: 398.1 kB / 1.253 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001351/1.265, allocations: 1.045 MB / 1.254 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.265, allocations: 0 / 1.254 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.034e-06/1.265, allocations: 4 kB / 1.254 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.279e-05/1.265, allocations: 0 / 1.254 GB, free: 6.297 MB / 0.9669 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.001666/1.267, allocations: 1.094 MB / 1.255 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/1.267, allocations: 12.62 kB / 1.255 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/1.268, allocations: 206.9 kB / 1.256 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000831/1.269, allocations: 0.5848 MB / 1.256 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/1.269, allocations: 37 kB / 1.256 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.474e-05/1.269, allocations: 51.98 kB / 1.256 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008855/1.27, allocations: 0.4905 MB / 1.257 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/1.27, allocations: 4 kB / 1.257 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.883e-05/1.27, allocations: 16 kB / 1.257 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/1.27, allocations: 20.98 kB / 1.257 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007595/1.271, allocations: 435.7 kB / 1.257 GB, free: 3.258 MB / 0.9669 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.002576/1.274, allocations: 2.002 MB / 1.259 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006361/1.274, allocations: 351.5 kB / 1.26 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/1.275, allocations: 209.3 kB / 1.26 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002963/1.275, allocations: 194.5 kB / 1.26 GB, free: 300 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/1.275, allocations: 42.78 kB / 1.26 GB, free: 248 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/1.275, allocations: 0 / 1.26 GB, free: 248 kB / 0.9669 GB Notification: Performance of matching and sorting (n=33): time 0.001233/1.276, allocations: 0.538 MB / 1.26 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/1.276, allocations: 59.34 kB / 1.261 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005497/1.277, allocations: 0.5107 MB / 1.261 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/1.277, allocations: 37.7 kB / 1.261 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/1.277, allocations: 300.2 kB / 1.261 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.00011/1.277, allocations: 126.2 kB / 1.261 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/1.277, allocations: 66.03 kB / 1.262 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.277, allocations: 362.8 kB / 1.262 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/1.278, allocations: 142.1 kB / 1.262 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/1.278, allocations: 223.2 kB / 1.262 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/1.279, allocations: 348.3 kB / 1.263 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/1.279, allocations: 0 / 1.263 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00071/1.279, allocations: 425.7 kB / 1.263 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/1.279, allocations: 4 kB / 1.263 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/1.279, allocations: 4 kB / 1.263 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/1.279, allocations: 0 / 1.263 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/1.28, allocations: 71.98 kB / 1.263 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/1.28, allocations: 11.94 kB / 1.263 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/1.28, allocations: 67.64 kB / 1.263 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/1.28, allocations: 8 kB / 1.263 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000431/1.281, allocations: 308 kB / 1.263 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003064/1.281, allocations: 207.4 kB / 1.264 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005288/1.282, allocations: 331.5 kB / 1.264 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.162e-06/1.282, allocations: 0 / 1.264 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0007011/1.282, allocations: 436.3 kB / 1.264 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/1.282, allocations: 5.875 kB / 1.264 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/1.282, allocations: 4.875 kB / 1.264 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-06/1.282, allocations: 0 / 1.264 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003105/1.283, allocations: 75.89 kB / 1.264 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/1.283, allocations: 4 kB / 1.264 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004968/1.283, allocations: 59.7 kB / 1.264 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/1.283, allocations: 16.86 kB / 1.265 GB, free: 11.43 MB / 0.9825 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.0001405/1.283, allocations: 196.2 kB / 1.265 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.694e-05/1.283, allocations: 63.25 kB / 1.265 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007616/1.284, allocations: 420.1 kB / 1.265 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/1.284, allocations: 4 kB / 1.265 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/1.284, allocations: 5.438 kB / 1.265 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005896/1.285, allocations: 436.4 kB / 1.266 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/1.287, allocations: 1.182 MB / 1.267 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/1.287, allocations: 3.938 kB / 1.267 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/1.287, allocations: 84.08 kB / 1.267 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/1.287, allocations: 8 kB / 1.267 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/1.287, allocations: 8 kB / 1.267 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/1.287, allocations: 5.328 kB / 1.267 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/1.287, allocations: 4 kB / 1.267 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/1.288, allocations: 0.6949 MB / 1.268 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/1.289, allocations: 184.3 kB / 1.268 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.268e-05/1.289, allocations: 12.12 kB / 1.268 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005108/1.289, allocations: 43.95 kB / 1.268 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.611e-05/1.289, allocations: 27.91 kB / 1.268 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/1.289, allocations: 12 kB / 1.268 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004065/1.29, allocations: 366.8 kB / 1.268 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3e-07/1.29, allocations: 0 / 1.268 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009077/1.291, allocations: 335 kB / 1.268 GB, free: 7.211 MB / 0.9825 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.0004777/1.291, allocations: 195.6 kB / 1.269 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001073/1.292, allocations: 0.5506 MB / 1.269 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.292, allocations: 0 / 1.269 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003049/1.292, allocations: 183.7 kB / 1.269 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/1.294, allocations: 342.3 kB / 1.27 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/1.296, allocations: 1.532 MB / 1.271 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/1.297, allocations: 0.9256 MB / 1.272 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/1.297, allocations: 51.44 kB / 1.272 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of SimCode: time 6.01e-07/1.297, allocations: 0 / 1.272 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of Templates: time 0.01869/1.316, allocations: 9.656 MB / 1.282 GB, free: 9.801 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Delays.Examples.Delay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches