Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.EightPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",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.006864/0.006864, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001628/0.001628, allocations: 187.8 kB / 16.67 MB, free: 5.918 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.713/2.713, allocations: 469.4 MB / 0.7422 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 64.12 kB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3081, allocations: 159.1 MB / 1.22 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.6774/0.9856, allocations: 77.18 MB / 1.295 GB, free: 5.238 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02937/1.015, allocations: 18.88 MB / 1.314 GB, free: 7.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005004/1.02, allocations: 114.2 kB / 1.314 GB, free: 7.617 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.004266/1.024, allocations: 1.285 MB / 1.315 GB, free: 6.828 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01245/1.037, allocations: 3.817 MB / 1.319 GB, free: 4.566 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.007248/1.044, allocations: 2.092 MB / 1.321 GB, free: 3.395 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01248/1.057, allocations: 6.703 MB / 1.327 GB, free: 164 kB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004701/1.061, allocations: 2.083 MB / 1.329 GB, free: 15.18 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007978/1.069, allocations: 2.381 MB / 1.332 GB, free: 14.06 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004163/1.074, allocations: 1.765 MB / 1.333 GB, free: 13.24 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0008866/1.074, allocations: 199.5 kB / 1.334 GB, free: 13.24 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005963/1.08, allocations: 1.616 MB / 1.335 GB, free: 12.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001275/1.082, allocations: 0.5388 MB / 1.336 GB, free: 12.25 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003812/1.086, allocations: 1.249 MB / 1.337 GB, free: 11.49 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01021/1.096, allocations: 3.741 MB / 1.34 GB, free: 10.07 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/1.096, allocations: 5.094 kB / 1.34 GB, free: 10.07 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.345e-06/1.096, allocations: 0 / 1.34 GB, free: 10.07 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0001569/1.096, allocations: 0 / 1.34 GB, free: 10.07 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.008501/1.105, allocations: 2.787 MB / 1.343 GB, free: 8.266 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.105, allocations: 13.47 kB / 1.343 GB, free: 8.262 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005206/1.105, allocations: 203.2 kB / 1.343 GB, free: 8.133 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/1.106, allocations: 278.9 kB / 1.344 GB, free: 8 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/1.111, allocations: 2.036 MB / 1.346 GB, free: 6.875 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/1.112, allocations: 108.6 kB / 1.346 GB, free: 6.824 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003661/1.112, allocations: 146.6 kB / 1.346 GB, free: 6.777 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004467/1.116, allocations: 1.515 MB / 1.347 GB, free: 6.066 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.321e-05/1.117, allocations: 6.594 kB / 1.347 GB, free: 6.062 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/1.117, allocations: 59.38 kB / 1.347 GB, free: 6.02 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.08e-05/1.117, allocations: 37.12 kB / 1.347 GB, free: 6.02 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/1.12, allocations: 1.126 MB / 1.349 GB, free: 5.578 MB / 1.045 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.01046/1.13, allocations: 7.619 MB / 1.356 GB, free: 14.71 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/1.131, allocations: 484.8 kB / 1.356 GB, free: 14.47 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006499/1.132, allocations: 333.3 kB / 1.357 GB, free: 14.31 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008365/1.133, allocations: 1.156 MB / 1.358 GB, free: 12.96 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/1.133, allocations: 43.66 kB / 1.358 GB, free: 12.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=59): time 3.116e-06/1.133, allocations: 0 / 1.358 GB, free: 12.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=59): time 0.002653/1.135, allocations: 0.9737 MB / 1.359 GB, free: 12.43 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/1.135, allocations: 57.44 kB / 1.359 GB, free: 12.37 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003381/1.139, allocations: 1.787 MB / 1.361 GB, free: 11.38 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001314/1.139, allocations: 47.89 kB / 1.361 GB, free: 11.33 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009081/1.14, allocations: 0.9437 MB / 1.362 GB, free: 10.49 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002745/1.14, allocations: 224.1 kB / 1.362 GB, free: 10.3 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003719/1.141, allocations: 229.1 kB / 1.362 GB, free: 10.16 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.141, allocations: 352.7 kB / 1.362 GB, free: 9.824 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007907/1.141, allocations: 323.8 kB / 1.363 GB, free: 9.672 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/1.143, allocations: 0.6875 MB / 1.363 GB, free: 9.055 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/1.144, allocations: 1.02 MB / 1.364 GB, free: 8.273 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/1.144, allocations: 2.781 kB / 1.364 GB, free: 8.273 MB / 1.061 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002796/1.147, allocations: 1.222 MB / 1.366 GB, free: 7.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/1.147, allocations: 9.656 kB / 1.366 GB, free: 7.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/1.147, allocations: 9.5 kB / 1.366 GB, free: 7.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/1.147, allocations: 16.66 kB / 1.366 GB, free: 7.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/1.148, allocations: 300.5 kB / 1.366 GB, free: 7.574 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.278e-05/1.148, allocations: 19.38 kB / 1.366 GB, free: 7.57 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/1.15, allocations: 161.6 kB / 1.366 GB, free: 7.465 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/1.15, allocations: 63.69 kB / 1.366 GB, free: 7.441 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.000836/1.151, allocations: 437.6 kB / 1.367 GB, free: 7.129 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006688/1.152, allocations: 208.8 kB / 1.367 GB, free: 7.016 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/1.154, allocations: 0.8595 MB / 1.368 GB, free: 6.535 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/1.154, allocations: 7.594 kB / 1.368 GB, free: 6.535 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.154, allocations: 0 / 1.368 GB, free: 6.535 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001398/1.155, allocations: 0.7955 MB / 1.368 GB, free: 6.004 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005285/1.161, allocations: 2.458 MB / 1.371 GB, free: 4.27 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/1.161, allocations: 10.16 kB / 1.371 GB, free: 4.262 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000798/1.161, allocations: 182.4 kB / 1.371 GB, free: 4.207 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.188e-05/1.161, allocations: 4.219 kB / 1.371 GB, free: 4.207 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-05/1.162, allocations: 15.56 kB / 1.371 GB, free: 4.199 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.497e-06/1.162, allocations: 8.375 kB / 1.371 GB, free: 4.195 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.162, allocations: 11.03 kB / 1.371 GB, free: 4.188 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00272/1.164, allocations: 1.338 MB / 1.372 GB, free: 3.395 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001021/1.165, allocations: 376.4 kB / 1.373 GB, free: 3.078 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005704/1.166, allocations: 13.5 kB / 1.373 GB, free: 3.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/1.167, allocations: 72.66 kB / 1.373 GB, free: 3.027 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/1.167, allocations: 55.81 kB / 1.373 GB, free: 2.996 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-05/1.168, allocations: 33.97 kB / 1.373 GB, free: 2.984 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002254/1.17, allocations: 1.238 MB / 1.374 GB, free: 2.297 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.11e-07/1.17, allocations: 1.312 kB / 1.374 GB, free: 2.297 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002628/1.172, allocations: 0.6622 MB / 1.375 GB, free: 2.129 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.004323/1.177, allocations: 2.4 MB / 1.377 GB, free: 0.582 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001784/1.179, allocations: 0.8166 MB / 1.378 GB, free: 228 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/1.179, allocations: 3.938 kB / 1.378 GB, free: 224 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006916/1.179, allocations: 354 kB / 1.378 GB, free: 72 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00617/1.185, allocations: 1.195 MB / 1.379 GB, free: 15.44 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02087/1.206, allocations: 12.63 MB / 1.392 GB, free: 4.305 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/1.208, allocations: 1.405 MB / 1.393 GB, free: 2.867 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001873/1.209, allocations: 374.8 kB / 1.393 GB, free: 2.504 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/1.211, allocations: 0.7726 MB / 1.394 GB, free: 1.73 MB / 1.076 GB Notification: Performance of SimCode: time 9.42e-07/1.211, allocations: 0 / 1.394 GB, free: 1.73 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/1.313, allocations: 57.6 MB / 1.45 GB, free: 8.781 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.95, allocations: 9.172 kB / 1.45 GB, free: 8.773 MB / 1.139 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_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_EightPortHeatMassExchanger.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches