Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.001141/0.001141, allocations: 108 kB / 15.6 MB, free: 132 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.001271/0.001271, allocations: 199.3 kB / 16.54 MB, free: 6.672 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64 kB / 0.9082 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3097, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04317/0.3529, allocations: 41.57 MB / 1.104 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01382/0.3668, allocations: 10.41 MB / 1.114 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.3686, allocations: 55.69 kB / 1.114 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001779/0.3704, allocations: 0.6365 MB / 1.115 GB, free: 9.684 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005178/0.3756, allocations: 1.887 MB / 1.117 GB, free: 7.789 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.3788, allocations: 1.175 MB / 1.118 GB, free: 6.625 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.005069/0.3839, allocations: 3.393 MB / 1.121 GB, free: 3.227 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00225/0.3862, allocations: 1.056 MB / 1.122 GB, free: 2.148 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003474/0.3897, allocations: 1.222 MB / 1.124 GB, free: 0.9258 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001674/0.3914, allocations: 0.8905 MB / 1.125 GB, free: 32 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004769/0.3919, allocations: 100 kB / 1.125 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.3943, allocations: 0.8538 MB / 1.125 GB, free: 15.08 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004935/0.3948, allocations: 279 kB / 1.126 GB, free: 14.8 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.3962, allocations: 0.6298 MB / 1.126 GB, free: 14.17 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.003508/0.3997, allocations: 1.901 MB / 1.128 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3997, allocations: 7.938 kB / 1.128 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.745e-06/0.3997, allocations: 0 / 1.128 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.026e-05/0.3998, allocations: 0 / 1.128 GB, free: 12.26 MB / 0.8887 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.002958/0.4027, allocations: 1.511 MB / 1.13 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4028, allocations: 12.03 kB / 1.13 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.4029, allocations: 118.7 kB / 1.13 GB, free: 10.56 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004017/0.4033, allocations: 135.4 kB / 1.13 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.4049, allocations: 1.044 MB / 1.131 GB, free: 9.34 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.4049, allocations: 54 kB / 1.131 GB, free: 9.289 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.789e-05/0.405, allocations: 72 kB / 1.131 GB, free: 9.219 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.4064, allocations: 0.7944 MB / 1.132 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.4064, allocations: 3.906 kB / 1.132 GB, free: 8.383 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.4065, allocations: 35.98 kB / 1.132 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.791e-05/0.4065, allocations: 19.94 kB / 1.132 GB, free: 8.328 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.4077, allocations: 0.5672 MB / 1.132 GB, free: 7.762 MB / 0.8887 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.004113/0.4118, allocations: 3.579 MB / 1.136 GB, free: 3.953 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.4124, allocations: 258.4 kB / 1.136 GB, free: 3.691 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003411/0.4127, allocations: 182.2 kB / 1.136 GB, free: 3.512 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000504/0.4132, allocations: 0.6571 MB / 1.137 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.4133, allocations: 38.56 kB / 1.137 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 4.108e-06/0.4133, allocations: 0 / 1.137 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001198/0.4145, allocations: 0.5123 MB / 1.138 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.4146, allocations: 59.41 kB / 1.138 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.4157, allocations: 0.9456 MB / 1.139 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.4158, allocations: 33.7 kB / 1.139 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004119/0.4162, allocations: 499.6 kB / 1.139 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.4163, allocations: 118.4 kB / 1.139 GB, free: 468 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.4165, allocations: 118.1 kB / 1.139 GB, free: 344 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4166, allocations: 329.9 kB / 1.14 GB, free: 8 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.417, allocations: 165 kB / 1.14 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.4175, allocations: 346.9 kB / 1.14 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.4183, allocations: 0.5225 MB / 1.141 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4183, allocations: 0 / 1.141 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001103/0.4194, allocations: 0.6175 MB / 1.141 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.4195, allocations: 4 kB / 1.141 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4195, allocations: 8 kB / 1.141 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.4195, allocations: 8 kB / 1.141 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.42, allocations: 123.8 kB / 1.141 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.42, allocations: 8 kB / 1.141 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005805/0.4206, allocations: 79.41 kB / 1.141 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.4206, allocations: 39.91 kB / 1.141 GB, free: 13.95 MB / 0.9044 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.0003444/0.421, allocations: 279.3 kB / 1.142 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.4211, allocations: 102.8 kB / 1.142 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009862/0.4221, allocations: 486 kB / 1.142 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.4221, allocations: 4 kB / 1.142 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.4222, allocations: 0 / 1.142 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007211/0.4229, allocations: 453.6 kB / 1.143 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.4248, allocations: 1.367 MB / 1.144 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4248, allocations: 0 / 1.144 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.4251, allocations: 83.98 kB / 1.144 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.4251, allocations: 4 kB / 1.144 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.4252, allocations: 8 kB / 1.144 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.4252, allocations: 4 kB / 1.144 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4252, allocations: 0 / 1.144 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.4264, allocations: 0.7593 MB / 1.145 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002909/0.4267, allocations: 235.6 kB / 1.145 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4268, allocations: 11.94 kB / 1.145 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004964/0.4273, allocations: 31.97 kB / 1.145 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.296e-05/0.4274, allocations: 27.91 kB / 1.145 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/0.4275, allocations: 19.98 kB / 1.145 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008322/0.4283, allocations: 0.6666 MB / 1.146 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4283, allocations: 0 / 1.146 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0009339/0.4293, allocations: 335.5 kB / 1.146 GB, free: 8.934 MB / 0.9044 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.002062/0.4313, allocations: 1.593 MB / 1.148 GB, free: 7.309 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000956/0.4323, allocations: 456.4 kB / 1.148 GB, free: 6.863 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4323, allocations: 3.938 kB / 1.148 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.4327, allocations: 181.6 kB / 1.148 GB, free: 6.684 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.4353, allocations: 0.6191 MB / 1.149 GB, free: 6.09 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008986/0.4443, allocations: 7.229 MB / 1.156 GB, free: 14.47 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.4448, allocations: 1.04 MB / 1.157 GB, free: 13.4 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0007412/0.4456, allocations: 195.3 kB / 1.157 GB, free: 13.21 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.446, allocations: 375.3 kB / 1.158 GB, free: 12.84 MB / 0.92 GB Notification: Performance of SimCode: time 6.21e-07/0.446, allocations: 3.938 kB / 1.158 GB, free: 12.84 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05394/0.5, allocations: 29.53 MB / 1.186 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.56/9.06, allocations: 14.88 kB / 1.186 GB, free: 15.67 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches