Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005975/0.005975, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001216/0.001216, allocations: 192 kB / 16.67 MB, free: 5.949 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.698/2.698, allocations: 472.7 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 67.89 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9201/0.9214, allocations: 159.9 MB / 1.226 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03066/0.9521, allocations: 28.59 MB / 1.254 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01472/0.9669, allocations: 7.929 MB / 1.261 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.9692, allocations: 35.81 kB / 1.261 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.9707, allocations: 401.2 kB / 1.262 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003152/0.9739, allocations: 1.01 MB / 1.263 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.9769, allocations: 1.076 MB / 1.264 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005279/0.9822, allocations: 4.913 MB / 1.269 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003074/0.9853, allocations: 2.293 MB / 1.271 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004292/0.9896, allocations: 1.785 MB / 1.273 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002838/0.9925, allocations: 1.447 MB / 1.274 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004812/0.993, allocations: 232 kB / 1.274 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003312/0.9963, allocations: 1.318 MB / 1.275 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006917/0.997, allocations: 0.5453 MB / 1.276 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.9995, allocations: 1.159 MB / 1.277 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.006103/1.006, allocations: 3.703 MB / 1.281 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/1.006, allocations: 0 / 1.281 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.854e-06/1.006, allocations: 0 / 1.281 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.209e-05/1.006, allocations: 0 / 1.281 GB, free: 4.914 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005843/1.012, allocations: 2.625 MB / 1.283 GB, free: 2.23 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/1.012, allocations: 12.03 kB / 1.283 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000966/1.013, allocations: 239.6 kB / 1.284 GB, free: 1.984 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003251/1.016, allocations: 1.812 MB / 1.285 GB, free: 124 kB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.15e-05/1.016, allocations: 118.7 kB / 1.285 GB, free: 4 kB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/1.016, allocations: 152 kB / 1.286 GB, free: 15.85 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003509/1.02, allocations: 1.997 MB / 1.288 GB, free: 13.79 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/1.02, allocations: 11.92 kB / 1.288 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/1.02, allocations: 56 kB / 1.288 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.389e-05/1.02, allocations: 40 kB / 1.288 GB, free: 13.69 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003115/1.023, allocations: 1.798 MB / 1.289 GB, free: 11.88 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.01145/1.035, allocations: 7.615 MB / 1.297 GB, free: 3.965 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/1.037, allocations: 1.445 MB / 1.298 GB, free: 2.492 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008727/1.038, allocations: 0.668 MB / 1.299 GB, free: 1.82 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007107/1.045, allocations: 3.855 MB / 1.303 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/1.045, allocations: 51.5 kB / 1.303 GB, free: 13.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=88): time 2.414e-06/1.045, allocations: 0 / 1.303 GB, free: 13.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=88): time 0.002738/1.048, allocations: 1.514 MB / 1.304 GB, free: 12.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/1.048, allocations: 60.41 kB / 1.304 GB, free: 12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/1.05, allocations: 1.649 MB / 1.306 GB, free: 10.34 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001179/1.051, allocations: 53.7 kB / 1.306 GB, free: 10.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007661/1.051, allocations: 0.7748 MB / 1.307 GB, free: 9.496 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/1.052, allocations: 329.2 kB / 1.307 GB, free: 9.172 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004917/1.052, allocations: 295.5 kB / 1.307 GB, free: 8.875 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001772/1.052, allocations: 361.9 kB / 1.308 GB, free: 8.516 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/1.054, allocations: 0.6917 MB / 1.308 GB, free: 7.82 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/1.055, allocations: 1.024 MB / 1.309 GB, free: 6.664 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002291/1.057, allocations: 1.616 MB / 1.311 GB, free: 4.926 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.48e-05/1.057, allocations: 7.938 kB / 1.311 GB, free: 4.918 MB / 1.029 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00363/1.061, allocations: 1.964 MB / 1.313 GB, free: 2.945 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/1.061, allocations: 8 kB / 1.313 GB, free: 2.938 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/1.061, allocations: 8 kB / 1.313 GB, free: 2.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.501e-05/1.061, allocations: 16.78 kB / 1.313 GB, free: 2.914 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/1.063, allocations: 331.5 kB / 1.313 GB, free: 2.59 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.905e-05/1.063, allocations: 23.94 kB / 1.313 GB, free: 2.566 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/1.064, allocations: 206.6 kB / 1.313 GB, free: 2.363 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/1.064, allocations: 59.98 kB / 1.313 GB, free: 2.305 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002192/1.066, allocations: 1.28 MB / 1.315 GB, free: 1.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001396/1.068, allocations: 1.024 MB / 1.316 GB, free: 15.87 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002308/1.07, allocations: 1.62 MB / 1.317 GB, free: 14.13 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.799e-05/1.07, allocations: 4 kB / 1.317 GB, free: 14.12 MB / 1.045 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003682/1.074, allocations: 1.96 MB / 1.319 GB, free: 12.16 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/1.074, allocations: 8 kB / 1.319 GB, free: 12.15 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/1.074, allocations: 8 kB / 1.319 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/1.074, allocations: 16 kB / 1.319 GB, free: 12.12 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/1.075, allocations: 335.5 kB / 1.319 GB, free: 11.8 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.143e-05/1.075, allocations: 19.94 kB / 1.32 GB, free: 11.78 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.077, allocations: 147.2 kB / 1.32 GB, free: 11.63 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/1.077, allocations: 64.3 kB / 1.32 GB, free: 11.57 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (175): * Single equations (assignments): 175 * 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.0004009/1.077, allocations: 267.8 kB / 1.32 GB, free: 11.3 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005907/1.078, allocations: 159 kB / 1.32 GB, free: 11.14 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002402/1.08, allocations: 1.29 MB / 1.321 GB, free: 9.844 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/1.08, allocations: 8 kB / 1.321 GB, free: 9.836 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/1.08, allocations: 4 kB / 1.321 GB, free: 9.832 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001649/1.082, allocations: 1.288 MB / 1.323 GB, free: 8.461 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00584/1.088, allocations: 2.951 MB / 1.326 GB, free: 5.434 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/1.088, allocations: 4 kB / 1.326 GB, free: 5.43 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007972/1.089, allocations: 187.8 kB / 1.326 GB, free: 5.246 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.756e-05/1.089, allocations: 8.125 kB / 1.326 GB, free: 5.238 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/1.089, allocations: 27.98 kB / 1.326 GB, free: 5.211 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.139e-05/1.089, allocations: 4 kB / 1.326 GB, free: 5.207 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.089, allocations: 3.938 kB / 1.326 GB, free: 5.203 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00307/1.092, allocations: 1.926 MB / 1.328 GB, free: 3.242 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009575/1.093, allocations: 407.7 kB / 1.328 GB, free: 2.824 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004865/1.093, allocations: 23.98 kB / 1.328 GB, free: 2.801 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/1.095, allocations: 43.95 kB / 1.328 GB, free: 2.758 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/1.095, allocations: 56.86 kB / 1.328 GB, free: 2.703 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.095, allocations: 39.97 kB / 1.328 GB, free: 2.664 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002442/1.097, allocations: 1.234 MB / 1.329 GB, free: 1.434 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/1.097, allocations: 0 / 1.329 GB, free: 1.434 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003589/1.101, allocations: 0.9281 MB / 1.33 GB, free: 0.5039 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * 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 (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001105/1.102, allocations: 379 kB / 1.331 GB, free: 136 kB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.004391/1.106, allocations: 2.325 MB / 1.333 GB, free: 13.81 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.106, allocations: 0 / 1.333 GB, free: 13.81 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007889/1.107, allocations: 0.5289 MB / 1.333 GB, free: 13.28 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004642/1.112, allocations: 0.9172 MB / 1.334 GB, free: 12.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007058/1.119, allocations: 3.713 MB / 1.338 GB, free: 8.633 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002034/1.121, allocations: 1.686 MB / 1.34 GB, free: 6.914 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.003128/1.124, allocations: 0.9221 MB / 1.341 GB, free: 6.008 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006518/1.125, allocations: 131.4 kB / 1.341 GB, free: 5.879 MB / 1.061 GB Notification: Performance of SimCode: time 1.793e-06/1.125, allocations: 0 / 1.341 GB, free: 5.879 MB / 1.061 GB Notification: Performance of Templates: time 0.06964/1.194, allocations: 36.11 MB / 1.376 GB, free: 2.133 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches