Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_11_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.006776/0.006776, allocations: 96.95 kB / 15.73 MB, free: 6.055 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.001811/0.001811, allocations: 194.3 kB / 16.67 MB, free: 5.977 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.851/2.851, allocations: 469.8 MB / 0.7425 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 63.89 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2782, allocations: 159.1 MB / 1.22 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.5508/0.829, allocations: 41.58 MB / 1.261 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01129/0.8403, allocations: 10.4 MB / 1.271 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.8418, allocations: 64.88 kB / 1.271 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.8432, allocations: 0.6467 MB / 1.272 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004055/0.8473, allocations: 1.874 MB / 1.273 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002582/0.8499, allocations: 1.187 MB / 1.275 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004376/0.8543, allocations: 3.395 MB / 1.278 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00159/0.8559, allocations: 1.053 MB / 1.279 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.8587, allocations: 1.231 MB / 1.28 GB, free: 1.707 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.8602, allocations: 0.8828 MB / 1.281 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002235/0.8605, allocations: 99.97 kB / 1.281 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002201/0.8627, allocations: 0.8607 MB / 1.282 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002586/0.863, allocations: 276.4 kB / 1.282 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005703/0.8635, allocations: 0.631 MB / 1.283 GB, free: 412 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002709/0.8662, allocations: 1.936 MB / 1.285 GB, free: 15.67 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.8663, allocations: 0 / 1.285 GB, free: 15.67 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8663, allocations: 0 / 1.285 GB, free: 15.67 MB / 1.014 GB Notification: Performance of Transformations before backend: time 2.086e-05/0.8663, allocations: 0 / 1.285 GB, free: 15.67 MB / 1.014 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.002602/0.8689, allocations: 1.557 MB / 1.286 GB, free: 14.59 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.8689, allocations: 9.688 kB / 1.286 GB, free: 14.59 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/0.8691, allocations: 116.3 kB / 1.286 GB, free: 14.51 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003769/0.8695, allocations: 139 kB / 1.287 GB, free: 14.44 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.8713, allocations: 1.112 MB / 1.288 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.372e-05/0.8714, allocations: 56.78 kB / 1.288 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.8715, allocations: 72.03 kB / 1.288 GB, free: 13.73 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.873, allocations: 0.7894 MB / 1.288 GB, free: 13.35 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.873, allocations: 1.5 kB / 1.288 GB, free: 13.35 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.359e-05/0.8731, allocations: 30.88 kB / 1.289 GB, free: 13.33 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-05/0.8731, allocations: 24.02 kB / 1.289 GB, free: 13.32 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.8743, allocations: 0.566 MB / 1.289 GB, free: 13.13 MB / 1.014 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.004341/0.8787, allocations: 3.563 MB / 1.293 GB, free: 10.53 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.8793, allocations: 273.3 kB / 1.293 GB, free: 10.42 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/0.8797, allocations: 177.8 kB / 1.293 GB, free: 10.36 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000577/0.8803, allocations: 0.6624 MB / 1.294 GB, free: 9.594 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.8803, allocations: 37.75 kB / 1.294 GB, free: 9.551 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/0.8803, allocations: 1.375 kB / 1.294 GB, free: 9.551 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.001239/0.8816, allocations: 0.5137 MB / 1.294 GB, free: 9.352 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.8816, allocations: 58.75 kB / 1.294 GB, free: 9.285 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.8829, allocations: 0.9452 MB / 1.295 GB, free: 8.887 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.8829, allocations: 33.16 kB / 1.295 GB, free: 8.852 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/0.8834, allocations: 0.5004 MB / 1.296 GB, free: 8.445 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.8835, allocations: 119.8 kB / 1.296 GB, free: 8.352 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.8837, allocations: 119.2 kB / 1.296 GB, free: 8.285 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.8839, allocations: 333.3 kB / 1.296 GB, free: 7.965 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.8843, allocations: 166 kB / 1.296 GB, free: 7.91 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.8848, allocations: 352.4 kB / 1.297 GB, free: 7.641 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009033/0.8857, allocations: 0.5099 MB / 1.297 GB, free: 7.293 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.8857, allocations: 1.188 kB / 1.297 GB, free: 7.293 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001201/0.8869, allocations: 0.625 MB / 1.298 GB, free: 7.027 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.887, allocations: 8.25 kB / 1.298 GB, free: 7.027 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.887, allocations: 5.281 kB / 1.298 GB, free: 7.027 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.887, allocations: 7.469 kB / 1.298 GB, free: 7.027 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/0.8875, allocations: 123.1 kB / 1.298 GB, free: 7.016 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.8875, allocations: 13.59 kB / 1.298 GB, free: 7.012 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006481/0.8881, allocations: 89.91 kB / 1.298 GB, free: 6.961 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/0.8882, allocations: 29.2 kB / 1.298 GB, free: 6.953 MB / 1.014 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.0003568/0.8886, allocations: 280.3 kB / 1.298 GB, free: 6.742 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.8887, allocations: 103.6 kB / 1.298 GB, free: 6.688 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.8898, allocations: 495.4 kB / 1.299 GB, free: 6.488 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.8898, allocations: 4.172 kB / 1.299 GB, free: 6.488 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.8898, allocations: 0.7969 kB / 1.299 GB, free: 6.488 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007874/0.8906, allocations: 452.2 kB / 1.299 GB, free: 6.234 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.8928, allocations: 1.362 MB / 1.301 GB, free: 5.496 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.8928, allocations: 1.156 kB / 1.301 GB, free: 5.496 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000339/0.8932, allocations: 77.5 kB / 1.301 GB, free: 5.488 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.8932, allocations: 7.625 kB / 1.301 GB, free: 5.484 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.095e-05/0.8932, allocations: 17.41 kB / 1.301 GB, free: 5.473 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.8933, allocations: 3.234 kB / 1.301 GB, free: 5.473 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.8933, allocations: 1.406 kB / 1.301 GB, free: 5.473 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.8946, allocations: 0.7636 MB / 1.302 GB, free: 5.066 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.895, allocations: 237.1 kB / 1.302 GB, free: 4.875 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.8951, allocations: 8.594 kB / 1.302 GB, free: 4.871 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005264/0.8956, allocations: 35.55 kB / 1.302 GB, free: 4.859 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-05/0.8957, allocations: 25.03 kB / 1.302 GB, free: 4.855 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.302e-05/0.8958, allocations: 21.25 kB / 1.302 GB, free: 4.852 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009047/0.8967, allocations: 0.6578 MB / 1.303 GB, free: 4.566 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8967, allocations: 0 / 1.303 GB, free: 4.566 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001011/0.8977, allocations: 338.2 kB / 1.303 GB, free: 4.492 MB / 1.014 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.00236/0.9001, allocations: 1.606 MB / 1.304 GB, free: 3.441 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009115/0.901, allocations: 425.6 kB / 1.305 GB, free: 3.312 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.901, allocations: 1.125 kB / 1.305 GB, free: 3.312 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004085/0.9014, allocations: 191.4 kB / 1.305 GB, free: 3.254 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/0.9042, allocations: 0.6071 MB / 1.306 GB, free: 3.066 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.9142, allocations: 6.845 MB / 1.312 GB, free: 15.33 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.915, allocations: 1.045 MB / 1.313 GB, free: 14.59 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0008007/0.9158, allocations: 195.5 kB / 1.313 GB, free: 14.54 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/0.9163, allocations: 375.8 kB / 1.314 GB, free: 14.27 MB / 1.029 GB Notification: Performance of SimCode: time 7.21e-07/0.9163, allocations: 0 / 1.314 GB, free: 14.27 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06465/0.981, allocations: 29.75 MB / 1.343 GB, free: 3.32 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.751/10.73, allocations: 9.344 kB / 1.343 GB, free: 3.312 MB / 1.029 GB (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches