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.001015/0.001015, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001164, allocations: 179.8 kB / 16.92 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.395/1.395, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.78/2.78, allocations: 462.7 MB / 0.7371 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003385, allocations: 7.656 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2995, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.8633/1.163, allocations: 321.9 MB / 1.374 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03314/1.196, allocations: 29.93 MB / 1.403 GB, free: 13.37 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004618/1.201, allocations: 86.78 kB / 1.403 GB, free: 13.37 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.005904/1.207, allocations: 1.761 MB / 1.405 GB, free: 12.86 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01386/1.221, allocations: 4.695 MB / 1.409 GB, free: 10.14 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.009159/1.23, allocations: 3.344 MB / 1.413 GB, free: 7.68 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01191/1.242, allocations: 9.635 MB / 1.422 GB, free: 2.461 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00482/1.247, allocations: 2.364 MB / 1.424 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01388/1.26, allocations: 4.684 MB / 1.429 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005207/1.266, allocations: 2.395 MB / 1.431 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0009971/1.267, allocations: 131.7 kB / 1.431 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01183/1.279, allocations: 5.586 MB / 1.437 GB, free: 9.605 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.002293/1.281, allocations: 0.8943 MB / 1.438 GB, free: 9.004 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.00397/1.285, allocations: 1.568 MB / 1.439 GB, free: 7.441 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.007125/1.292, allocations: 4.15 MB / 1.443 GB, free: 3.281 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/1.292, allocations: 0 / 1.443 GB, free: 3.281 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.655e-06/1.292, allocations: 0 / 1.443 GB, free: 3.281 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0001213/1.292, allocations: 8 kB / 1.443 GB, free: 3.273 MB / 1.029 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.006753/1.299, allocations: 3.05 MB / 1.446 GB, free: 144 kB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/1.299, allocations: 8.031 kB / 1.446 GB, free: 136 kB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009714/1.309, allocations: 1.581 MB / 1.448 GB, free: 14.55 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/1.313, allocations: 1.991 MB / 1.45 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001351/1.314, allocations: 432.2 kB / 1.45 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006253/1.315, allocations: 223.9 kB / 1.45 GB, free: 11.83 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006816/1.322, allocations: 3.101 MB / 1.453 GB, free: 8.594 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-05/1.322, allocations: 11.88 kB / 1.453 GB, free: 8.582 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003318/1.322, allocations: 91.98 kB / 1.453 GB, free: 8.492 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-05/1.322, allocations: 92 kB / 1.454 GB, free: 8.398 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007368/1.33, allocations: 3.217 MB / 1.457 GB, free: 5.164 MB / 1.045 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.02486/1.355, allocations: 14.29 MB / 1.471 GB, free: 5.773 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004449/1.359, allocations: 1.685 MB / 1.472 GB, free: 4.078 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001938/1.361, allocations: 0.7981 MB / 1.473 GB, free: 3.277 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007005/1.362, allocations: 340.2 kB / 1.473 GB, free: 2.891 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/1.362, allocations: 51.56 kB / 1.473 GB, free: 2.832 MB / 1.061 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001471/1.363, allocations: 186.2 kB / 1.474 GB, free: 2.648 MB / 1.061 GB Notification: Performance of pre-optimization done (n=110): time 6.933e-06/1.363, allocations: 4 kB / 1.474 GB, free: 2.645 MB / 1.061 GB Notification: Performance of matching and sorting (n=110): time 0.006483/1.37, allocations: 2.418 MB / 1.476 GB, free: 224 kB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/1.37, allocations: 68.41 kB / 1.476 GB, free: 144 kB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/1.375, allocations: 2.56 MB / 1.479 GB, free: 13.56 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0002852/1.375, allocations: 53.7 kB / 1.479 GB, free: 13.5 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001075/1.376, allocations: 1.272 MB / 1.48 GB, free: 12.21 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003969/1.377, allocations: 386.5 kB / 1.48 GB, free: 11.83 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/1.377, allocations: 133.6 kB / 1.48 GB, free: 11.7 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 9.559e-05/1.377, allocations: 305.1 kB / 1.481 GB, free: 11.39 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/1.38, allocations: 0.9954 MB / 1.482 GB, free: 10.4 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003189/1.383, allocations: 1.624 MB / 1.483 GB, free: 8.508 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004994/1.388, allocations: 2.306 MB / 1.485 GB, free: 6.008 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.696e-05/1.388, allocations: 4 kB / 1.485 GB, free: 6.004 MB / 1.076 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.007621/1.396, allocations: 2.871 MB / 1.488 GB, free: 3.109 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005144/1.396, allocations: 0.5412 MB / 1.489 GB, free: 2.367 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.203e-05/1.397, allocations: 12 kB / 1.489 GB, free: 2.355 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.213e-05/1.397, allocations: 24 kB / 1.489 GB, free: 2.332 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003176/1.4, allocations: 0.5773 MB / 1.489 GB, free: 1.754 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/1.401, allocations: 2.391 MB / 1.492 GB, free: 15.27 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004168/1.406, allocations: 439.4 kB / 1.492 GB, free: 14.84 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/1.406, allocations: 95.89 kB / 1.492 GB, free: 14.75 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/1.406, allocations: 11.94 kB / 1.492 GB, free: 14.73 MB / 1.092 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006883/1.413, allocations: 2.614 MB / 1.495 GB, free: 12.11 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/1.413, allocations: 12.75 kB / 1.495 GB, free: 12.09 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.697e-05/1.413, allocations: 24 kB / 1.495 GB, free: 12.07 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/1.416, allocations: 0.5266 MB / 1.495 GB, free: 11.54 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.652e-05/1.416, allocations: 31.86 kB / 1.495 GB, free: 11.51 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003633/1.419, allocations: 370.5 kB / 1.496 GB, free: 11.15 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/1.42, allocations: 87.95 kB / 1.496 GB, free: 11.07 MB / 1.092 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.001659/1.421, allocations: 0.6255 MB / 1.496 GB, free: 10.43 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008353/1.422, allocations: 264.7 kB / 1.497 GB, free: 10.17 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005143/1.427, allocations: 1.886 MB / 1.499 GB, free: 8.27 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.427, allocations: 15.94 kB / 1.499 GB, free: 8.254 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.427, allocations: 0 / 1.499 GB, free: 8.254 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/1.427, allocations: 3.984 kB / 1.499 GB, free: 8.25 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/1.438, allocations: 4.548 MB / 1.503 GB, free: 3.562 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/1.438, allocations: 8.031 kB / 1.503 GB, free: 3.555 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/1.44, allocations: 311.6 kB / 1.503 GB, free: 3.25 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.843e-05/1.44, allocations: 16 kB / 1.503 GB, free: 3.234 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/1.44, allocations: 27.98 kB / 1.503 GB, free: 3.207 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/1.441, allocations: 2.371 MB / 1.506 GB, free: 0.7422 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/1.441, allocations: 15.94 kB / 1.506 GB, free: 0.7266 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/1.446, allocations: 2.011 MB / 1.508 GB, free: 14.62 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001521/1.448, allocations: 0.5522 MB / 1.508 GB, free: 14.04 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006755/1.448, allocations: 24 kB / 1.508 GB, free: 14.02 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003022/1.451, allocations: 284.3 kB / 1.508 GB, free: 13.74 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/1.451, allocations: 88.7 kB / 1.509 GB, free: 13.65 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/1.452, allocations: 63.95 kB / 1.509 GB, free: 13.59 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.00389/1.456, allocations: 1.778 MB / 1.51 GB, free: 11.81 MB / 1.107 GB Notification: Performance of sort global known variables: time 6.31e-07/1.456, allocations: 0 / 1.51 GB, free: 11.81 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.005041/1.461, allocations: 1.298 MB / 1.512 GB, free: 10.51 MB / 1.107 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.001055/1.462, allocations: 374.6 kB / 1.512 GB, free: 10.16 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.009868/1.472, allocations: 3.683 MB / 1.516 GB, free: 6.434 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.275e-05/1.472, allocations: 128 / 1.516 GB, free: 6.434 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.002197/1.474, allocations: 0.8306 MB / 1.516 GB, free: 5.605 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009739/1.484, allocations: 1.325 MB / 1.518 GB, free: 4.293 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/1.494, allocations: 5.36 MB / 1.523 GB, free: 14.82 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/1.496, allocations: 1.682 MB / 1.525 GB, free: 13.1 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/1.497, allocations: 243.3 kB / 1.525 GB, free: 12.86 MB / 1.123 GB Notification: Performance of SimCode: time 8.42e-07/1.497, allocations: 0 / 1.525 GB, free: 12.86 MB / 1.123 GB Notification: Performance of Templates: time 0.09804/1.595, allocations: 85.85 MB / 1.609 GB, free: 7.168 MB / 1.201 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches