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.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.001417/0.001417, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001597/0.001597, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.325/1.325, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.934/2.934, allocations: 0.505 GB / 0.8101 GB, free: 22.01 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [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.001864/0.001864, allocations: 63.98 kB / 1.177 GB, free: 17.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2813, allocations: 180.2 MB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.161/0.4423, allocations: 152.3 MB / 1.502 GB, free: 15.52 MB / 1.201 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.4439, allocations: 1.172 MB / 1.503 GB, free: 14.34 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.444, allocations: 0 / 1.503 GB, free: 14.34 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.4443, allocations: 67.61 kB / 1.503 GB, free: 14.27 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.0007545/0.4451, allocations: 310.7 kB / 1.503 GB, free: 13.97 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.4454, allocations: 171.3 kB / 1.503 GB, free: 13.8 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.0004311/0.4458, allocations: 219.3 kB / 1.504 GB, free: 13.59 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.446, allocations: 45.27 kB / 1.504 GB, free: 13.54 MB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 8.202e-05/0.446, allocations: 55.73 kB / 1.504 GB, free: 13.48 MB / 1.201 GB Notification: Performance of NFSimplifyModel.simplify: time 9.966e-05/0.4461, allocations: 63.69 kB / 1.504 GB, free: 13.42 MB / 1.201 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.4462, allocations: 12 kB / 1.504 GB, free: 13.41 MB / 1.201 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000588/0.4468, allocations: 383.2 kB / 1.504 GB, free: 13.04 MB / 1.201 GB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.4468, allocations: 27.92 kB / 1.504 GB, free: 13.01 MB / 1.201 GB Notification: Performance of NFVerifyModel.verify: time 6.223e-05/0.4469, allocations: 63.67 kB / 1.504 GB, free: 12.95 MB / 1.201 GB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.4473, allocations: 306.9 kB / 1.504 GB, free: 12.64 MB / 1.201 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.4473, allocations: 0 / 1.504 GB, free: 12.64 MB / 1.201 GB Notification: Performance of FrontEnd: time 1.082e-06/0.4473, allocations: 0 / 1.504 GB, free: 12.64 MB / 1.201 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.4473, allocations: 0 / 1.504 GB, free: 12.64 MB / 1.201 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.0006359/0.448, allocations: 397.3 kB / 1.505 GB, free: 12.23 MB / 1.201 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.448, allocations: 12.03 kB / 1.505 GB, free: 12.21 MB / 1.201 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.576e-05/0.4481, allocations: 46.67 kB / 1.505 GB, free: 12.16 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.4485, allocations: 52.8 kB / 1.505 GB, free: 12.11 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.4488, allocations: 153.3 kB / 1.505 GB, free: 11.93 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.4488, allocations: 8 kB / 1.505 GB, free: 11.93 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.4488, allocations: 12 kB / 1.505 GB, free: 11.91 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.449, allocations: 113.5 kB / 1.505 GB, free: 11.8 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4491, allocations: 4 kB / 1.505 GB, free: 11.79 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.4491, allocations: 8 kB / 1.505 GB, free: 11.79 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.4491, allocations: 0 / 1.505 GB, free: 11.79 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.4493, allocations: 95.88 kB / 1.505 GB, free: 11.69 MB / 1.201 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006394/0.4499, allocations: 423.3 kB / 1.506 GB, free: 11.23 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.4502, allocations: 90.48 kB / 1.506 GB, free: 11.14 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.4503, allocations: 40.94 kB / 1.506 GB, free: 11.09 MB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.4503, allocations: 7.984 kB / 1.506 GB, free: 11.09 MB / 1.201 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.4503, allocations: 30.56 kB / 1.506 GB, free: 11.05 MB / 1.201 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.4503, allocations: 3.938 kB / 1.506 GB, free: 11.04 MB / 1.201 GB Notification: Performance of matching and sorting (n=7): time 0.0004173/0.4507, allocations: 137.6 kB / 1.506 GB, free: 10.9 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.4508, allocations: 59.41 kB / 1.506 GB, free: 10.83 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.4509, allocations: 174.2 kB / 1.506 GB, free: 10.65 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.4509, allocations: 25.7 kB / 1.506 GB, free: 10.62 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.451, allocations: 124 kB / 1.506 GB, free: 10.5 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.451, allocations: 27.73 kB / 1.506 GB, free: 10.47 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.4511, allocations: 17.72 kB / 1.506 GB, free: 10.45 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4512, allocations: 330.8 kB / 1.507 GB, free: 10.11 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.4513, allocations: 31.97 kB / 1.507 GB, free: 10.08 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.265e-05/0.4514, allocations: 32.28 kB / 1.507 GB, free: 10.05 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.4516, allocations: 76.95 kB / 1.507 GB, free: 9.973 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4516, allocations: 0 / 1.507 GB, free: 9.973 MB / 1.201 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002543/0.4519, allocations: 121.6 kB / 1.507 GB, free: 9.848 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.4519, allocations: 9.719 kB / 1.507 GB, free: 9.84 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.4519, allocations: 0 / 1.507 GB, free: 9.84 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4519, allocations: 3.984 kB / 1.507 GB, free: 9.836 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.452, allocations: 19.92 kB / 1.507 GB, free: 9.816 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.452, allocations: 4 kB / 1.507 GB, free: 9.812 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.681e-05/0.4521, allocations: 11.89 kB / 1.507 GB, free: 9.801 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.4521, allocations: 0 / 1.507 GB, free: 9.801 MB / 1.201 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.0001085/0.4522, allocations: 133.8 kB / 1.507 GB, free: 9.66 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.4523, allocations: 7.953 kB / 1.507 GB, free: 9.652 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/0.4526, allocations: 127 kB / 1.507 GB, free: 9.523 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.4526, allocations: 0 / 1.507 GB, free: 9.523 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4526, allocations: 0 / 1.507 GB, free: 9.523 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.4526, allocations: 7.938 kB / 1.507 GB, free: 9.516 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.4528, allocations: 200.5 kB / 1.507 GB, free: 9.277 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4528, allocations: 4 kB / 1.507 GB, free: 9.273 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.4529, allocations: 23.92 kB / 1.508 GB, free: 9.25 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4529, allocations: 0 / 1.508 GB, free: 9.25 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.4529, allocations: 4 kB / 1.508 GB, free: 9.246 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4529, allocations: 0 / 1.508 GB, free: 9.246 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4529, allocations: 0 / 1.508 GB, free: 9.246 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.4532, allocations: 207.4 kB / 1.508 GB, free: 9.027 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 2.728e-05/0.4532, allocations: 23.83 kB / 1.508 GB, free: 9.004 MB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.4533, allocations: 3.938 kB / 1.508 GB, free: 9 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4534, allocations: 8 kB / 1.508 GB, free: 8.992 MB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.4534, allocations: 7.922 kB / 1.508 GB, free: 8.984 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.4534, allocations: 4 kB / 1.508 GB, free: 8.98 MB / 1.201 GB Notification: Performance of sorting global known variables: time 0.0001143/0.4535, allocations: 140.2 kB / 1.508 GB, free: 8.844 MB / 1.201 GB Notification: Performance of sort global known variables: time 6e-08/0.4535, allocations: 0 / 1.508 GB, free: 8.844 MB / 1.201 GB Notification: Performance of remove unused functions: time 0.0002381/0.4538, allocations: 20 kB / 1.508 GB, free: 8.824 MB / 1.201 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.0006011/0.4544, allocations: 0.7436 MB / 1.509 GB, free: 8.051 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.4546, allocations: 79.89 kB / 1.509 GB, free: 7.973 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4546, allocations: 0 / 1.509 GB, free: 7.973 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.4547, allocations: 31.98 kB / 1.509 GB, free: 7.941 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.4551, allocations: 40.44 kB / 1.509 GB, free: 7.902 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.4571, allocations: 1.763 MB / 1.51 GB, free: 6.062 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4574, allocations: 0.7156 MB / 1.511 GB, free: 5.32 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 6.372e-05/0.4575, allocations: 16.97 kB / 1.511 GB, free: 5.305 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.001e-05/0.4576, allocations: 35.44 kB / 1.511 GB, free: 5.27 MB / 1.201 GB Notification: Performance of SimCode: time 3.91e-07/0.4576, allocations: 0 / 1.511 GB, free: 5.27 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.4851, allocations: 3.342 MB / 1.515 GB, free: 2.07 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.57, allocations: 11.89 kB / 1.515 GB, free: 2.066 MB / 1.201 GB " [Timeout remaining time 289] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.493881435133517]