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.001262/0.001262, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001529/0.001529, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 436.5 MB / 0.7104 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 8 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6457/0.646, allocations: 153.7 MB / 1.021 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.8827/1.529, allocations: 265.4 MB / 1.28 GB, free: 6.984 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02987/1.559, allocations: 27.12 MB / 1.306 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/1.562, allocations: 81.97 kB / 1.307 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.004999/1.567, allocations: 1.666 MB / 1.308 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.01465/1.582, allocations: 4.821 MB / 1.313 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007002/1.589, allocations: 2.471 MB / 1.315 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.007322/1.596, allocations: 3.936 MB / 1.319 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004176/1.601, allocations: 2.242 MB / 1.321 GB, free: 22.2 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009532/1.61, allocations: 3.474 MB / 1.325 GB, free: 22.19 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004132/1.614, allocations: 1.596 MB / 1.326 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001207/1.615, allocations: 129.3 kB / 1.326 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006675/1.622, allocations: 2.204 MB / 1.329 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001641/1.624, allocations: 0.8195 MB / 1.329 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001664/1.626, allocations: 0.6349 MB / 1.33 GB, free: 22.14 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005343/1.631, allocations: 3.615 MB / 1.333 GB, free: 21.86 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/1.631, allocations: 0 / 1.333 GB, free: 21.86 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.264e-06/1.631, allocations: 0 / 1.333 GB, free: 21.86 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001423/1.631, allocations: 0 / 1.333 GB, free: 21.86 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.007086/1.638, allocations: 3 MB / 1.336 GB, free: 20.31 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/1.638, allocations: 16.02 kB / 1.336 GB, free: 20.3 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009286/1.647, allocations: 1.582 MB / 1.338 GB, free: 20.07 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004504/1.652, allocations: 1.916 MB / 1.34 GB, free: 19.22 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/1.653, allocations: 426.7 kB / 1.34 GB, free: 19.13 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006632/1.654, allocations: 219.3 kB / 1.34 GB, free: 19.13 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006321/1.66, allocations: 3.08 MB / 1.343 GB, free: 18.13 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/1.66, allocations: 4.906 kB / 1.343 GB, free: 18.13 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003285/1.661, allocations: 87.78 kB / 1.344 GB, free: 18.13 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-05/1.661, allocations: 98.64 kB / 1.344 GB, free: 18.12 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00663/1.667, allocations: 3.199 MB / 1.347 GB, free: 17.52 MB / 0.9981 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.02267/1.69, allocations: 14.28 MB / 1.361 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003795/1.694, allocations: 1.693 MB / 1.362 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004273/1.694, allocations: 160.3 kB / 1.363 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/1.694, allocations: 50.75 kB / 1.363 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001538/1.696, allocations: 200.3 kB / 1.363 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=110): time 6.662e-06/1.696, allocations: 2.625 kB / 1.363 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of matching and sorting (n=110): time 0.006106/1.702, allocations: 2.411 MB / 1.365 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/1.702, allocations: 62.75 kB / 1.365 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004357/1.707, allocations: 2.533 MB / 1.368 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003491/1.707, allocations: 53.95 kB / 1.368 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009866/1.708, allocations: 1.27 MB / 1.369 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004691/1.708, allocations: 394.5 kB / 1.369 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/1.709, allocations: 36.28 kB / 1.369 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001629/1.709, allocations: 374.2 kB / 1.37 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002823/1.712, allocations: 0.9813 MB / 1.371 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004493/1.716, allocations: 1.609 MB / 1.372 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/1.719, allocations: 1.192 MB / 1.373 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/1.719, allocations: 8.625 kB / 1.373 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006696/1.726, allocations: 2.836 MB / 1.376 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.002125/1.728, allocations: 5.596 MB / 1.382 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-05/1.728, allocations: 11.72 kB / 1.382 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.748e-05/1.728, allocations: 28.05 kB / 1.382 GB, free: 12.71 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/1.731, allocations: 0.5786 MB / 1.382 GB, free: 12.58 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/1.733, allocations: 2.393 MB / 1.385 GB, free: 10.21 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/1.737, allocations: 442.2 kB / 1.385 GB, free: 10.06 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004654/1.738, allocations: 90.52 kB / 1.385 GB, free: 10.05 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/1.738, allocations: 5.281 kB / 1.385 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006564/1.744, allocations: 2.61 MB / 1.388 GB, free: 9.531 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.246e-05/1.744, allocations: 18.02 kB / 1.388 GB, free: 9.527 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/1.744, allocations: 21.59 kB / 1.388 GB, free: 9.527 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/1.747, allocations: 0.5329 MB / 1.388 GB, free: 9.051 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.62e-05/1.747, allocations: 31.55 kB / 1.388 GB, free: 9.027 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003725/1.751, allocations: 373.2 kB / 1.389 GB, free: 8.691 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/1.751, allocations: 88.08 kB / 1.389 GB, free: 8.617 MB / 1.014 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 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_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 (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001786/1.753, allocations: 0.6287 MB / 1.389 GB, free: 8.215 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/1.754, allocations: 264.8 kB / 1.39 GB, free: 7.953 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005337/1.759, allocations: 1.874 MB / 1.391 GB, free: 6.605 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/1.759, allocations: 8 kB / 1.391 GB, free: 6.598 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.76, allocations: 7.953 kB / 1.391 GB, free: 6.59 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/1.76, allocations: 7.969 kB / 1.391 GB, free: 6.582 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/1.77, allocations: 4.533 MB / 1.396 GB, free: 3.246 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/1.77, allocations: 6.391 kB / 1.396 GB, free: 3.242 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/1.772, allocations: 306.4 kB / 1.396 GB, free: 2.961 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.171e-05/1.772, allocations: 12 kB / 1.396 GB, free: 2.949 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/1.772, allocations: 38.47 kB / 1.396 GB, free: 2.926 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/1.773, allocations: 2.366 MB / 1.398 GB, free: 0.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/1.773, allocations: 6.531 kB / 1.398 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004882/1.778, allocations: 2.509 MB / 1.401 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001689/1.78, allocations: 0.543 MB / 1.401 GB, free: 13.68 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007117/1.781, allocations: 27.69 kB / 1.402 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003019/1.784, allocations: 290.5 kB / 1.402 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/1.784, allocations: 87.28 kB / 1.402 GB, free: 13.33 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001894/1.784, allocations: 61.08 kB / 1.402 GB, free: 13.28 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.003848/1.788, allocations: 1.757 MB / 1.404 GB, free: 12 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.21e-07/1.788, allocations: 0 / 1.404 GB, free: 12 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.006281/1.794, allocations: 1.298 MB / 1.405 GB, free: 10.77 MB / 1.029 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 (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001173/1.795, allocations: 379.7 kB / 1.405 GB, free: 10.46 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.009424/1.805, allocations: 3.66 MB / 1.409 GB, free: 7.664 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.805, allocations: 4 kB / 1.409 GB, free: 7.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.002149/1.807, allocations: 0.8282 MB / 1.41 GB, free: 7.055 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006827/1.814, allocations: 1.218 MB / 1.411 GB, free: 6.051 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008941/1.823, allocations: 5.001 MB / 1.416 GB, free: 1.395 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/1.825, allocations: 1.751 MB / 1.417 GB, free: 15.66 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.005227/1.83, allocations: 0.7857 MB / 1.418 GB, free: 14.86 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/1.831, allocations: 193.9 kB / 1.418 GB, free: 14.68 MB / 1.045 GB Notification: Performance of SimCode: time 1.813e-06/1.831, allocations: 0 / 1.418 GB, free: 14.68 MB / 1.045 GB Notification: Performance of Templates: time 0.07514/1.906, allocations: 44.9 MB / 1.462 GB, free: 2.477 MB / 1.076 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","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches