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.007914/0.007914, allocations: 102.8 kB / 15.73 MB, free: 6.031 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.001629/0.001629, allocations: 195.8 kB / 16.68 MB, free: 5.953 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.572/2.572, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.91 kB / 1.054 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7955/0.797, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04532/0.8423, allocations: 41.57 MB / 1.248 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0143/0.8567, allocations: 10.4 MB / 1.258 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00187/0.8586, allocations: 59.62 kB / 1.258 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.861, allocations: 0.6443 MB / 1.259 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.005641/0.8666, allocations: 1.884 MB / 1.261 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003146/0.8698, allocations: 1.191 MB / 1.262 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004542/0.8744, allocations: 3.394 MB / 1.265 GB, free: 2.184 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001715/0.8761, allocations: 1.058 MB / 1.266 GB, free: 1.109 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003342/0.8795, allocations: 1.262 MB / 1.267 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001587/0.8811, allocations: 0.8983 MB / 1.268 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002853/0.8814, allocations: 100 kB / 1.268 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002289/0.8837, allocations: 0.8617 MB / 1.269 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003612/0.884, allocations: 271 kB / 1.269 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0009654/0.885, allocations: 0.6337 MB / 1.27 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003698/0.8887, allocations: 1.928 MB / 1.272 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.8887, allocations: 0 / 1.272 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.595e-06/0.8888, allocations: 0 / 1.272 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.956e-05/0.8888, allocations: 0 / 1.272 GB, free: 11.15 MB / 0.9981 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.003586/0.8924, allocations: 1.512 MB / 1.273 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.8925, allocations: 8.031 kB / 1.273 GB, free: 9.582 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.8926, allocations: 114.7 kB / 1.273 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004192/0.8931, allocations: 135.4 kB / 1.274 GB, free: 9.328 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002004/0.8951, allocations: 1.103 MB / 1.275 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/0.8951, allocations: 53.98 kB / 1.275 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.8953, allocations: 75.91 kB / 1.275 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.8967, allocations: 0.7905 MB / 1.276 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.8967, allocations: 4 kB / 1.276 GB, free: 7.223 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.8968, allocations: 31.98 kB / 1.276 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.144e-05/0.8968, allocations: 23.94 kB / 1.276 GB, free: 7.168 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.898, allocations: 0.575 MB / 1.276 GB, free: 6.594 MB / 0.9981 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.004321/0.9023, allocations: 3.544 MB / 1.28 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.9029, allocations: 262.4 kB / 1.28 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003435/0.9033, allocations: 176.8 kB / 1.28 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005354/0.9038, allocations: 0.6532 MB / 1.281 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.9038, allocations: 38.56 kB / 1.281 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 3.887e-06/0.9039, allocations: 4 kB / 1.281 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001259/0.9051, allocations: 0.5168 MB / 1.281 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.9052, allocations: 55.41 kB / 1.281 GB, free: 0.9375 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.9064, allocations: 0.9456 MB / 1.282 GB, free: 15.97 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.9065, allocations: 37.7 kB / 1.282 GB, free: 15.93 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003864/0.9069, allocations: 0.4956 MB / 1.283 GB, free: 15.43 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.907, allocations: 114.4 kB / 1.283 GB, free: 15.32 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.9072, allocations: 114 kB / 1.283 GB, free: 15.2 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.9073, allocations: 329.9 kB / 1.283 GB, free: 14.87 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.9077, allocations: 165 kB / 1.283 GB, free: 14.71 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.9082, allocations: 354.9 kB / 1.284 GB, free: 14.29 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008421/0.9091, allocations: 0.507 MB / 1.284 GB, free: 13.71 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.9091, allocations: 4 kB / 1.284 GB, free: 13.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001214/0.9103, allocations: 0.6137 MB / 1.285 GB, free: 13.09 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.9103, allocations: 8 kB / 1.285 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.9103, allocations: 8 kB / 1.285 GB, free: 13.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.9104, allocations: 8 kB / 1.285 GB, free: 13.06 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004358/0.9108, allocations: 123.8 kB / 1.285 GB, free: 12.94 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.9108, allocations: 8 kB / 1.285 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006347/0.9115, allocations: 83.19 kB / 1.285 GB, free: 12.85 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.416e-05/0.9115, allocations: 31.92 kB / 1.285 GB, free: 12.82 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.0003948/0.9119, allocations: 281.6 kB / 1.285 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.9122, allocations: 98.78 kB / 1.285 GB, free: 12.44 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.9133, allocations: 482 kB / 1.286 GB, free: 11.96 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/0.9133, allocations: 4 kB / 1.286 GB, free: 11.95 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.9133, allocations: 0 / 1.286 GB, free: 11.95 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007748/0.9141, allocations: 465.2 kB / 1.286 GB, free: 11.47 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.9164, allocations: 1.367 MB / 1.288 GB, free: 10.03 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.9164, allocations: 4 kB / 1.288 GB, free: 10.03 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.9168, allocations: 79.83 kB / 1.288 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.9168, allocations: 3.938 kB / 1.288 GB, free: 9.945 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.9169, allocations: 11.98 kB / 1.288 GB, free: 9.934 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.9169, allocations: 8.062 kB / 1.288 GB, free: 9.926 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.9169, allocations: 7.938 kB / 1.288 GB, free: 9.918 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.9184, allocations: 0.7565 MB / 1.289 GB, free: 9.133 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.9188, allocations: 227.7 kB / 1.289 GB, free: 8.891 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001647/0.919, allocations: 8 kB / 1.289 GB, free: 8.883 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005432/0.9195, allocations: 27.97 kB / 1.289 GB, free: 8.855 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.997e-05/0.9196, allocations: 39.89 kB / 1.289 GB, free: 8.816 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-05/0.9197, allocations: 19.98 kB / 1.289 GB, free: 8.797 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001035/0.9207, allocations: 0.6549 MB / 1.29 GB, free: 8.133 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9207, allocations: 0 / 1.29 GB, free: 8.133 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001059/0.9218, allocations: 339.4 kB / 1.29 GB, free: 7.801 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.002484/0.9243, allocations: 1.582 MB / 1.291 GB, free: 6.191 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009882/0.9253, allocations: 436.7 kB / 1.292 GB, free: 5.766 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.9253, allocations: 0 / 1.292 GB, free: 5.766 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003869/0.9257, allocations: 192.5 kB / 1.292 GB, free: 5.578 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/0.9286, allocations: 0.6101 MB / 1.293 GB, free: 4.977 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.939, allocations: 6.799 MB / 1.299 GB, free: 13.88 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006843/0.9397, allocations: 1.04 MB / 1.3 GB, free: 12.81 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.000788/0.9405, allocations: 195.5 kB / 1.3 GB, free: 12.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000531/0.9411, allocations: 375.2 kB / 1.301 GB, free: 12.25 MB / 1.029 GB Notification: Performance of SimCode: time 6.51e-07/0.9411, allocations: 0 / 1.301 GB, free: 12.25 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05916/1, allocations: 30.18 MB / 1.33 GB, free: 14.48 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.438/10.44, allocations: 3.938 kB / 1.33 GB, free: 14.47 MB / 1.061 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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