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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,fileNamePrefix="Buildings_9_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.0009538/0.0009538, 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.005602/0.005602, allocations: 168.8 kB / 16.26 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.324/1.324, allocations: 223.3 MB / 240.3 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.257/2.257, allocations: 390.9 MB / 0.6664 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.0002925, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5228/0.5231, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger): time 0.7216/1.245, allocations: 321.9 MB / 1.27 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02641/1.271, allocations: 29.91 MB / 1.299 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002291/1.274, allocations: 87.78 kB / 1.299 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003336/1.277, allocations: 1.762 MB / 1.301 GB, free: 2.547 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008385/1.285, allocations: 4.701 MB / 1.305 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.006256/1.292, allocations: 3.349 MB / 1.308 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.007709/1.299, allocations: 9.626 MB / 1.318 GB, free: 2.168 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002687/1.302, allocations: 2.362 MB / 1.32 GB, free: 17.81 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009257/1.311, allocations: 4.682 MB / 1.325 GB, free: 17.71 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/1.314, allocations: 2.395 MB / 1.327 GB, free: 17.7 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002591/1.315, allocations: 130.1 kB / 1.327 GB, free: 17.7 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007426/1.322, allocations: 5.583 MB / 1.333 GB, free: 17.65 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007594/1.323, allocations: 0.8982 MB / 1.333 GB, free: 17.65 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001521/1.324, allocations: 1.565 MB / 1.335 GB, free: 17.62 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005613/1.33, allocations: 5.806 MB / 1.341 GB, free: 17.29 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/1.33, allocations: 0 / 1.341 GB, free: 17.29 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.142e-06/1.33, allocations: 0 / 1.341 GB, free: 17.29 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.946e-05/1.33, allocations: 2.156 kB / 1.341 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.004987/1.335, allocations: 3.062 MB / 1.344 GB, free: 15.69 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/1.335, allocations: 9.406 kB / 1.344 GB, free: 15.69 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003054/1.335, allocations: 297.5 kB / 1.344 GB, free: 15.64 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00836/1.344, allocations: 1.582 MB / 1.345 GB, free: 15.4 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/1.347, allocations: 1.992 MB / 1.347 GB, free: 14.6 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001162/1.348, allocations: 436.8 kB / 1.348 GB, free: 14.5 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000292/1.348, allocations: 222.2 kB / 1.348 GB, free: 14.5 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/1.353, allocations: 3.102 MB / 1.351 GB, free: 13.51 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/1.353, allocations: 2.531 kB / 1.351 GB, free: 13.51 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002171/1.353, allocations: 92.06 kB / 1.351 GB, free: 13.51 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.407e-05/1.353, allocations: 87.53 kB / 1.351 GB, free: 13.5 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005842/1.359, allocations: 3.228 MB / 1.354 GB, free: 12.9 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.01697/1.376, allocations: 14.29 MB / 1.368 GB, free: 3.223 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003373/1.379, allocations: 1.7 MB / 1.37 GB, free: 2.914 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/1.381, allocations: 0.7875 MB / 1.371 GB, free: 2.777 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005167/1.381, allocations: 340.4 kB / 1.371 GB, free: 2.469 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/1.381, allocations: 55.72 kB / 1.371 GB, free: 2.422 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007156/1.382, allocations: 195.4 kB / 1.371 GB, free: 2.32 MB / 1.014 GB Notification: Performance of pre-optimization done (n=110): time 2.866e-06/1.382, allocations: 0.875 kB / 1.371 GB, free: 2.32 MB / 1.014 GB Notification: Performance of matching and sorting (n=110): time 0.004745/1.387, allocations: 2.416 MB / 1.374 GB, free: 1.785 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/1.387, allocations: 66.03 kB / 1.374 GB, free: 1.719 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002935/1.39, allocations: 2.558 MB / 1.376 GB, free: 1.047 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/1.39, allocations: 56.95 kB / 1.376 GB, free: 1.016 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007079/1.391, allocations: 1.276 MB / 1.378 GB, free: 444 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002415/1.391, allocations: 383.4 kB / 1.378 GB, free: 164 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/1.391, allocations: 130.8 kB / 1.378 GB, free: 128 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.481e-05/1.391, allocations: 307 kB / 1.378 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/1.394, allocations: 0.9936 MB / 1.379 GB, free: 15.62 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002608/1.396, allocations: 1.631 MB / 1.381 GB, free: 14.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004015/1.4, allocations: 2.299 MB / 1.383 GB, free: 13.83 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/1.4, allocations: 3.062 kB / 1.383 GB, free: 13.83 MB / 1.029 GB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005493/1.406, allocations: 2.867 MB / 1.386 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.000264/1.406, allocations: 0.5475 MB / 1.387 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/1.406, allocations: 15.69 kB / 1.387 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/1.406, allocations: 21.91 kB / 1.387 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/1.409, allocations: 0.5742 MB / 1.387 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/1.41, allocations: 2.393 MB / 1.389 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/1.413, allocations: 440.2 kB / 1.39 GB, free: 9.852 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/1.413, allocations: 93.58 kB / 1.39 GB, free: 9.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.34e-06/1.413, allocations: 5.797 kB / 1.39 GB, free: 9.84 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005184/1.418, allocations: 2.629 MB / 1.393 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/1.418, allocations: 10.06 kB / 1.393 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/1.418, allocations: 24.34 kB / 1.393 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/1.421, allocations: 0.5209 MB / 1.393 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.162e-05/1.421, allocations: 31.17 kB / 1.393 GB, free: 9.211 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/1.423, allocations: 382.6 kB / 1.393 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/1.423, allocations: 88.66 kB / 1.394 GB, free: 9.07 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.0008062/1.424, allocations: 0.6233 MB / 1.394 GB, free: 8.809 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003194/1.425, allocations: 264.7 kB / 1.394 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003814/1.428, allocations: 1.886 MB / 1.396 GB, free: 7.215 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/1.428, allocations: 8 kB / 1.396 GB, free: 7.207 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.428, allocations: 3.984 kB / 1.396 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/1.428, allocations: 3.984 kB / 1.396 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006834/1.435, allocations: 4.545 MB / 1.401 GB, free: 3.539 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/1.435, allocations: 8 kB / 1.401 GB, free: 3.531 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/1.437, allocations: 310.4 kB / 1.401 GB, free: 3.242 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/1.437, allocations: 8 kB / 1.401 GB, free: 3.234 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.76e-05/1.437, allocations: 39.97 kB / 1.401 GB, free: 3.195 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008759/1.438, allocations: 2.366 MB / 1.403 GB, free: 0.7422 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/1.438, allocations: 15.28 kB / 1.403 GB, free: 0.7305 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003537/1.441, allocations: 2.019 MB / 1.405 GB, free: 14.63 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/1.442, allocations: 0.5366 MB / 1.406 GB, free: 14.07 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/1.442, allocations: 31.98 kB / 1.406 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.445, allocations: 284.5 kB / 1.406 GB, free: 13.77 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/1.445, allocations: 78.48 kB / 1.406 GB, free: 13.69 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/1.445, allocations: 67.94 kB / 1.406 GB, free: 13.62 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002485/1.447, allocations: 1.77 MB / 1.408 GB, free: 11.85 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.4e-07/1.447, allocations: 0 / 1.408 GB, free: 11.85 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002707/1.45, allocations: 1.298 MB / 1.409 GB, free: 10.55 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.004245/1.454, allocations: 2.852 MB / 1.412 GB, free: 7.656 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.007714/1.462, allocations: 3.677 MB / 1.416 GB, free: 4.043 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/1.462, allocations: 4 kB / 1.416 GB, free: 4.039 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001724/1.464, allocations: 0.8277 MB / 1.417 GB, free: 3.242 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00732/1.471, allocations: 1.321 MB / 1.418 GB, free: 1.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03459/1.506, allocations: 22.61 MB / 1.44 GB, free: 9.523 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/1.507, allocations: 1.706 MB / 1.442 GB, free: 7.777 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.003035/1.51, allocations: 0.7819 MB / 1.442 GB, free: 6.988 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/1.511, allocations: 1.038 MB / 1.443 GB, free: 5.949 MB / 1.076 GB Notification: Performance of SimCode: time 5.11e-07/1.511, allocations: 0 / 1.443 GB, free: 5.949 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.797/4.308, allocations: 72.04 MB / 1.514 GB, free: 14.68 MB / 1.154 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/4.309, allocations: 281.9 kB / 1.514 GB, free: 14.3 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.444/9.753, allocations: 0 / 1.514 GB, free: 14.3 MB / 1.154 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.fmu > 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