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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001171/0.001171, allocations: 111.9 kB / 15.61 MB, free: 140 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.00127/0.00127, allocations: 199.7 kB / 16.54 MB, free: 6.691 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6647 GB, free: 456 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00244/0.00244, allocations: 63.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6153/0.6177, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04593/0.6637, allocations: 41.59 MB / 0.9903 GB, free: 7.719 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01626/0.68, allocations: 10.4 MB / 1 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002553/0.6826, allocations: 55.69 kB / 1.001 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.6849, allocations: 0.6326 MB / 1.001 GB, free: 13 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005604/0.6906, allocations: 1.881 MB / 1.003 GB, free: 11.11 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.003156/0.6937, allocations: 1.179 MB / 1.004 GB, free: 9.945 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004856/0.6986, allocations: 3.387 MB / 1.007 GB, free: 6.551 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002162/0.7008, allocations: 1.066 MB / 1.008 GB, free: 5.469 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003658/0.7045, allocations: 1.227 MB / 1.01 GB, free: 4.242 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.7063, allocations: 0.8866 MB / 1.011 GB, free: 3.352 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0004109/0.7068, allocations: 100 kB / 1.011 GB, free: 3.254 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.7092, allocations: 0.8578 MB / 1.011 GB, free: 2.395 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0004969/0.7097, allocations: 271 kB / 1.012 GB, free: 2.129 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.7109, allocations: 0.626 MB / 1.012 GB, free: 1.5 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003189/0.7141, allocations: 1.909 MB / 1.014 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.7141, allocations: 7.938 kB / 1.014 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7141, allocations: 3.938 kB / 1.014 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.871e-05/0.7142, allocations: 0 / 1.014 GB, free: 15.57 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.002661/0.7169, allocations: 1.507 MB / 1.016 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.7169, allocations: 11.97 kB / 1.016 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.717, allocations: 114.7 kB / 1.016 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/0.7174, allocations: 139.4 kB / 1.016 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.719, allocations: 1.045 MB / 1.017 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.7191, allocations: 58 kB / 1.017 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.716e-05/0.7192, allocations: 64 kB / 1.017 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.7205, allocations: 0.8022 MB / 1.018 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.7205, allocations: 0 / 1.018 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.7206, allocations: 28 kB / 1.018 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.7206, allocations: 19.94 kB / 1.018 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.7217, allocations: 0.575 MB / 1.018 GB, free: 11.08 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.004097/0.7259, allocations: 3.563 MB / 1.022 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006084/0.7265, allocations: 260.2 kB / 1.022 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.7269, allocations: 183.4 kB / 1.022 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005548/0.7274, allocations: 0.6648 MB / 1.023 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.7275, allocations: 42.56 kB / 1.023 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=31): time 1.953e-06/0.7275, allocations: 0 / 1.023 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31): time 0.001212/0.7287, allocations: 0.508 MB / 1.024 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.7287, allocations: 55.41 kB / 1.024 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.7299, allocations: 0.9533 MB / 1.025 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.73, allocations: 37.7 kB / 1.025 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/0.7304, allocations: 495.6 kB / 1.025 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.7305, allocations: 114.4 kB / 1.025 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.7307, allocations: 118.1 kB / 1.025 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.7308, allocations: 325.9 kB / 1.026 GB, free: 3.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000368/0.7312, allocations: 169 kB / 1.026 GB, free: 3.172 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/0.7317, allocations: 354.9 kB / 1.026 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008374/0.7325, allocations: 0.5069 MB / 1.027 GB, free: 2.172 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.7326, allocations: 4 kB / 1.027 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001151/0.7337, allocations: 0.6136 MB / 1.027 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.7337, allocations: 8 kB / 1.027 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.7338, allocations: 11.92 kB / 1.027 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.7338, allocations: 8 kB / 1.027 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.7342, allocations: 123.8 kB / 1.027 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.7342, allocations: 8 kB / 1.027 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.7348, allocations: 87.12 kB / 1.027 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.7349, allocations: 35.95 kB / 1.027 GB, free: 1.27 MB / 0.7794 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.0003389/0.7352, allocations: 273.6 kB / 1.028 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.7354, allocations: 102.7 kB / 1.028 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009634/0.7364, allocations: 487.2 kB / 1.028 GB, free: 420 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.7364, allocations: 4 kB / 1.028 GB, free: 416 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.7364, allocations: 64 / 1.028 GB, free: 416 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007317/0.7371, allocations: 453.5 kB / 1.029 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.7392, allocations: 1.362 MB / 1.03 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.7392, allocations: 0 / 1.03 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/0.7395, allocations: 83.83 kB / 1.03 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.7396, allocations: 4.156 kB / 1.03 GB, free: 14.41 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.7396, allocations: 8 kB / 1.03 GB, free: 14.41 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.7396, allocations: 4 kB / 1.03 GB, free: 14.4 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.7396, allocations: 3.984 kB / 1.03 GB, free: 14.4 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.7409, allocations: 0.7593 MB / 1.031 GB, free: 13.61 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.7412, allocations: 231.7 kB / 1.031 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.7413, allocations: 8 kB / 1.031 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005303/0.7419, allocations: 36.03 kB / 1.031 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.742, allocations: 31.89 kB / 1.031 GB, free: 13.29 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.742, allocations: 12 kB / 1.031 GB, free: 13.28 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008665/0.7429, allocations: 0.6627 MB / 1.032 GB, free: 12.61 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7429, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0009554/0.7438, allocations: 335.5 kB / 1.032 GB, free: 12.28 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.002248/0.7461, allocations: 1.597 MB / 1.034 GB, free: 10.64 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009525/0.7471, allocations: 463.8 kB / 1.034 GB, free: 10.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.7471, allocations: 4 kB / 1.034 GB, free: 10.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003754/0.7475, allocations: 177.5 kB / 1.034 GB, free: 10.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.7502, allocations: 0.6187 MB / 1.035 GB, free: 9.422 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.7605, allocations: 7.229 MB / 1.042 GB, free: 1.785 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/0.7612, allocations: 1.036 MB / 1.043 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0008182/0.762, allocations: 198.4 kB / 1.043 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004519/0.7625, allocations: 371.3 kB / 1.044 GB, free: 164 kB / 0.795 GB Notification: Performance of SimCode: time 4.91e-07/0.7625, allocations: 0 / 1.044 GB, free: 164 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05748/0.82, allocations: 29.54 MB / 1.072 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/9.049, allocations: 10.77 kB / 1.072 GB, free: 3.02 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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