Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_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.004895/0.004895, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001095/0.001095, allocations: 192.8 kB / 16.67 MB, free: 5.52 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.28/1.28, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.036/2.036, allocations: 390.2 MB / 0.6648 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 71.89 kB / 0.9504 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.728/0.7292, allocations: 140.4 MB / 1.088 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1646/0.8939, allocations: 149 MB / 1.233 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.8953, allocations: 1.138 MB / 1.234 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.7e-05/0.8954, allocations: 2.25 kB / 1.234 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.8959, allocations: 51.02 kB / 1.234 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000806/0.8967, allocations: 315.2 kB / 1.234 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.8971, allocations: 162.8 kB / 1.235 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004917/0.8976, allocations: 217.7 kB / 1.235 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.8977, allocations: 62.86 kB / 1.235 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.935e-05/0.8978, allocations: 50.78 kB / 1.235 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.8979, allocations: 61.27 kB / 1.235 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.898, allocations: 11.62 kB / 1.235 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006731/0.8987, allocations: 370.6 kB / 1.235 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.8987, allocations: 28.44 kB / 1.235 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.8988, allocations: 72.44 kB / 1.235 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000534/0.8994, allocations: 292.4 kB / 1.236 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.8994, allocations: 0 / 1.236 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.953e-06/0.8994, allocations: 1.094 kB / 1.236 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.8994, allocations: 0 / 1.236 GB, free: 3.508 MB / 0.9669 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.0007668/0.9002, allocations: 465.5 kB / 1.236 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.9002, allocations: 9.406 kB / 1.236 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.363e-05/0.9003, allocations: 46.17 kB / 1.236 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.9006, allocations: 39.72 kB / 1.236 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.901, allocations: 209.1 kB / 1.236 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.901, allocations: 4.594 kB / 1.236 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.9011, allocations: 10.75 kB / 1.236 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002964/0.9014, allocations: 118.6 kB / 1.237 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.9014, allocations: 3.938 kB / 1.237 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.9014, allocations: 9.094 kB / 1.237 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.9014, allocations: 3.406 kB / 1.237 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002558/0.9017, allocations: 89.47 kB / 1.237 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.9023, allocations: 458.6 kB / 1.237 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.9025, allocations: 91.36 kB / 1.237 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.9027, allocations: 35.39 kB / 1.237 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.9027, allocations: 7.922 kB / 1.237 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.9027, allocations: 35.66 kB / 1.237 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.9027, allocations: 3.938 kB / 1.237 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004367/0.9032, allocations: 147.5 kB / 1.237 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.9032, allocations: 52.41 kB / 1.237 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.9034, allocations: 197.8 kB / 1.238 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.9034, allocations: 25.7 kB / 1.238 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.404e-05/0.9035, allocations: 118 kB / 1.238 GB, free: 1.609 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.9036, allocations: 23.48 kB / 1.238 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/0.9036, allocations: 18.69 kB / 1.238 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.9037, allocations: 326.3 kB / 1.238 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.9039, allocations: 32.22 kB / 1.238 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.904, allocations: 37.52 kB / 1.238 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.9042, allocations: 72.22 kB / 1.238 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9042, allocations: 1.219 kB / 1.238 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000282/0.9045, allocations: 117.1 kB / 1.238 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.9045, allocations: 5.906 kB / 1.238 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.9046, allocations: 0 / 1.238 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.9046, allocations: 1.188 kB / 1.238 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.9047, allocations: 21.86 kB / 1.238 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.9047, allocations: 0 / 1.238 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.9048, allocations: 25.89 kB / 1.238 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.9049, allocations: 1.062 kB / 1.238 GB, free: 1.07 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.0001103/0.905, allocations: 123.5 kB / 1.239 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.905, allocations: 13.62 kB / 1.239 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000328/0.9054, allocations: 118.9 kB / 1.239 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.9054, allocations: 1 kB / 1.239 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.9054, allocations: 4 kB / 1.239 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.9054, allocations: 3.938 kB / 1.239 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.9056, allocations: 223 kB / 1.239 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.9056, allocations: 1.188 kB / 1.239 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.9057, allocations: 24.05 kB / 1.239 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.9057, allocations: 1.219 kB / 1.239 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.9057, allocations: 0 / 1.239 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.9057, allocations: 1.125 kB / 1.239 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.9058, allocations: 0 / 1.239 GB, free: 0.5977 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.906, allocations: 210.4 kB / 1.239 GB, free: 432 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.937e-05/0.9061, allocations: 99.64 kB / 1.239 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.9061, allocations: 1.375 kB / 1.239 GB, free: 316 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.9063, allocations: 8.109 kB / 1.239 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.9063, allocations: 14.67 kB / 1.239 GB, free: 300 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.9063, allocations: 1.375 kB / 1.239 GB, free: 300 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001044/0.9064, allocations: 133.4 kB / 1.239 GB, free: 196 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9064, allocations: 0 / 1.239 GB, free: 196 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002471/0.9067, allocations: 23.25 kB / 1.239 GB, free: 192 kB / 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.0006096/0.9073, allocations: 0.754 MB / 1.24 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002627/0.9076, allocations: 82.58 kB / 1.24 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.9076, allocations: 0 / 1.24 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.9077, allocations: 37.72 kB / 1.24 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.9081, allocations: 38.34 kB / 1.24 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.9101, allocations: 1.74 MB / 1.242 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.9103, allocations: 0.7035 MB / 1.243 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.187e-05/0.9104, allocations: 19.73 kB / 1.243 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.9105, allocations: 40.92 kB / 1.243 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.9105, allocations: 0 / 1.243 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.805/2.715, allocations: 3.19 MB / 1.246 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/11.17, allocations: 18.53 kB / 1.246 GB, free: 11.26 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches