Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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.0015/0.0015, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001243/0.001243, allocations: 187.5 kB / 16.25 MB, free: 6.621 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.36/1.36, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.643/2.643, allocations: 461.9 MB / 0.7344 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.05 kB / 0.8987 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2578, allocations: 157.4 MB / 1.052 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1361/0.3939, allocations: 146.9 MB / 1.196 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.3955, allocations: 1.129 MB / 1.197 GB, free: 4 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3957, allocations: 3.938 kB / 1.197 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.3961, allocations: 43.8 kB / 1.197 GB, free: 3.953 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000884/0.397, allocations: 286.9 kB / 1.197 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.3974, allocations: 151.5 kB / 1.197 GB, free: 3.523 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004782/0.3979, allocations: 223.3 kB / 1.198 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.3981, allocations: 57.31 kB / 1.198 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.3982, allocations: 51.78 kB / 1.198 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.3983, allocations: 63.75 kB / 1.198 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.3983, allocations: 12 kB / 1.198 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005575/0.3989, allocations: 387.2 kB / 1.198 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.303e-05/0.399, allocations: 31.86 kB / 1.198 GB, free: 2.715 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.926e-05/0.399, allocations: 63.66 kB / 1.198 GB, free: 2.652 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004677/0.3995, allocations: 295.2 kB / 1.199 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3995, allocations: 0 / 1.199 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3995, allocations: 0 / 1.199 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.3995, allocations: 4 kB / 1.199 GB, free: 2.359 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007194/0.4003, allocations: 474.8 kB / 1.199 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.4003, allocations: 12.62 kB / 1.199 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.623e-05/0.4004, allocations: 38.73 kB / 1.199 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/0.4007, allocations: 40.72 kB / 1.199 GB, free: 1.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.401, allocations: 217.7 kB / 1.199 GB, free: 1.5 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.401, allocations: 11.98 kB / 1.199 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.401, allocations: 8 kB / 1.199 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.4013, allocations: 122.9 kB / 1.199 GB, free: 1.355 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4013, allocations: 3.938 kB / 1.199 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.4013, allocations: 4 kB / 1.199 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4013, allocations: 4 kB / 1.199 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002477/0.4016, allocations: 87.94 kB / 1.2 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.4023, allocations: 460.1 kB / 1.2 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.4025, allocations: 86.55 kB / 1.2 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.4026, allocations: 40.94 kB / 1.2 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.4027, allocations: 7.938 kB / 1.2 GB, free: 0.6133 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.4027, allocations: 34.56 kB / 1.2 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.4027, allocations: 0 / 1.2 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004415/0.4031, allocations: 141.5 kB / 1.2 GB, free: 436 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.4032, allocations: 55.34 kB / 1.2 GB, free: 368 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.4034, allocations: 190.9 kB / 1.201 GB, free: 168 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.4034, allocations: 25.7 kB / 1.201 GB, free: 136 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.264e-05/0.4035, allocations: 119.9 kB / 1.201 GB, free: 12 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.4035, allocations: 23.81 kB / 1.201 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/0.4036, allocations: 25.7 kB / 1.201 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4037, allocations: 326.8 kB / 1.201 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.4038, allocations: 27.98 kB / 1.201 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.402e-05/0.4039, allocations: 39.91 kB / 1.201 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.4041, allocations: 72.83 kB / 1.201 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4041, allocations: 0 / 1.201 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002597/0.4044, allocations: 113.5 kB / 1.201 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.4044, allocations: 8 kB / 1.201 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4044, allocations: 0 / 1.201 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.4044, allocations: 4 kB / 1.201 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4046, allocations: 19.92 kB / 1.201 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.4046, allocations: 0 / 1.201 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.4047, allocations: 19.84 kB / 1.201 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.4047, allocations: 0 / 1.201 GB, free: 15.32 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * 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.0001053/0.4048, allocations: 125.8 kB / 1.201 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.4049, allocations: 15.81 kB / 1.201 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003133/0.4052, allocations: 123 kB / 1.202 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.4052, allocations: 0 / 1.202 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.4052, allocations: 3.938 kB / 1.202 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4052, allocations: 3.984 kB / 1.202 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002176/0.4054, allocations: 225.5 kB / 1.202 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4054, allocations: 0 / 1.202 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.4055, allocations: 19.92 kB / 1.202 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.4056, allocations: 0 / 1.202 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.4056, allocations: 0 / 1.202 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4056, allocations: 0 / 1.202 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4056, allocations: 8 kB / 1.202 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.4059, allocations: 199.4 kB / 1.202 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.4059, allocations: 100.9 kB / 1.202 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.406, allocations: 0 / 1.202 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.4061, allocations: 7.938 kB / 1.202 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.4061, allocations: 11.98 kB / 1.202 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.4062, allocations: 4 kB / 1.202 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001038/0.4063, allocations: 139.2 kB / 1.202 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.7e-07/0.4063, allocations: 0 / 1.202 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002454/0.4065, allocations: 24 kB / 1.202 GB, free: 14.23 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.0006162/0.4071, allocations: 0.754 MB / 1.203 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.4074, allocations: 83.95 kB / 1.203 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4074, allocations: 0 / 1.203 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.4076, allocations: 39.97 kB / 1.203 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.408, allocations: 35.92 kB / 1.203 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.4101, allocations: 1.774 MB / 1.205 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.4104, allocations: 0.7119 MB / 1.206 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.828e-05/0.4105, allocations: 8.875 kB / 1.206 GB, free: 10.69 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.144e-05/0.4106, allocations: 35.44 kB / 1.206 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of SimCode: time 2.81e-07/0.4106, allocations: 0 / 1.206 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.687/3.097, allocations: 3.021 MB / 1.209 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/3.097, allocations: 223.6 kB / 1.209 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/5.762, allocations: 3.5 kB / 1.209 GB, free: 7.559 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches