Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0008752/0.0008752, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005858/0.005858, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.487/2.487, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6732/0.6736, allocations: 142.4 MB / 0.955 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.9373/1.611, allocations: 321.9 MB / 1.269 GB, free: 2.926 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03686/1.648, allocations: 29.91 MB / 1.299 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004584/1.652, allocations: 87.03 kB / 1.299 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005782/1.658, allocations: 1.762 MB / 1.3 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01327/1.672, allocations: 4.695 MB / 1.305 GB, free: 2.398 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01294/1.685, allocations: 3.343 MB / 1.308 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01946/1.704, allocations: 9.633 MB / 1.318 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007768/1.712, allocations: 2.368 MB / 1.32 GB, free: 17.88 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02236/1.734, allocations: 4.676 MB / 1.325 GB, free: 17.79 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008652/1.743, allocations: 2.402 MB / 1.327 GB, free: 17.77 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001553/1.745, allocations: 132.3 kB / 1.327 GB, free: 17.77 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02048/1.765, allocations: 5.584 MB / 1.332 GB, free: 17.72 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002915/1.768, allocations: 0.8981 MB / 1.333 GB, free: 17.72 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.005653/1.774, allocations: 1.566 MB / 1.335 GB, free: 17.69 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01437/1.788, allocations: 5.809 MB / 1.341 GB, free: 17.36 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.788, allocations: 0 / 1.341 GB, free: 17.36 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.615e-06/1.788, allocations: 0 / 1.341 GB, free: 17.36 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002094/1.788, allocations: 0 / 1.341 GB, free: 17.36 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.008341/1.797, allocations: 3.063 MB / 1.344 GB, free: 15.76 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.797, allocations: 8.656 kB / 1.344 GB, free: 15.76 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01015/1.807, allocations: 1.572 MB / 1.345 GB, free: 15.52 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005321/1.812, allocations: 1.996 MB / 1.347 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001437/1.814, allocations: 429 kB / 1.347 GB, free: 14.65 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009019/1.815, allocations: 222 kB / 1.348 GB, free: 14.65 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00858/1.823, allocations: 3.104 MB / 1.351 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-05/1.823, allocations: 3.062 kB / 1.351 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005847/1.824, allocations: 94.47 kB / 1.351 GB, free: 13.66 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/1.824, allocations: 93.66 kB / 1.351 GB, free: 13.65 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008156/1.832, allocations: 3.229 MB / 1.354 GB, free: 13.05 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.02518/1.858, allocations: 14.28 MB / 1.368 GB, free: 3.375 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004166/1.862, allocations: 1.69 MB / 1.37 GB, free: 3.078 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/1.864, allocations: 0.7872 MB / 1.37 GB, free: 2.941 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006568/1.864, allocations: 343.7 kB / 1.371 GB, free: 2.629 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/1.864, allocations: 59.17 kB / 1.371 GB, free: 2.582 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001492/1.866, allocations: 189.7 kB / 1.371 GB, free: 2.484 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 5.971e-06/1.866, allocations: 3.312 kB / 1.371 GB, free: 2.484 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.006039/1.872, allocations: 2.414 MB / 1.373 GB, free: 1.949 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/1.872, allocations: 65.78 kB / 1.373 GB, free: 1.883 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004663/1.877, allocations: 2.563 MB / 1.376 GB, free: 1.207 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002964/1.877, allocations: 54.42 kB / 1.376 GB, free: 1.176 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001012/1.878, allocations: 1.266 MB / 1.377 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004018/1.878, allocations: 391.2 kB / 1.378 GB, free: 332 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/1.879, allocations: 130.3 kB / 1.378 GB, free: 296 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.879, allocations: 308.4 kB / 1.378 GB, free: 15.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003017/1.882, allocations: 0.9956 MB / 1.379 GB, free: 15.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00356/1.885, allocations: 1.627 MB / 1.381 GB, free: 14.84 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005003/1.89, allocations: 2.301 MB / 1.383 GB, free: 13.99 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/1.89, allocations: 3.281 kB / 1.383 GB, free: 13.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.0071/1.898, allocations: 2.864 MB / 1.386 GB, free: 13.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004248/1.898, allocations: 0.5457 MB / 1.386 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/1.898, allocations: 19.72 kB / 1.386 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.484e-05/1.898, allocations: 21.59 kB / 1.386 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00298/1.901, allocations: 0.5714 MB / 1.387 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/1.903, allocations: 2.397 MB / 1.389 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004403/1.907, allocations: 447.2 kB / 1.389 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/1.907, allocations: 92.41 kB / 1.39 GB, free: 9.996 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/1.907, allocations: 4.562 kB / 1.39 GB, free: 9.996 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006294/1.914, allocations: 2.623 MB / 1.392 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.213e-05/1.914, allocations: 12.16 kB / 1.392 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/1.914, allocations: 21.41 kB / 1.392 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/1.916, allocations: 0.5244 MB / 1.393 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-05/1.916, allocations: 32.19 kB / 1.393 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/1.92, allocations: 372.5 kB / 1.393 GB, free: 9.242 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/1.92, allocations: 87.91 kB / 1.393 GB, free: 9.234 MB / 1.029 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.00176/1.922, allocations: 0.6247 MB / 1.394 GB, free: 9.004 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008563/1.923, allocations: 262.9 kB / 1.394 GB, free: 8.758 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004887/1.928, allocations: 1.889 MB / 1.396 GB, free: 7.422 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/1.928, allocations: 8 kB / 1.396 GB, free: 7.414 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/1.928, allocations: 0 / 1.396 GB, free: 7.414 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/1.928, allocations: 7.984 kB / 1.396 GB, free: 7.406 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009774/1.938, allocations: 4.546 MB / 1.4 GB, free: 3.855 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/1.938, allocations: 4.375 kB / 1.4 GB, free: 3.852 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001759/1.939, allocations: 319.7 kB / 1.401 GB, free: 3.551 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-05/1.939, allocations: 8 kB / 1.401 GB, free: 3.543 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/1.94, allocations: 31.98 kB / 1.401 GB, free: 3.512 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/1.941, allocations: 2.376 MB / 1.403 GB, free: 1.051 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.941, allocations: 8 kB / 1.403 GB, free: 1.043 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005126/1.946, allocations: 2.014 MB / 1.405 GB, free: 14.95 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/1.948, allocations: 0.5444 MB / 1.405 GB, free: 14.38 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009303/1.949, allocations: 27.98 kB / 1.406 GB, free: 14.36 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003585/1.953, allocations: 284.5 kB / 1.406 GB, free: 14.08 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/1.953, allocations: 82.09 kB / 1.406 GB, free: 14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002236/1.953, allocations: 67.95 kB / 1.406 GB, free: 13.93 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.004521/1.957, allocations: 1.77 MB / 1.408 GB, free: 12.16 MB / 1.045 GB Notification: Performance of sort global known variables: time 3.21e-07/1.957, allocations: 0 / 1.408 GB, free: 12.16 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.006918/1.964, allocations: 1.298 MB / 1.409 GB, free: 10.86 MB / 1.045 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.001277/1.966, allocations: 385.9 kB / 1.409 GB, free: 10.53 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.01081/1.977, allocations: 3.683 MB / 1.413 GB, free: 6.906 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/1.977, allocations: 5.75 kB / 1.413 GB, free: 6.902 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002256/1.979, allocations: 0.8258 MB / 1.414 GB, free: 6.113 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0107/1.99, allocations: 1.325 MB / 1.415 GB, free: 4.801 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009945/2, allocations: 5.265 MB / 1.42 GB, free: 15.46 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001803/2.001, allocations: 1.702 MB / 1.422 GB, free: 13.72 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.005067/2.007, allocations: 0.7858 MB / 1.423 GB, free: 12.93 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001142/2.008, allocations: 219.4 kB / 1.423 GB, free: 12.71 MB / 1.061 GB Notification: Performance of SimCode: time 1.303e-06/2.008, allocations: 0 / 1.423 GB, free: 12.71 MB / 1.061 GB Notification: Performance of Templates: time 0.09728/2.105, allocations: 51.13 MB / 1.473 GB, free: 10.27 MB / 1.107 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches