Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_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.00106/0.00106, allocations: 108 kB / 15.61 MB, free: 152 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.001122/0.001123, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.537/2.537, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.89 kB / 0.8694 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6154/0.6169, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03804/0.655, allocations: 41.59 MB / 1.058 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01471/0.6697, allocations: 10.4 MB / 1.068 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002132/0.6719, allocations: 55.69 kB / 1.068 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002094/0.674, allocations: 0.6443 MB / 1.069 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.006092/0.6802, allocations: 1.885 MB / 1.071 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.6837, allocations: 1.167 MB / 1.072 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005185/0.6889, allocations: 3.392 MB / 1.075 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001753/0.6906, allocations: 1.054 MB / 1.076 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.6938, allocations: 1.231 MB / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.6956, allocations: 0.8828 MB / 1.078 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000392/0.696, allocations: 104 kB / 1.078 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.6985, allocations: 0.8617 MB / 1.079 GB, free: 3 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.6989, allocations: 271 kB / 1.079 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.7003, allocations: 0.6298 MB / 1.08 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.7036, allocations: 1.909 MB / 1.082 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.7036, allocations: 0 / 1.082 GB, free: 192 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7036, allocations: 0 / 1.082 GB, free: 192 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.762e-05/0.7037, allocations: 0 / 1.082 GB, free: 192 kB / 0.8262 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.003126/0.7068, allocations: 1.512 MB / 1.083 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.7069, allocations: 12.03 kB / 1.083 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001748/0.7071, allocations: 118.7 kB / 1.084 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004355/0.7075, allocations: 131.5 kB / 1.084 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.7093, allocations: 1.045 MB / 1.085 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.7094, allocations: 50 kB / 1.085 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.7095, allocations: 79.92 kB / 1.085 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.7108, allocations: 0.7905 MB / 1.086 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.7108, allocations: 3.984 kB / 1.086 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.7109, allocations: 32 kB / 1.086 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.711, allocations: 19.94 kB / 1.086 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.7121, allocations: 0.5672 MB / 1.086 GB, free: 11.7 MB / 0.8419 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.004416/0.7165, allocations: 3.579 MB / 1.09 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005837/0.7171, allocations: 259.6 kB / 1.09 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.7175, allocations: 176.8 kB / 1.09 GB, free: 7.453 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005103/0.718, allocations: 0.657 MB / 1.091 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.718, allocations: 38.56 kB / 1.091 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.718, allocations: 3.938 kB / 1.091 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.00125/0.7193, allocations: 0.5093 MB / 1.091 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.7193, allocations: 59.34 kB / 1.091 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.7206, allocations: 0.9456 MB / 1.092 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.7206, allocations: 33.7 kB / 1.092 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003909/0.721, allocations: 0.4956 MB / 1.093 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.979e-05/0.7211, allocations: 114.4 kB / 1.093 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.7213, allocations: 110.2 kB / 1.093 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.7214, allocations: 333.9 kB / 1.093 GB, free: 3.949 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.7218, allocations: 161 kB / 1.093 GB, free: 3.789 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00047/0.7223, allocations: 350.9 kB / 1.094 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008023/0.7231, allocations: 0.5148 MB / 1.094 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.7231, allocations: 0 / 1.094 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001157/0.7243, allocations: 0.6208 MB / 1.095 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.7243, allocations: 9.719 kB / 1.095 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.7243, allocations: 4 kB / 1.095 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.7243, allocations: 8.594 kB / 1.095 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.7248, allocations: 127.8 kB / 1.095 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.7248, allocations: 8 kB / 1.095 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.7254, allocations: 87.17 kB / 1.095 GB, free: 1.918 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.835e-05/0.7255, allocations: 32 kB / 1.095 GB, free: 1.887 MB / 0.8419 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.0003416/0.7258, allocations: 281.5 kB / 1.095 GB, free: 1.602 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.726, allocations: 102.8 kB / 1.096 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000943/0.7269, allocations: 480.2 kB / 1.096 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.727, allocations: 4 kB / 1.096 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.727, allocations: 0 / 1.096 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007037/0.7277, allocations: 461.2 kB / 1.096 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.7297, allocations: 1.362 MB / 1.098 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.7297, allocations: 3.938 kB / 1.098 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.7301, allocations: 83.81 kB / 1.098 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.7301, allocations: 4 kB / 1.098 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.7301, allocations: 8 kB / 1.098 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.7301, allocations: 4 kB / 1.098 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.7301, allocations: 3.938 kB / 1.098 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.7314, allocations: 0.7701 MB / 1.099 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.7317, allocations: 223.8 kB / 1.099 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.7318, allocations: 15.97 kB / 1.099 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005324/0.7324, allocations: 31.91 kB / 1.099 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.47e-05/0.7325, allocations: 27.91 kB / 1.099 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.7325, allocations: 24.05 kB / 1.099 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008367/0.7333, allocations: 0.6588 MB / 1.1 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7333, allocations: 0 / 1.1 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009428/0.7343, allocations: 339.5 kB / 1.1 GB, free: 12.86 MB / 0.8575 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.002169/0.7365, allocations: 1.588 MB / 1.101 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009578/0.7374, allocations: 440.7 kB / 1.102 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7375, allocations: 8.062 kB / 1.102 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003659/0.7378, allocations: 192.2 kB / 1.102 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/0.7405, allocations: 0.6151 MB / 1.103 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009968/0.7505, allocations: 7.212 MB / 1.11 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000642/0.7512, allocations: 1.04 MB / 1.111 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0008951/0.7521, allocations: 199.4 kB / 1.111 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004949/0.7526, allocations: 371.2 kB / 1.111 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of SimCode: time 1.934e-06/0.7526, allocations: 4 kB / 1.111 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06009/0.8127, allocations: 29.56 MB / 1.14 GB, free: 3.633 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/9.072, allocations: 8.078 kB / 1.14 GB, free: 3.629 MB / 0.8887 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches