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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009734/0.0009736, allocations: 99.11 kB / 16.02 MB, free: 76 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.001215/0.001215, allocations: 183 kB / 16.92 MB, free: 6.918 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.363/1.363, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.355/2.355, allocations: 390.9 MB / 0.667 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003617, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.706/0.7064, allocations: 142.4 MB / 0.9557 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.9878/1.694, allocations: 321.9 MB / 1.27 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03752/1.732, allocations: 29.91 MB / 1.299 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005005/1.737, allocations: 87.47 kB / 1.299 GB, free: 2.574 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00583/1.743, allocations: 1.76 MB / 1.301 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.014/1.757, allocations: 4.701 MB / 1.306 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009779/1.767, allocations: 3.346 MB / 1.309 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01294/1.779, allocations: 9.633 MB / 1.318 GB, free: 2.16 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/1.784, allocations: 2.366 MB / 1.321 GB, free: 17.8 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01627/1.801, allocations: 4.674 MB / 1.325 GB, free: 17.71 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007059/1.808, allocations: 2.398 MB / 1.328 GB, free: 17.69 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001361/1.809, allocations: 135 kB / 1.328 GB, free: 17.68 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/1.823, allocations: 5.586 MB / 1.333 GB, free: 17.64 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002408/1.825, allocations: 0.8946 MB / 1.334 GB, free: 17.64 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.004903/1.83, allocations: 1.563 MB / 1.336 GB, free: 17.61 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.008153/1.838, allocations: 4.154 MB / 1.34 GB, free: 17.29 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/1.838, allocations: 2.531 kB / 1.34 GB, free: 17.29 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.075e-06/1.838, allocations: 5.453 kB / 1.34 GB, free: 17.29 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001474/1.838, allocations: 0 / 1.34 GB, free: 17.29 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.008364/1.847, allocations: 3.056 MB / 1.343 GB, free: 15.69 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/1.847, allocations: 9.812 kB / 1.343 GB, free: 15.69 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/1.857, allocations: 1.577 MB / 1.344 GB, free: 15.45 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005109/1.862, allocations: 1.99 MB / 1.346 GB, free: 14.89 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001386/1.864, allocations: 429.3 kB / 1.346 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009851/1.865, allocations: 222.9 kB / 1.347 GB, free: 14.86 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007181/1.872, allocations: 3.105 MB / 1.35 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.877e-05/1.872, allocations: 6 kB / 1.35 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003302/1.872, allocations: 90.31 kB / 1.35 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/1.872, allocations: 87.88 kB / 1.35 GB, free: 13.88 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008021/1.88, allocations: 3.221 MB / 1.353 GB, free: 13.29 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.02593/1.906, allocations: 14.3 MB / 1.367 GB, free: 3.605 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003855/1.91, allocations: 1.681 MB / 1.369 GB, free: 3.312 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/1.912, allocations: 0.8008 MB / 1.369 GB, free: 3.168 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006457/1.913, allocations: 335 kB / 1.37 GB, free: 2.859 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/1.913, allocations: 55.48 kB / 1.37 GB, free: 2.816 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001571/1.914, allocations: 195.5 kB / 1.37 GB, free: 2.715 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 4.038e-06/1.914, allocations: 0 / 1.37 GB, free: 2.715 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.005813/1.92, allocations: 2.416 MB / 1.372 GB, free: 2.176 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/1.92, allocations: 66.56 kB / 1.372 GB, free: 2.109 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004099/1.924, allocations: 2.56 MB / 1.375 GB, free: 1.438 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003015/1.925, allocations: 53.05 kB / 1.375 GB, free: 1.406 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000911/1.925, allocations: 1.275 MB / 1.376 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003598/1.926, allocations: 382.8 kB / 1.377 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/1.926, allocations: 135.2 kB / 1.377 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.926, allocations: 309.1 kB / 1.377 GB, free: 224 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002538/1.929, allocations: 0.9883 MB / 1.378 GB, free: 20 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003164/1.932, allocations: 1.641 MB / 1.38 GB, free: 15.1 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004639/1.937, allocations: 2.305 MB / 1.382 GB, free: 14.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/1.937, allocations: 3.469 kB / 1.382 GB, free: 14.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006738/1.943, allocations: 2.871 MB / 1.385 GB, free: 13.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004096/1.944, allocations: 0.5426 MB / 1.385 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/1.944, allocations: 15.59 kB / 1.385 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.577e-05/1.944, allocations: 22 kB / 1.385 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002945/1.947, allocations: 0.574 MB / 1.386 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/1.948, allocations: 2.394 MB / 1.388 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004586/1.953, allocations: 444.4 kB / 1.389 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002809/1.953, allocations: 87.45 kB / 1.389 GB, free: 10.26 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/1.953, allocations: 11.22 kB / 1.389 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006218/1.959, allocations: 2.619 MB / 1.391 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.188e-05/1.96, allocations: 13.84 kB / 1.391 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/1.96, allocations: 21.19 kB / 1.391 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002452/1.962, allocations: 0.5291 MB / 1.392 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.579e-05/1.962, allocations: 30.28 kB / 1.392 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003698/1.966, allocations: 368.6 kB / 1.392 GB, free: 9.512 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002342/1.966, allocations: 95.11 kB / 1.392 GB, free: 9.5 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.001486/1.967, allocations: 0.625 MB / 1.393 GB, free: 9.27 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006252/1.968, allocations: 265.5 kB / 1.393 GB, free: 9.129 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/1.973, allocations: 1.886 MB / 1.395 GB, free: 8.32 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/1.973, allocations: 12 kB / 1.395 GB, free: 8.309 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/1.973, allocations: 0 / 1.395 GB, free: 8.309 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/1.973, allocations: 7.984 kB / 1.395 GB, free: 8.301 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009257/1.982, allocations: 4.549 MB / 1.399 GB, free: 4.973 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/1.982, allocations: 4 kB / 1.399 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/1.984, allocations: 318.9 kB / 1.4 GB, free: 4.676 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-05/1.984, allocations: 16 kB / 1.4 GB, free: 4.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.614e-05/1.984, allocations: 30.17 kB / 1.4 GB, free: 4.645 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/1.985, allocations: 2.364 MB / 1.402 GB, free: 2.195 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.985, allocations: 10.72 kB / 1.402 GB, free: 2.188 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005162/1.99, allocations: 2.012 MB / 1.404 GB, free: 92 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001968/1.992, allocations: 0.5483 MB / 1.405 GB, free: 15.52 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/1.993, allocations: 26.61 kB / 1.405 GB, free: 15.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.995, allocations: 284.5 kB / 1.405 GB, free: 15.22 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/1.996, allocations: 79.47 kB / 1.405 GB, free: 15.14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/1.996, allocations: 63.95 kB / 1.405 GB, free: 15.08 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.003432/1.999, allocations: 1.774 MB / 1.407 GB, free: 13.3 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.21e-07/1.999, allocations: 2.812 kB / 1.407 GB, free: 13.3 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.004293/2.003, allocations: 1.302 MB / 1.408 GB, free: 12 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.0009792/2.004, allocations: 381.4 kB / 1.408 GB, free: 11.67 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.009693/2.014, allocations: 3.678 MB / 1.412 GB, free: 8.051 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/2.014, allocations: 8.188 kB / 1.412 GB, free: 8.043 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002105/2.016, allocations: 0.8252 MB / 1.413 GB, free: 7.258 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009201/2.026, allocations: 1.336 MB / 1.414 GB, free: 5.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009276/2.035, allocations: 5.347 MB / 1.419 GB, free: 0.5 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001396/2.036, allocations: 1.684 MB / 1.421 GB, free: 14.78 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/2.038, allocations: 247.3 kB / 1.421 GB, free: 14.54 MB / 1.061 GB Notification: Performance of SimCode: time 1.202e-06/2.038, allocations: 0 / 1.421 GB, free: 14.54 MB / 1.061 GB Notification: Performance of Templates: time 0.1157/2.153, allocations: 85.86 MB / 1.505 GB, free: 8.922 MB / 1.139 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches