Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.0008401/0.00084, allocations: 97.95 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.007455/0.007456, allocations: 170 kB / 16.27 MB, free: 6.648 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.694/2.694, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.000399, allocations: 8 kB / 0.8728 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8533/0.8537, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 1.1/1.953, allocations: 321.9 MB / 1.337 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0377/1.991, allocations: 29.91 MB / 1.367 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00591/1.997, allocations: 85.12 kB / 1.367 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006302/2.003, allocations: 1.763 MB / 1.368 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0167/2.02, allocations: 4.708 MB / 1.373 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01122/2.031, allocations: 3.339 MB / 1.376 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01599/2.047, allocations: 9.635 MB / 1.386 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005923/2.053, allocations: 2.358 MB / 1.388 GB, free: 8.461 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01654/2.07, allocations: 4.685 MB / 1.393 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006545/2.077, allocations: 2.394 MB / 1.395 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0009566/2.078, allocations: 131.2 kB / 1.395 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01201/2.09, allocations: 5.585 MB / 1.4 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001813/2.091, allocations: 0.8985 MB / 1.401 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003173/2.095, allocations: 1.562 MB / 1.403 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01101/2.106, allocations: 5.807 MB / 1.409 GB, free: 13.31 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/2.106, allocations: 8 kB / 1.409 GB, free: 13.3 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.255e-06/2.106, allocations: 4 kB / 1.409 GB, free: 13.3 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001194/2.106, allocations: 0 / 1.409 GB, free: 13.3 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.007248/2.113, allocations: 3.057 MB / 1.412 GB, free: 10.2 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/2.113, allocations: 8.031 kB / 1.412 GB, free: 10.19 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/2.123, allocations: 1.577 MB / 1.413 GB, free: 8.609 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004392/2.128, allocations: 1.995 MB / 1.415 GB, free: 6.582 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001389/2.129, allocations: 435.4 kB / 1.415 GB, free: 6.156 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005697/2.13, allocations: 224 kB / 1.416 GB, free: 5.938 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006965/2.137, allocations: 3.108 MB / 1.419 GB, free: 2.695 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.7e-05/2.137, allocations: 0 / 1.419 GB, free: 2.695 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/2.137, allocations: 95.94 kB / 1.419 GB, free: 2.602 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.703e-05/2.137, allocations: 84 kB / 1.419 GB, free: 2.516 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007465/2.145, allocations: 3.22 MB / 1.422 GB, free: 15.28 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.02398/2.169, allocations: 14.29 MB / 1.436 GB, free: 4 kB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00417/2.173, allocations: 1.691 MB / 1.438 GB, free: 14.31 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/2.175, allocations: 0.798 MB / 1.438 GB, free: 13.5 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006333/2.175, allocations: 339 kB / 1.439 GB, free: 13.12 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/2.175, allocations: 51.56 kB / 1.439 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001514/2.177, allocations: 194.2 kB / 1.439 GB, free: 12.88 MB / 1.045 GB Notification: Performance of pre-optimization done (n=110): time 3.947e-06/2.177, allocations: 0 / 1.439 GB, free: 12.88 MB / 1.045 GB Notification: Performance of matching and sorting (n=110): time 0.00621/2.183, allocations: 2.414 MB / 1.441 GB, free: 10.45 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/2.183, allocations: 64.39 kB / 1.441 GB, free: 10.38 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/2.188, allocations: 2.556 MB / 1.444 GB, free: 7.805 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0003822/2.188, allocations: 57.69 kB / 1.444 GB, free: 7.742 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001165/2.189, allocations: 1.27 MB / 1.445 GB, free: 6.465 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004422/2.19, allocations: 388.9 kB / 1.446 GB, free: 6.09 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002358/2.19, allocations: 137.6 kB / 1.446 GB, free: 5.949 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001213/2.19, allocations: 309.1 kB / 1.446 GB, free: 5.645 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002711/2.193, allocations: 0.9954 MB / 1.447 GB, free: 4.648 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003218/2.196, allocations: 1.624 MB / 1.449 GB, free: 2.758 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/2.201, allocations: 2.306 MB / 1.451 GB, free: 264 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/2.201, allocations: 4 kB / 1.451 GB, free: 260 kB / 1.045 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.007703/2.209, allocations: 2.871 MB / 1.454 GB, free: 13.36 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007382/2.21, allocations: 0.5336 MB / 1.454 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/2.21, allocations: 16 kB / 1.454 GB, free: 12.61 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.592e-05/2.21, allocations: 24 kB / 1.454 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003354/2.213, allocations: 0.5695 MB / 1.455 GB, free: 12.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/2.215, allocations: 2.399 MB / 1.457 GB, free: 9.523 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/2.219, allocations: 439.3 kB / 1.457 GB, free: 9.094 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004041/2.22, allocations: 99.95 kB / 1.458 GB, free: 8.996 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/2.22, allocations: 4 kB / 1.458 GB, free: 8.992 MB / 1.061 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006417/2.226, allocations: 2.618 MB / 1.46 GB, free: 6.363 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/2.226, allocations: 12 kB / 1.46 GB, free: 6.352 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/2.226, allocations: 28.06 kB / 1.46 GB, free: 6.324 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/2.229, allocations: 0.5227 MB / 1.461 GB, free: 5.801 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.663e-05/2.229, allocations: 27.92 kB / 1.461 GB, free: 5.773 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003375/2.232, allocations: 372.6 kB / 1.461 GB, free: 5.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/2.232, allocations: 91.95 kB / 1.461 GB, free: 5.32 MB / 1.061 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.001309/2.234, allocations: 0.6254 MB / 1.462 GB, free: 4.684 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004474/2.234, allocations: 268.7 kB / 1.462 GB, free: 4.418 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004422/2.238, allocations: 1.878 MB / 1.464 GB, free: 2.531 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/2.238, allocations: 12 kB / 1.464 GB, free: 2.52 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/2.238, allocations: 7.938 kB / 1.464 GB, free: 2.512 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/2.238, allocations: 3.984 kB / 1.464 GB, free: 2.508 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008459/2.247, allocations: 4.541 MB / 1.468 GB, free: 13.86 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/2.247, allocations: 11.94 kB / 1.468 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/2.249, allocations: 315.7 kB / 1.469 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.51e-05/2.249, allocations: 12 kB / 1.469 GB, free: 13.52 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.316e-05/2.249, allocations: 27.98 kB / 1.469 GB, free: 13.5 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/2.25, allocations: 2.368 MB / 1.471 GB, free: 11.04 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/2.25, allocations: 7.938 kB / 1.471 GB, free: 11.03 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004313/2.254, allocations: 2.011 MB / 1.473 GB, free: 8.922 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/2.256, allocations: 0.5483 MB / 1.473 GB, free: 8.352 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/2.256, allocations: 24 kB / 1.473 GB, free: 8.328 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002463/2.258, allocations: 285.4 kB / 1.474 GB, free: 8.051 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/2.259, allocations: 92.7 kB / 1.474 GB, free: 7.957 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/2.259, allocations: 59.95 kB / 1.474 GB, free: 7.898 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.003048/2.262, allocations: 1.778 MB / 1.476 GB, free: 6.117 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.774e-06/2.262, allocations: 4 kB / 1.476 GB, free: 6.113 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.003637/2.266, allocations: 1.302 MB / 1.477 GB, free: 4.809 MB / 1.076 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.0007736/2.266, allocations: 376.5 kB / 1.477 GB, free: 4.465 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.009248/2.276, allocations: 3.687 MB / 1.481 GB, free: 0.7422 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/2.276, allocations: 0 / 1.481 GB, free: 0.7422 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.002037/2.278, allocations: 0.8307 MB / 1.482 GB, free: 15.91 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008624/2.286, allocations: 1.327 MB / 1.483 GB, free: 14.6 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007959/2.294, allocations: 5.269 MB / 1.488 GB, free: 9.223 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001292/2.296, allocations: 1.691 MB / 1.49 GB, free: 7.492 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.003769/2.299, allocations: 0.7858 MB / 1.491 GB, free: 6.699 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007706/2.3, allocations: 219.4 kB / 1.491 GB, free: 6.484 MB / 1.092 GB Notification: Performance of SimCode: time 7.61e-07/2.3, allocations: 0 / 1.491 GB, free: 6.484 MB / 1.092 GB Notification: Performance of Templates: time 0.09535/2.395, allocations: 51.13 MB / 1.541 GB, free: 3.992 MB / 1.139 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches