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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007699/0.007699, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001838/0.001838, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.265/2.265, allocations: 390.2 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 71.88 kB / 0.9509 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7713/0.7726, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1785/0.9511, allocations: 149 MB / 1.233 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.9528, allocations: 1.133 MB / 1.235 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.953, allocations: 2.312 kB / 1.235 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.9534, allocations: 52.3 kB / 1.235 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0008156/0.9542, allocations: 322.7 kB / 1.235 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.9546, allocations: 167.2 kB / 1.235 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004349/0.955, allocations: 218.6 kB / 1.235 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.9552, allocations: 56.05 kB / 1.235 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.428e-05/0.9553, allocations: 58.81 kB / 1.235 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.726e-05/0.9554, allocations: 57.3 kB / 1.235 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.9554, allocations: 11.5 kB / 1.235 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005674/0.956, allocations: 369.9 kB / 1.236 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.853e-05/0.956, allocations: 36.7 kB / 1.236 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.352e-05/0.9561, allocations: 61.42 kB / 1.236 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.9566, allocations: 292.8 kB / 1.236 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.9566, allocations: 0 / 1.236 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.302e-06/0.9566, allocations: 0 / 1.236 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.9566, allocations: 1.062 kB / 1.236 GB, free: 3.676 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.0006541/0.9573, allocations: 478.7 kB / 1.237 GB, free: 3.215 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.9573, allocations: 13.73 kB / 1.237 GB, free: 3.211 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002859/0.9576, allocations: 39.69 kB / 1.237 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.9579, allocations: 209.7 kB / 1.237 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.9579, allocations: 7.469 kB / 1.237 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.958, allocations: 19.03 kB / 1.237 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.9582, allocations: 114.6 kB / 1.237 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.9583, allocations: 5.094 kB / 1.237 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.9583, allocations: 4 kB / 1.237 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.9583, allocations: 7.406 kB / 1.237 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.9586, allocations: 87.66 kB / 1.237 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.9593, allocations: 464.2 kB / 1.238 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.9596, allocations: 86.3 kB / 1.238 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.9597, allocations: 42.5 kB / 1.238 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.9597, allocations: 5.203 kB / 1.238 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.9597, allocations: 35.72 kB / 1.238 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.123e-06/0.9597, allocations: 0 / 1.238 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004527/0.9602, allocations: 142.8 kB / 1.238 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.9603, allocations: 52.78 kB / 1.238 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.9604, allocations: 189.7 kB / 1.238 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.9605, allocations: 27.08 kB / 1.238 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.9606, allocations: 117.6 kB / 1.238 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.9606, allocations: 27.88 kB / 1.238 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.9606, allocations: 17.84 kB / 1.238 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.9607, allocations: 326.9 kB / 1.239 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.9609, allocations: 36.41 kB / 1.239 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.964e-05/0.961, allocations: 33.84 kB / 1.239 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.9612, allocations: 79.91 kB / 1.239 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.9612, allocations: 1.312 kB / 1.239 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002812/0.9615, allocations: 109.8 kB / 1.239 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.9615, allocations: 4.406 kB / 1.239 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.9615, allocations: 0.9062 kB / 1.239 GB, free: 1.301 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.9615, allocations: 5.234 kB / 1.239 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.9617, allocations: 20.45 kB / 1.239 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.9617, allocations: 6.047 kB / 1.239 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.727e-05/0.9618, allocations: 20.23 kB / 1.239 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.9618, allocations: 2.688 kB / 1.239 GB, free: 1.27 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.000102/0.9619, allocations: 124.3 kB / 1.239 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.962, allocations: 13.84 kB / 1.239 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.9623, allocations: 118.3 kB / 1.239 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.9623, allocations: 1.156 kB / 1.239 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.9623, allocations: 5.094 kB / 1.239 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.9624, allocations: 3.938 kB / 1.239 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.9626, allocations: 227 kB / 1.239 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.9626, allocations: 3.938 kB / 1.239 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.9627, allocations: 16.52 kB / 1.239 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.9627, allocations: 0.7812 kB / 1.239 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.9627, allocations: 1.531 kB / 1.239 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.9627, allocations: 0 / 1.239 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.9628, allocations: 0 / 1.239 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.9631, allocations: 214.1 kB / 1.24 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.486e-05/0.9631, allocations: 96.92 kB / 1.24 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.9632, allocations: 1.344 kB / 1.24 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.9633, allocations: 2.969 kB / 1.24 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.9633, allocations: 10.64 kB / 1.24 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.9634, allocations: 14.62 kB / 1.24 GB, free: 500 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001161/0.9635, allocations: 133 kB / 1.24 GB, free: 396 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9635, allocations: 0 / 1.24 GB, free: 396 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000258/0.9637, allocations: 31.17 kB / 1.24 GB, free: 384 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.0001747/0.9639, allocations: 104.4 kB / 1.24 GB, free: 288 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002874/0.9642, allocations: 74.94 kB / 1.24 GB, free: 256 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9642, allocations: 4 kB / 1.24 GB, free: 252 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.9644, allocations: 42.59 kB / 1.24 GB, free: 232 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.9648, allocations: 29.45 kB / 1.24 GB, free: 216 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005131/0.9653, allocations: 251.2 kB / 1.24 GB, free: 16 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.9656, allocations: 0.7099 MB / 1.241 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.706e-05/0.9657, allocations: 15.75 kB / 1.241 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.043e-05/0.9657, allocations: 12.94 kB / 1.241 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.9657, allocations: 1.375 kB / 1.241 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of Templates: time 0.004752/0.9705, allocations: 1.604 MB / 1.243 GB, free: 14.48 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (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 & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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