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.007169/0.007169, allocations: 101.2 kB / 15.73 MB, free: 6.035 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.001794/0.001794, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.501/2.501, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 67.88 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2957, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04596/0.3417, allocations: 41.59 MB / 1.207 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0156/0.3574, allocations: 10.39 MB / 1.217 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002141/0.3596, allocations: 59.62 kB / 1.217 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.3621, allocations: 0.66 MB / 1.218 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006615/0.3687, allocations: 1.979 MB / 1.22 GB, free: 432 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003862/0.3726, allocations: 1.186 MB / 1.221 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005119/0.3777, allocations: 3.399 MB / 1.224 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002012/0.3798, allocations: 1.074 MB / 1.225 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003412/0.3832, allocations: 1.259 MB / 1.226 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.385, allocations: 0.8944 MB / 1.227 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003577/0.3854, allocations: 100 kB / 1.227 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.3878, allocations: 0.8617 MB / 1.228 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004467/0.3882, allocations: 275 kB / 1.228 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.3894, allocations: 0.6299 MB / 1.229 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.3929, allocations: 1.925 MB / 1.231 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.393, allocations: 0 / 1.231 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.944e-06/0.393, allocations: 3.938 kB / 1.231 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.928e-05/0.393, allocations: 0 / 1.231 GB, free: 4.797 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.003108/0.3962, allocations: 1.507 MB / 1.232 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3962, allocations: 11.97 kB / 1.232 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001919/0.3964, allocations: 114.7 kB / 1.232 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004503/0.3969, allocations: 135.4 kB / 1.233 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.3989, allocations: 1.107 MB / 1.234 GB, free: 1.82 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.893e-05/0.3989, allocations: 53.98 kB / 1.234 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.3991, allocations: 75.91 kB / 1.234 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.4005, allocations: 0.7905 MB / 1.235 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.4005, allocations: 4 kB / 1.235 GB, free: 0.8633 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.4006, allocations: 28 kB / 1.235 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.4006, allocations: 27.94 kB / 1.235 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.4018, allocations: 0.5633 MB / 1.235 GB, free: 248 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.004533/0.4063, allocations: 3.544 MB / 1.239 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005786/0.4069, allocations: 266.4 kB / 1.239 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003211/0.4073, allocations: 176.8 kB / 1.239 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005287/0.4078, allocations: 0.6532 MB / 1.24 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.4079, allocations: 42.56 kB / 1.24 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 2.615e-06/0.4079, allocations: 0 / 1.24 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001233/0.4091, allocations: 0.5132 MB / 1.24 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.4092, allocations: 55.41 kB / 1.24 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/0.4104, allocations: 0.9495 MB / 1.241 GB, free: 9.617 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.777e-05/0.4105, allocations: 33.7 kB / 1.241 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004046/0.4109, allocations: 0.4918 MB / 1.242 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.411, allocations: 114.4 kB / 1.242 GB, free: 8.965 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.4112, allocations: 114 kB / 1.242 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.4114, allocations: 329.9 kB / 1.242 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.4117, allocations: 169 kB / 1.242 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.4122, allocations: 354.8 kB / 1.243 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008072/0.4131, allocations: 0.5032 MB / 1.243 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.4131, allocations: 11.94 kB / 1.243 GB, free: 7.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001229/0.4143, allocations: 0.6175 MB / 1.244 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4144, allocations: 14.17 kB / 1.244 GB, free: 6.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.4144, allocations: 4 kB / 1.244 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.4144, allocations: 8 kB / 1.244 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.4149, allocations: 123.8 kB / 1.244 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.4149, allocations: 8 kB / 1.244 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007022/0.4156, allocations: 83.19 kB / 1.244 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.519e-05/0.4157, allocations: 35.98 kB / 1.244 GB, free: 6.449 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.0004329/0.4161, allocations: 274 kB / 1.244 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.4164, allocations: 102.7 kB / 1.245 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.4174, allocations: 492 kB / 1.245 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.4175, allocations: 8 kB / 1.245 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4175, allocations: 0 / 1.245 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007014/0.4182, allocations: 453.5 kB / 1.245 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.4205, allocations: 1.359 MB / 1.247 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.4206, allocations: 4 kB / 1.247 GB, free: 3.676 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.4209, allocations: 75.83 kB / 1.247 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.4209, allocations: 0 / 1.247 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.4209, allocations: 12 kB / 1.247 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.421, allocations: 8.156 kB / 1.247 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.421, allocations: 7.984 kB / 1.247 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4223, allocations: 0.7632 MB / 1.248 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003896/0.4227, allocations: 231.6 kB / 1.248 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.4229, allocations: 8 kB / 1.248 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.4234, allocations: 27.97 kB / 1.248 GB, free: 2.496 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.4235, allocations: 35.95 kB / 1.248 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.4236, allocations: 19.98 kB / 1.248 GB, free: 2.441 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001034/0.4246, allocations: 0.6549 MB / 1.249 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.4246, allocations: 0 / 1.249 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00131/0.4259, allocations: 339.5 kB / 1.249 GB, free: 1.445 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.584/1.01, allocations: 1.589 MB / 1.25 GB, free: 82.77 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001349/1.011, allocations: 416.3 kB / 1.251 GB, free: 82.77 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.011, allocations: 1.375 kB / 1.251 GB, free: 82.77 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004776/1.012, allocations: 191.8 kB / 1.251 GB, free: 82.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/1.015, allocations: 0.6095 MB / 1.252 GB, free: 82.72 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/1.026, allocations: 6.811 MB / 1.258 GB, free: 79.72 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006927/1.026, allocations: 1.037 MB / 1.259 GB, free: 79 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009754/1.027, allocations: 194.5 kB / 1.259 GB, free: 78.98 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004362/1.028, allocations: 376.5 kB / 1.26 GB, free: 78.71 MB / 0.9981 GB Notification: Performance of SimCode: time 7.21e-07/1.028, allocations: 0 / 1.26 GB, free: 78.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07565/1.104, allocations: 29.75 MB / 1.289 GB, free: 71.74 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.491/10.59, allocations: 17.03 kB / 1.289 GB, free: 71.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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