Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008143/0.008143, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.476/1.476, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.732/2.732, allocations: 443.3 MB / 0.7175 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004989/0.0004988, allocations: 8.625 kB / 0.8796 GB, free: 41.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4492/0.4497, allocations: 155.2 MB / 1.031 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 1.135/1.584, allocations: 321.9 MB / 1.345 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03609/1.621, allocations: 29.91 MB / 1.375 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009085/1.63, allocations: 85.19 kB / 1.375 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009618/1.639, allocations: 1.759 MB / 1.376 GB, free: 0.6445 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.02409/1.664, allocations: 4.7 MB / 1.381 GB, free: 404 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01587/1.68, allocations: 3.346 MB / 1.384 GB, free: 244 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0233/1.703, allocations: 9.697 MB / 1.394 GB, free: 14.29 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008912/1.712, allocations: 2.36 MB / 1.396 GB, free: 12.93 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01799/1.73, allocations: 4.667 MB / 1.401 GB, free: 11.33 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006671/1.737, allocations: 2.41 MB / 1.403 GB, free: 10.19 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001181/1.738, allocations: 131.3 kB / 1.403 GB, free: 10.19 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01397/1.752, allocations: 5.583 MB / 1.409 GB, free: 7.582 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002748/1.755, allocations: 0.8969 MB / 1.409 GB, free: 7.004 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.005549/1.76, allocations: 1.561 MB / 1.411 GB, free: 6.043 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01467/1.775, allocations: 5.813 MB / 1.417 GB, free: 2.648 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/1.775, allocations: 0 / 1.417 GB, free: 2.648 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.275e-06/1.775, allocations: 0 / 1.417 GB, free: 2.648 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.000198/1.775, allocations: 0 / 1.417 GB, free: 2.648 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.009688/1.785, allocations: 3.06 MB / 1.42 GB, free: 488 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/1.785, allocations: 9.688 kB / 1.42 GB, free: 488 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01034/1.795, allocations: 1.57 MB / 1.421 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005489/1.801, allocations: 1.995 MB / 1.423 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001387/1.802, allocations: 436.9 kB / 1.424 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000743/1.803, allocations: 224.5 kB / 1.424 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008535/1.812, allocations: 3.1 MB / 1.427 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.623e-05/1.812, allocations: 7.938 kB / 1.427 GB, free: 11.33 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005938/1.812, allocations: 94.89 kB / 1.427 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/1.812, allocations: 87.94 kB / 1.427 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008612/1.821, allocations: 3.224 MB / 1.43 GB, free: 7.906 MB / 1.029 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.02735/1.848, allocations: 14.28 MB / 1.444 GB, free: 8.637 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004464/1.853, allocations: 1.699 MB / 1.446 GB, free: 6.934 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00186/1.855, allocations: 0.7963 MB / 1.447 GB, free: 6.137 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007195/1.856, allocations: 335.9 kB / 1.447 GB, free: 5.758 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.672e-05/1.856, allocations: 51.5 kB / 1.447 GB, free: 5.695 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001559/1.857, allocations: 194 kB / 1.447 GB, free: 5.508 MB / 1.045 GB Notification: Performance of pre-optimization done (n=110): time 6.222e-06/1.857, allocations: 0 / 1.447 GB, free: 5.508 MB / 1.045 GB Notification: Performance of matching and sorting (n=110): time 0.006499/1.864, allocations: 2.426 MB / 1.449 GB, free: 3.078 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/1.864, allocations: 68.39 kB / 1.45 GB, free: 3 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004867/1.869, allocations: 2.556 MB / 1.452 GB, free: 436 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0003614/1.869, allocations: 57.7 kB / 1.452 GB, free: 372 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001241/1.87, allocations: 1.27 MB / 1.453 GB, free: 15.11 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.000445/1.871, allocations: 385.3 kB / 1.454 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/1.871, allocations: 133.6 kB / 1.454 GB, free: 14.59 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001016/1.871, allocations: 301.1 kB / 1.454 GB, free: 14.3 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002927/1.874, allocations: 0.9954 MB / 1.455 GB, free: 13.3 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003321/1.877, allocations: 1.628 MB / 1.457 GB, free: 11.41 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005098/1.883, allocations: 2.302 MB / 1.459 GB, free: 8.91 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-05/1.883, allocations: 4 kB / 1.459 GB, free: 8.906 MB / 1.061 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.0073/1.89, allocations: 2.878 MB / 1.462 GB, free: 6.008 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.000517/1.891, allocations: 0.5356 MB / 1.462 GB, free: 5.277 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/1.891, allocations: 16 kB / 1.462 GB, free: 5.262 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.806e-05/1.891, allocations: 20 kB / 1.462 GB, free: 5.242 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/1.894, allocations: 0.585 MB / 1.463 GB, free: 4.656 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/1.895, allocations: 2.391 MB / 1.465 GB, free: 2.172 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/1.899, allocations: 447.6 kB / 1.466 GB, free: 1.734 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/1.9, allocations: 87.95 kB / 1.466 GB, free: 1.648 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/1.9, allocations: 4 kB / 1.466 GB, free: 1.645 MB / 1.061 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00674/1.907, allocations: 2.622 MB / 1.468 GB, free: 15.01 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.305e-05/1.907, allocations: 16 kB / 1.468 GB, free: 15 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/1.907, allocations: 20 kB / 1.468 GB, free: 14.98 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0026/1.909, allocations: 0.5273 MB / 1.469 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.801e-05/1.909, allocations: 31.86 kB / 1.469 GB, free: 14.42 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003606/1.913, allocations: 375.4 kB / 1.469 GB, free: 14.05 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/1.913, allocations: 87.95 kB / 1.469 GB, free: 13.96 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 4 (masExcRev.i2_w,masExcRev.i1_w,masExcFor.i2_w,masExcFor.i1_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001713/1.915, allocations: 0.6254 MB / 1.47 GB, free: 13.33 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008808/1.916, allocations: 264.8 kB / 1.47 GB, free: 13.07 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005076/1.921, allocations: 1.882 MB / 1.472 GB, free: 11.17 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/1.921, allocations: 11.94 kB / 1.472 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/1.921, allocations: 0 / 1.472 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/1.921, allocations: 3.984 kB / 1.472 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009883/1.931, allocations: 4.543 MB / 1.476 GB, free: 6.5 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/1.931, allocations: 8.688 kB / 1.476 GB, free: 6.492 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.933, allocations: 319.6 kB / 1.477 GB, free: 6.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-05/1.933, allocations: 8 kB / 1.477 GB, free: 6.172 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/1.933, allocations: 39.92 kB / 1.477 GB, free: 6.133 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/1.934, allocations: 2.364 MB / 1.479 GB, free: 3.676 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/1.934, allocations: 11.94 kB / 1.479 GB, free: 3.664 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004503/1.939, allocations: 2.014 MB / 1.481 GB, free: 1.555 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.94, allocations: 0.5406 MB / 1.482 GB, free: 0.9922 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000897/1.941, allocations: 28 kB / 1.482 GB, free: 0.9648 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003055/1.944, allocations: 287.6 kB / 1.482 GB, free: 0.6836 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/1.944, allocations: 80.72 kB / 1.482 GB, free: 0.6055 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001957/1.945, allocations: 67.89 kB / 1.482 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.003978/1.949, allocations: 1.774 MB / 1.484 GB, free: 14.76 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.01e-07/1.949, allocations: 0 / 1.484 GB, free: 14.76 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.004823/1.953, allocations: 1.302 MB / 1.485 GB, free: 13.46 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009238/1.954, allocations: 377.3 kB / 1.485 GB, free: 13.11 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.009571/1.964, allocations: 3.679 MB / 1.489 GB, free: 9.395 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/1.964, allocations: 4 kB / 1.489 GB, free: 9.391 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.002095/1.966, allocations: 0.8269 MB / 1.49 GB, free: 8.562 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00952/1.976, allocations: 1.332 MB / 1.491 GB, free: 7.25 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/1.987, allocations: 5.264 MB / 1.496 GB, free: 1.879 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/1.989, allocations: 1.694 MB / 1.498 GB, free: 152 kB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.005237/1.995, allocations: 0.7897 MB / 1.499 GB, free: 15.35 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/1.996, allocations: 223.4 kB / 1.499 GB, free: 15.13 MB / 1.107 GB Notification: Performance of SimCode: time 2.766e-06/1.996, allocations: 0 / 1.499 GB, free: 15.13 MB / 1.107 GB Notification: Performance of Templates: time 0.08856/2.084, allocations: 51.13 MB / 1.549 GB, free: 12.64 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches