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.008205/0.008205, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.0018/0.0018, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.63/2.63, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3103, allocations: 151.6 MB / 1.166 GB, free: 7.273 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04564/0.3559, allocations: 41.6 MB / 1.207 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3725, allocations: 10.38 MB / 1.217 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002507/0.375, allocations: 59.69 kB / 1.217 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.3775, allocations: 0.6638 MB / 1.218 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006456/0.384, allocations: 1.971 MB / 1.22 GB, free: 404 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003902/0.3879, allocations: 1.186 MB / 1.221 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005232/0.3932, allocations: 3.403 MB / 1.224 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.395, allocations: 1.076 MB / 1.225 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003393/0.3984, allocations: 1.264 MB / 1.226 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001672/0.4001, allocations: 0.8867 MB / 1.227 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003295/0.4005, allocations: 100 kB / 1.227 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002385/0.4029, allocations: 0.8578 MB / 1.228 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004739/0.4034, allocations: 287 kB / 1.228 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.4046, allocations: 0.626 MB / 1.229 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003588/0.4082, allocations: 1.931 MB / 1.231 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.932e-06/0.4082, allocations: 0 / 1.231 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.784e-06/0.4082, allocations: 0 / 1.231 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.617e-05/0.4082, allocations: 0 / 1.231 GB, free: 4.762 MB / 0.9825 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.003304/0.4116, allocations: 1.556 MB / 1.232 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4116, allocations: 8.031 kB / 1.232 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000228/0.4118, allocations: 114.7 kB / 1.233 GB, free: 3.02 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004751/0.4123, allocations: 148 kB / 1.233 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.4145, allocations: 1.116 MB / 1.234 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.335e-05/0.4146, allocations: 54 kB / 1.234 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.4147, allocations: 72 kB / 1.234 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.4163, allocations: 0.7866 MB / 1.235 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.4163, allocations: 4 kB / 1.235 GB, free: 0.7695 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.071e-05/0.4164, allocations: 24 kB / 1.235 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.812e-05/0.4165, allocations: 28 kB / 1.235 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.4177, allocations: 0.5672 MB / 1.235 GB, free: 152 kB / 0.9825 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.005099/0.4228, allocations: 3.56 MB / 1.239 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007272/0.4235, allocations: 262.4 kB / 1.239 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.4239, allocations: 180.7 kB / 1.239 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006407/0.4246, allocations: 0.6571 MB / 1.24 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.4246, allocations: 38.56 kB / 1.24 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.4246, allocations: 0 / 1.24 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001312/0.4259, allocations: 0.5216 MB / 1.24 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.426, allocations: 63.34 kB / 1.24 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.4272, allocations: 0.9417 MB / 1.241 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.4273, allocations: 33.7 kB / 1.241 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004248/0.4277, allocations: 0.5043 MB / 1.242 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.4279, allocations: 111 kB / 1.242 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.4281, allocations: 118.1 kB / 1.242 GB, free: 8.719 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4282, allocations: 325.9 kB / 1.242 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/0.4286, allocations: 169 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.4291, allocations: 354.8 kB / 1.243 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008473/0.4299, allocations: 0.4993 MB / 1.243 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.43, allocations: 0 / 1.243 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001248/0.4312, allocations: 0.6335 MB / 1.244 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.4312, allocations: 8 kB / 1.244 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.4313, allocations: 4 kB / 1.244 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4313, allocations: 8 kB / 1.244 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.4317, allocations: 123.8 kB / 1.244 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.4318, allocations: 11.94 kB / 1.244 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.4325, allocations: 87.56 kB / 1.244 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.4326, allocations: 35.92 kB / 1.244 GB, free: 6.32 MB / 0.9981 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.0003774/0.433, allocations: 273.9 kB / 1.245 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.4332, allocations: 107.3 kB / 1.245 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.4343, allocations: 492.2 kB / 1.245 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.4343, allocations: 7.984 kB / 1.245 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4343, allocations: 0 / 1.245 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007594/0.4351, allocations: 445.5 kB / 1.246 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/0.4375, allocations: 1.375 MB / 1.247 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4375, allocations: 0 / 1.247 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/0.4378, allocations: 75.83 kB / 1.247 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.4379, allocations: 4 kB / 1.247 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.4379, allocations: 16.14 kB / 1.247 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.4379, allocations: 4 kB / 1.247 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4379, allocations: 0 / 1.247 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.4393, allocations: 0.7677 MB / 1.248 GB, free: 2.637 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004135/0.4397, allocations: 236.3 kB / 1.248 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001865/0.4399, allocations: 8 kB / 1.248 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005728/0.4405, allocations: 36.02 kB / 1.248 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/0.4405, allocations: 23.97 kB / 1.248 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.4406, allocations: 19.98 kB / 1.248 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009257/0.4415, allocations: 0.6549 MB / 1.249 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.4415, allocations: 0 / 1.249 GB, free: 1.637 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001165/0.4427, allocations: 343.2 kB / 1.249 GB, free: 1.301 MB / 0.9981 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.6372/1.08, allocations: 1.602 MB / 1.251 GB, free: 81.79 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001342/1.081, allocations: 413.8 kB / 1.251 GB, free: 81.79 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.081, allocations: 0.8438 kB / 1.251 GB, free: 81.79 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004687/1.082, allocations: 189.4 kB / 1.251 GB, free: 81.79 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003099/1.085, allocations: 0.6119 MB / 1.252 GB, free: 81.74 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/1.097, allocations: 6.842 MB / 1.258 GB, free: 78.77 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/1.098, allocations: 1.036 MB / 1.259 GB, free: 78.05 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009851/1.099, allocations: 199.2 kB / 1.26 GB, free: 78.03 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/1.099, allocations: 372.9 kB / 1.26 GB, free: 77.76 MB / 0.9981 GB Notification: Performance of SimCode: time 6.71e-07/1.099, allocations: 2.516 kB / 1.26 GB, free: 77.76 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06646/1.166, allocations: 29.75 MB / 1.289 GB, free: 70.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.6/10.77, allocations: 22.66 kB / 1.289 GB, free: 70.89 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_10_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_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.csv","/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