Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.001054/0.001054, allocations: 90.52 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.008504/0.008504, allocations: 171.1 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.389/1.389, allocations: 223.3 MB / 240.3 MB, free: 5.309 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.381/2.381, allocations: 390.9 MB / 0.6664 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003626, allocations: 11.98 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.569/0.5694, allocations: 142.4 MB / 0.9552 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03565/0.605, allocations: 40.49 MB / 0.9947 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01381/0.6189, allocations: 10.34 MB / 1.005 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.6202, allocations: 51.62 kB / 1.005 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.6216, allocations: 0.5322 MB / 1.005 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004006/0.6256, allocations: 1.731 MB / 1.007 GB, free: 10.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002422/0.628, allocations: 1.087 MB / 1.008 GB, free: 8.949 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004688/0.6327, allocations: 4.518 MB / 1.013 GB, free: 4.422 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.6341, allocations: 0.8561 MB / 1.013 GB, free: 3.551 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001986/0.6361, allocations: 1.015 MB / 1.014 GB, free: 2.531 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001384/0.6375, allocations: 0.8631 MB / 1.015 GB, free: 1.664 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.6377, allocations: 36 kB / 1.015 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.6395, allocations: 0.7676 MB / 1.016 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.000263/0.6398, allocations: 219 kB / 1.016 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.000698/0.6405, allocations: 0.5768 MB / 1.017 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002082/0.6426, allocations: 1.838 MB / 1.019 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6426, allocations: 0 / 1.019 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6426, allocations: 0 / 1.019 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.136e-05/0.6426, allocations: 0 / 1.019 GB, free: 14.21 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001952/0.6446, allocations: 1.297 MB / 1.02 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.6446, allocations: 8.031 kB / 1.02 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.6448, allocations: 122.7 kB / 1.02 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002934/0.6451, allocations: 131.4 kB / 1.02 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.6465, allocations: 1.084 MB / 1.021 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.6466, allocations: 57.97 kB / 1.021 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.6467, allocations: 72 kB / 1.021 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.648, allocations: 0.7983 MB / 1.022 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.648, allocations: 0 / 1.022 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.406e-05/0.6481, allocations: 32 kB / 1.022 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.974e-05/0.6481, allocations: 23.98 kB / 1.022 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.6492, allocations: 0.5906 MB / 1.023 GB, free: 9.863 MB / 0.7794 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.003589/0.6528, allocations: 3.547 MB / 1.026 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005447/0.6534, allocations: 286.3 kB / 1.026 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.6537, allocations: 184.8 kB / 1.027 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004827/0.6542, allocations: 0.6575 MB / 1.027 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.6543, allocations: 38.56 kB / 1.027 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.6543, allocations: 0 / 1.027 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001114/0.6554, allocations: 0.5475 MB / 1.028 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.6554, allocations: 67.39 kB / 1.028 GB, free: 4.133 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.6565, allocations: 0.926 MB / 1.029 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.688e-05/0.6565, allocations: 33.7 kB / 1.029 GB, free: 3.148 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003585/0.6569, allocations: 499.6 kB / 1.029 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.657, allocations: 118.4 kB / 1.029 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.6571, allocations: 49.69 kB / 1.029 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.622e-05/0.6572, allocations: 325.9 kB / 1.03 GB, free: 2.156 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.6575, allocations: 181 kB / 1.03 GB, free: 1.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.658, allocations: 362.9 kB / 1.03 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008335/0.6589, allocations: 0.5342 MB / 1.031 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6589, allocations: 0 / 1.031 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001052/0.6599, allocations: 0.6255 MB / 1.031 GB, free: 316 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.66, allocations: 11.98 kB / 1.031 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.66, allocations: 8.031 kB / 1.031 GB, free: 296 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.66, allocations: 8 kB / 1.031 GB, free: 288 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.6604, allocations: 127.8 kB / 1.032 GB, free: 160 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.6605, allocations: 11.94 kB / 1.032 GB, free: 148 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006461/0.6611, allocations: 127 kB / 1.032 GB, free: 20 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/0.6612, allocations: 28.05 kB / 1.032 GB, free: 15.99 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 initialization (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003292/0.6615, allocations: 273.6 kB / 1.032 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.6617, allocations: 98.88 kB / 1.032 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009889/0.6626, allocations: 0.5002 MB / 1.033 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.6627, allocations: 4 kB / 1.033 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.6627, allocations: 0 / 1.033 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007531/0.6634, allocations: 477.4 kB / 1.033 GB, free: 14.61 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.6654, allocations: 1.37 MB / 1.034 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.6654, allocations: 11.94 kB / 1.034 GB, free: 13.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.6658, allocations: 79.88 kB / 1.034 GB, free: 13.08 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.6658, allocations: 12.09 kB / 1.034 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.6658, allocations: 8 kB / 1.034 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6658, allocations: 0 / 1.034 GB, free: 13.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.6658, allocations: 7.984 kB / 1.034 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.6671, allocations: 0.7973 MB / 1.035 GB, free: 12.23 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.6674, allocations: 247.6 kB / 1.035 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.6675, allocations: 12 kB / 1.035 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005778/0.6681, allocations: 63.56 kB / 1.036 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.153e-05/0.6682, allocations: 27.97 kB / 1.036 GB, free: 11.87 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.6682, allocations: 23.92 kB / 1.036 GB, free: 11.84 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0007695/0.669, allocations: 0.6471 MB / 1.036 GB, free: 11.19 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.669, allocations: 0 / 1.036 GB, free: 11.19 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0008615/0.6699, allocations: 327.4 kB / 1.037 GB, free: 10.87 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002132/0.672, allocations: 1.617 MB / 1.038 GB, free: 9.219 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008412/0.6729, allocations: 448.4 kB / 1.039 GB, free: 8.781 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.6729, allocations: 0 / 1.039 GB, free: 8.781 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003786/0.6733, allocations: 200.6 kB / 1.039 GB, free: 8.586 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.6763, allocations: 0.5941 MB / 1.039 GB, free: 7.996 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.6876, allocations: 7.583 MB / 1.047 GB, free: 12 kB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005961/0.6882, allocations: 1.036 MB / 1.048 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0007352/0.6889, allocations: 199.5 kB / 1.048 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004456/0.6894, allocations: 367.3 kB / 1.048 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.6894, allocations: 4 kB / 1.048 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.219/1.908, allocations: 28.32 MB / 1.076 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002964/1.909, allocations: 264.7 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.874/4.783, allocations: 0 / 1.076 GB, free: 2.242 MB / 0.8262 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches