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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008306/0.0008305, allocations: 98.27 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.005272/0.005272, allocations: 169.9 kB / 16.27 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.489/1.489, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 437.8 MB / 0.7121 GB, free: 7 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 12 kB / 0.8729 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6627/0.6631, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.8739/1.537, allocations: 321.9 MB / 1.338 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02877/1.566, allocations: 29.91 MB / 1.367 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003724/1.57, allocations: 88.56 kB / 1.367 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00544/1.575, allocations: 1.754 MB / 1.369 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01341/1.588, allocations: 4.714 MB / 1.373 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.008287/1.597, allocations: 3.338 MB / 1.376 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01093/1.608, allocations: 9.628 MB / 1.386 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/1.612, allocations: 2.354 MB / 1.388 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01226/1.624, allocations: 4.691 MB / 1.393 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004688/1.629, allocations: 2.397 MB / 1.395 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004976/1.629, allocations: 129.7 kB / 1.395 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01055/1.64, allocations: 5.593 MB / 1.401 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001204/1.641, allocations: 0.8941 MB / 1.401 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002408/1.643, allocations: 1.566 MB / 1.403 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008839/1.652, allocations: 5.806 MB / 1.409 GB, free: 13.28 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.652, allocations: 0 / 1.409 GB, free: 13.28 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.054e-06/1.652, allocations: 0 / 1.409 GB, free: 13.28 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.038e-05/1.652, allocations: 4 kB / 1.409 GB, free: 13.28 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.006663/1.659, allocations: 3.056 MB / 1.412 GB, free: 10.18 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.659, allocations: 11.97 kB / 1.412 GB, free: 10.17 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004545/1.659, allocations: 295.6 kB / 1.412 GB, free: 9.867 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009912/1.669, allocations: 1.576 MB / 1.413 GB, free: 8.289 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003833/1.673, allocations: 2 MB / 1.415 GB, free: 6.258 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001359/1.675, allocations: 436 kB / 1.416 GB, free: 5.832 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003967/1.675, allocations: 216 kB / 1.416 GB, free: 5.621 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006068/1.681, allocations: 3.105 MB / 1.419 GB, free: 2.383 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.266e-05/1.681, allocations: 7.938 kB / 1.419 GB, free: 2.375 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000257/1.681, allocations: 91.94 kB / 1.419 GB, free: 2.285 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.307e-05/1.682, allocations: 88 kB / 1.419 GB, free: 2.195 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007267/1.689, allocations: 3.224 MB / 1.422 GB, free: 14.95 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.02206/1.711, allocations: 14.28 MB / 1.436 GB, free: 15.68 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004098/1.715, allocations: 1.696 MB / 1.438 GB, free: 13.98 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/1.717, allocations: 0.7899 MB / 1.439 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006073/1.717, allocations: 338.6 kB / 1.439 GB, free: 12.8 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.913e-05/1.717, allocations: 59.48 kB / 1.439 GB, free: 12.74 MB / 1.045 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001176/1.719, allocations: 192.7 kB / 1.439 GB, free: 12.55 MB / 1.045 GB Notification: Performance of pre-optimization done (n=110): time 3.407e-06/1.719, allocations: 0 / 1.439 GB, free: 12.55 MB / 1.045 GB Notification: Performance of matching and sorting (n=110): time 0.005891/1.725, allocations: 2.41 MB / 1.442 GB, free: 10.13 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/1.725, allocations: 64.41 kB / 1.442 GB, free: 10.06 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004707/1.729, allocations: 2.56 MB / 1.444 GB, free: 7.48 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0004798/1.73, allocations: 57.7 kB / 1.444 GB, free: 7.418 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001157/1.731, allocations: 1.273 MB / 1.446 GB, free: 6.141 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/1.731, allocations: 382.1 kB / 1.446 GB, free: 5.77 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/1.732, allocations: 137.6 kB / 1.446 GB, free: 5.629 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001298/1.732, allocations: 309 kB / 1.446 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/1.734, allocations: 0.9954 MB / 1.447 GB, free: 4.328 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/1.738, allocations: 1.632 MB / 1.449 GB, free: 2.43 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004924/1.743, allocations: 2.302 MB / 1.451 GB, free: 15.93 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/1.743, allocations: 8 kB / 1.451 GB, free: 15.93 MB / 1.061 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.007019/1.75, allocations: 2.859 MB / 1.454 GB, free: 13.04 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004032/1.75, allocations: 0.5454 MB / 1.455 GB, free: 12.3 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/1.75, allocations: 12 kB / 1.455 GB, free: 12.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/1.75, allocations: 20 kB / 1.455 GB, free: 12.27 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003096/1.753, allocations: 0.5804 MB / 1.455 GB, free: 11.69 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/1.755, allocations: 2.395 MB / 1.457 GB, free: 9.199 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/1.759, allocations: 439.5 kB / 1.458 GB, free: 8.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/1.759, allocations: 91.95 kB / 1.458 GB, free: 8.68 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/1.759, allocations: 6.656 kB / 1.458 GB, free: 8.676 MB / 1.061 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006259/1.765, allocations: 2.623 MB / 1.461 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/1.765, allocations: 19.94 kB / 1.461 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/1.765, allocations: 20 kB / 1.461 GB, free: 6 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/1.768, allocations: 0.523 MB / 1.461 GB, free: 5.477 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/1.768, allocations: 35.81 kB / 1.461 GB, free: 5.441 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/1.771, allocations: 376.8 kB / 1.461 GB, free: 5.074 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/1.771, allocations: 87.97 kB / 1.462 GB, free: 4.988 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.001187/1.772, allocations: 0.6216 MB / 1.462 GB, free: 4.355 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004429/1.773, allocations: 260.7 kB / 1.462 GB, free: 4.098 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004509/1.777, allocations: 1.89 MB / 1.464 GB, free: 2.199 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/1.777, allocations: 19.92 kB / 1.464 GB, free: 2.18 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/1.777, allocations: 0 / 1.464 GB, free: 2.18 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/1.777, allocations: 3.984 kB / 1.464 GB, free: 2.176 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/1.786, allocations: 4.546 MB / 1.469 GB, free: 13.52 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/1.786, allocations: 4.375 kB / 1.469 GB, free: 13.52 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001727/1.788, allocations: 312.2 kB / 1.469 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.669e-05/1.788, allocations: 15.98 kB / 1.469 GB, free: 13.2 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.991e-05/1.788, allocations: 27.98 kB / 1.469 GB, free: 13.17 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/1.789, allocations: 2.36 MB / 1.471 GB, free: 10.71 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/1.789, allocations: 19.94 kB / 1.471 GB, free: 10.7 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004257/1.793, allocations: 2.018 MB / 1.473 GB, free: 8.582 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/1.794, allocations: 0.5406 MB / 1.474 GB, free: 8.02 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/1.795, allocations: 27.98 kB / 1.474 GB, free: 7.992 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0026/1.797, allocations: 281.5 kB / 1.474 GB, free: 7.719 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/1.798, allocations: 84.73 kB / 1.474 GB, free: 7.633 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/1.798, allocations: 67.88 kB / 1.474 GB, free: 7.566 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.003111/1.801, allocations: 1.774 MB / 1.476 GB, free: 5.789 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.7e-07/1.801, allocations: 0 / 1.476 GB, free: 5.789 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.003623/1.804, allocations: 1.302 MB / 1.477 GB, free: 4.484 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.005118/1.81, allocations: 2.835 MB / 1.48 GB, free: 1.582 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.009223/1.819, allocations: 3.687 MB / 1.484 GB, free: 13.86 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.819, allocations: 8.125 kB / 1.484 GB, free: 13.85 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.002034/1.821, allocations: 0.8267 MB / 1.485 GB, free: 13.02 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008737/1.83, allocations: 1.328 MB / 1.486 GB, free: 11.7 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04286/1.873, allocations: 22.61 MB / 1.508 GB, free: 3.16 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/1.874, allocations: 1.702 MB / 1.51 GB, free: 1.422 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.003641/1.878, allocations: 0.7858 MB / 1.51 GB, free: 0.6289 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001748/1.879, allocations: 1.049 MB / 1.511 GB, free: 15.64 MB / 1.123 GB Notification: Performance of SimCode: time 9.72e-07/1.879, allocations: 0 / 1.511 GB, free: 15.64 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1157/1.995, allocations: 72.04 MB / 1.582 GB, free: 8.344 MB / 1.186 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/1.995, allocations: 283.2 kB / 1.582 GB, free: 7.965 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.82/5.816, allocations: 0 / 1.582 GB, free: 7.965 MB / 1.186 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches