Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 220.3 kB / 23.03 MB, free: 4.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.384/1.384, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.651/2.651, allocations: 476.8 MB / 0.7715 GB, free: 3.879 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 65.52 kB / 1.118 GB, free: 39.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2872, allocations: 170 MB / 1.284 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1552/0.4423, allocations: 130.9 MB / 1.412 GB, free: 7.25 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.001549/0.4439, allocations: 1.04 MB / 1.413 GB, free: 6.207 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.444, allocations: 4 kB / 1.413 GB, free: 6.203 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.4443, allocations: 43.69 kB / 1.413 GB, free: 6.16 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.0007336/0.445, allocations: 322.6 kB / 1.413 GB, free: 5.844 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.4454, allocations: 163.3 kB / 1.413 GB, free: 5.684 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.4458, allocations: 223.3 kB / 1.414 GB, free: 5.465 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.4459, allocations: 44.8 kB / 1.414 GB, free: 5.422 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.446, allocations: 51.78 kB / 1.414 GB, free: 5.371 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.4461, allocations: 63.7 kB / 1.414 GB, free: 5.309 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.4461, allocations: 12 kB / 1.414 GB, free: 5.297 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003906/0.4465, allocations: 247.5 kB / 1.414 GB, free: 5.055 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 5.104e-05/0.4466, allocations: 27.86 kB / 1.414 GB, free: 5.027 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 5.801e-05/0.4466, allocations: 51.8 kB / 1.414 GB, free: 4.977 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.447, allocations: 282.9 kB / 1.414 GB, free: 4.699 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.447, allocations: 0 / 1.414 GB, free: 4.699 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.333e-06/0.447, allocations: 4 kB / 1.414 GB, free: 4.695 MB / 1.107 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.4471, allocations: 0 / 1.414 GB, free: 4.695 MB / 1.107 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.0006423/0.4477, allocations: 401.3 kB / 1.415 GB, free: 4.273 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.4477, allocations: 11.97 kB / 1.415 GB, free: 4.262 MB / 1.107 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.975e-05/0.4478, allocations: 8.172 kB / 1.415 GB, free: 4.254 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.4478, allocations: 46.73 kB / 1.415 GB, free: 4.199 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004637/0.4483, allocations: 44.8 kB / 1.415 GB, free: 4.156 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.4485, allocations: 161.8 kB / 1.415 GB, free: 3.973 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.4486, allocations: 4 kB / 1.415 GB, free: 3.969 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.4486, allocations: 12 kB / 1.415 GB, free: 3.957 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.4488, allocations: 118.9 kB / 1.415 GB, free: 3.836 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.4489, allocations: 0 / 1.415 GB, free: 3.836 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.4489, allocations: 7.984 kB / 1.415 GB, free: 3.828 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.4489, allocations: 8 kB / 1.415 GB, free: 3.82 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.4491, allocations: 87.94 kB / 1.415 GB, free: 3.734 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006621/0.4498, allocations: 399.4 kB / 1.416 GB, free: 3.301 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.45, allocations: 90.47 kB / 1.416 GB, free: 3.203 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.4501, allocations: 36.95 kB / 1.416 GB, free: 3.164 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.4501, allocations: 0 / 1.416 GB, free: 3.164 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.4502, allocations: 34.56 kB / 1.416 GB, free: 3.121 MB / 1.107 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.4502, allocations: 0 / 1.416 GB, free: 3.121 MB / 1.107 GB Notification: Performance of matching and sorting (n=7): time 0.0004356/0.4506, allocations: 149.5 kB / 1.416 GB, free: 2.969 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.4506, allocations: 55.34 kB / 1.416 GB, free: 2.902 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.4508, allocations: 191.5 kB / 1.416 GB, free: 2.707 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4508, allocations: 25.7 kB / 1.416 GB, free: 2.676 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 8.001e-05/0.4509, allocations: 120 kB / 1.416 GB, free: 2.555 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.4509, allocations: 23.8 kB / 1.416 GB, free: 2.531 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.584e-05/0.451, allocations: 21.7 kB / 1.416 GB, free: 2.504 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4511, allocations: 326.8 kB / 1.417 GB, free: 2.176 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.4512, allocations: 35.98 kB / 1.417 GB, free: 2.141 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.757e-05/0.4513, allocations: 35.97 kB / 1.417 GB, free: 2.105 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.4515, allocations: 68.83 kB / 1.417 GB, free: 2.035 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4515, allocations: 0 / 1.417 GB, free: 2.035 MB / 1.107 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002717/0.4518, allocations: 121.5 kB / 1.417 GB, free: 1.91 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.4518, allocations: 4 kB / 1.417 GB, free: 1.906 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.4518, allocations: 4 kB / 1.417 GB, free: 1.902 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.4518, allocations: 0 / 1.417 GB, free: 1.902 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.452, allocations: 23.92 kB / 1.417 GB, free: 1.879 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.452, allocations: 0 / 1.417 GB, free: 1.879 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.613e-05/0.4521, allocations: 15.98 kB / 1.417 GB, free: 1.863 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.4521, allocations: 0 / 1.417 GB, free: 1.863 MB / 1.107 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.0001017/0.4522, allocations: 127.5 kB / 1.417 GB, free: 1.73 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.4522, allocations: 11.91 kB / 1.417 GB, free: 1.719 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.4526, allocations: 131 kB / 1.417 GB, free: 1.582 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.4526, allocations: 0 / 1.417 GB, free: 1.582 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4526, allocations: 4 kB / 1.417 GB, free: 1.578 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4526, allocations: 0 / 1.417 GB, free: 1.578 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.4528, allocations: 180.6 kB / 1.417 GB, free: 1.359 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4528, allocations: 0 / 1.417 GB, free: 1.359 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.4529, allocations: 15.98 kB / 1.417 GB, free: 1.344 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.4529, allocations: 0 / 1.417 GB, free: 1.344 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.4529, allocations: 0 / 1.417 GB, free: 1.344 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.4529, allocations: 4 kB / 1.417 GB, free: 1.34 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4529, allocations: 0 / 1.417 GB, free: 1.34 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.4532, allocations: 223.9 kB / 1.418 GB, free: 1.105 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 2.873e-05/0.4532, allocations: 15.91 kB / 1.418 GB, free: 1.09 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.4533, allocations: 7.984 kB / 1.418 GB, free: 1.082 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.4534, allocations: 7.984 kB / 1.418 GB, free: 1.074 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.4534, allocations: 7.984 kB / 1.418 GB, free: 1.066 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.4534, allocations: 4 kB / 1.418 GB, free: 1.062 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0001101/0.4535, allocations: 127.2 kB / 1.418 GB, free: 0.9375 MB / 1.107 GB Notification: Performance of sort global known variables: time 9e-08/0.4535, allocations: 4 kB / 1.418 GB, free: 0.9336 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0002495/0.4538, allocations: 23.94 kB / 1.418 GB, free: 0.9102 MB / 1.107 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.0006337/0.4544, allocations: 0.7553 MB / 1.419 GB, free: 128 kB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.000256/0.4547, allocations: 67.95 kB / 1.419 GB, free: 60 kB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4547, allocations: 4 kB / 1.419 GB, free: 56 kB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.4548, allocations: 39.91 kB / 1.419 GB, free: 16 kB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.4552, allocations: 34.31 kB / 1.419 GB, free: 15.98 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.4573, allocations: 1.753 MB / 1.42 GB, free: 14.16 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.043e-05/0.4574, allocations: 90.28 kB / 1.421 GB, free: 14.05 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 6.377e-05/0.4575, allocations: 20.91 kB / 1.421 GB, free: 14.03 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.4576, allocations: 35.42 kB / 1.421 GB, free: 13.99 MB / 1.123 GB Notification: Performance of SimCode: time 3.21e-07/0.4576, allocations: 0 / 1.421 GB, free: 13.99 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.4791, allocations: 3.512 MB / 1.424 GB, free: 10.67 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.34, allocations: 7.688 kB / 1.424 GB, free: 10.67 MB / 1.123 GB " [Timeout remaining time 289] (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.575725106988102]