Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001274/0.001274, 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.001531/0.001531, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.991/2.991, allocations: 0.49 GB / 0.7959 GB, free: 35.39 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_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.001934/0.001934, allocations: 70.5 kB / 1.155 GB, free: 25.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3325, allocations: 176.1 MB / 1.327 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1625/0.495, allocations: 130.9 MB / 1.454 GB, free: 14.04 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.4966, allocations: 1.044 MB / 1.456 GB, free: 12.99 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.4967, allocations: 4 kB / 1.456 GB, free: 12.98 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.4971, allocations: 51.7 kB / 1.456 GB, free: 12.93 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.0008973/0.498, allocations: 306.6 kB / 1.456 GB, free: 12.63 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004246/0.4984, allocations: 175.3 kB / 1.456 GB, free: 12.46 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.4989, allocations: 227.3 kB / 1.456 GB, free: 12.24 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.499, allocations: 41.23 kB / 1.456 GB, free: 12.2 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.4991, allocations: 55.78 kB / 1.456 GB, free: 12.14 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.4992, allocations: 59.75 kB / 1.456 GB, free: 12.09 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.4992, allocations: 12 kB / 1.456 GB, free: 12.07 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004691/0.4997, allocations: 239.5 kB / 1.457 GB, free: 11.84 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.4998, allocations: 35.86 kB / 1.457 GB, free: 11.8 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.4998, allocations: 59.7 kB / 1.457 GB, free: 11.75 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.5003, allocations: 267.1 kB / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.5004, allocations: 0 / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5004, allocations: 0 / 1.457 GB, free: 11.48 MB / 1.154 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.5004, allocations: 3.984 kB / 1.457 GB, free: 11.48 MB / 1.154 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.0007133/0.5011, allocations: 401.2 kB / 1.457 GB, free: 11.06 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.5011, allocations: 8.031 kB / 1.457 GB, free: 11.05 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.668e-05/0.5011, allocations: 8.125 kB / 1.457 GB, free: 11.04 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.505e-05/0.5012, allocations: 50.73 kB / 1.457 GB, free: 10.98 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004874/0.5017, allocations: 44.8 kB / 1.457 GB, free: 10.94 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.502, allocations: 155.1 kB / 1.458 GB, free: 10.77 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.502, allocations: 11.98 kB / 1.458 GB, free: 10.75 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.502, allocations: 12 kB / 1.458 GB, free: 10.74 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.5023, allocations: 119.5 kB / 1.458 GB, free: 10.62 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.5023, allocations: 4 kB / 1.458 GB, free: 10.62 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.5023, allocations: 4 kB / 1.458 GB, free: 10.61 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.5023, allocations: 4 kB / 1.458 GB, free: 10.61 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.5026, allocations: 91.94 kB / 1.458 GB, free: 10.52 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.5033, allocations: 395.4 kB / 1.458 GB, free: 10.09 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.5035, allocations: 90.47 kB / 1.458 GB, free: 9.992 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.5036, allocations: 44.94 kB / 1.458 GB, free: 9.945 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.5036, allocations: 0 / 1.458 GB, free: 9.945 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.5037, allocations: 34.56 kB / 1.458 GB, free: 9.902 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.5037, allocations: 0 / 1.458 GB, free: 9.902 MB / 1.154 GB Notification: Performance of matching and sorting (n=7): time 0.0004303/0.5041, allocations: 133.6 kB / 1.459 GB, free: 9.766 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.5041, allocations: 55.39 kB / 1.459 GB, free: 9.699 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.5043, allocations: 182.8 kB / 1.459 GB, free: 9.512 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.5043, allocations: 29.7 kB / 1.459 GB, free: 9.477 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.5044, allocations: 120 kB / 1.459 GB, free: 9.355 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.5045, allocations: 23.78 kB / 1.459 GB, free: 9.332 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.5045, allocations: 21.72 kB / 1.459 GB, free: 9.305 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.5046, allocations: 330.8 kB / 1.459 GB, free: 8.973 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.5048, allocations: 31.97 kB / 1.459 GB, free: 8.941 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.731e-05/0.5049, allocations: 27.98 kB / 1.459 GB, free: 8.914 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.5051, allocations: 85.25 kB / 1.459 GB, free: 8.828 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5051, allocations: 7.875 kB / 1.459 GB, free: 8.82 MB / 1.154 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002768/0.5053, allocations: 121.6 kB / 1.46 GB, free: 8.695 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.5054, allocations: 8 kB / 1.46 GB, free: 8.688 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.5054, allocations: 0 / 1.46 GB, free: 8.688 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.5054, allocations: 0 / 1.46 GB, free: 8.688 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.5055, allocations: 19.92 kB / 1.46 GB, free: 8.668 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.5055, allocations: 4 kB / 1.46 GB, free: 8.664 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.529e-05/0.5056, allocations: 11.98 kB / 1.46 GB, free: 8.652 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.717e-06/0.5056, allocations: 0 / 1.46 GB, free: 8.652 MB / 1.154 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.5057, allocations: 126.3 kB / 1.46 GB, free: 8.52 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.5058, allocations: 11.91 kB / 1.46 GB, free: 8.508 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003277/0.5061, allocations: 127 kB / 1.46 GB, free: 8.375 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.5061, allocations: 4 kB / 1.46 GB, free: 8.371 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5061, allocations: 0 / 1.46 GB, free: 8.371 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.5061, allocations: 0 / 1.46 GB, free: 8.371 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.5063, allocations: 184.6 kB / 1.46 GB, free: 8.148 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5063, allocations: 4 kB / 1.46 GB, free: 8.145 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.5065, allocations: 15.98 kB / 1.46 GB, free: 8.129 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.5065, allocations: 4 kB / 1.46 GB, free: 8.125 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.5065, allocations: 0 / 1.46 GB, free: 8.125 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.5065, allocations: 0 / 1.46 GB, free: 8.125 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.5065, allocations: 0 / 1.46 GB, free: 8.125 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.5068, allocations: 215.3 kB / 1.46 GB, free: 7.898 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.5068, allocations: 15.89 kB / 1.46 GB, free: 7.883 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.5068, allocations: 0 / 1.46 GB, free: 7.883 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.507, allocations: 12 kB / 1.46 GB, free: 7.871 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.507, allocations: 7.984 kB / 1.46 GB, free: 7.863 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.507, allocations: 0 / 1.46 GB, free: 7.863 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0001226/0.5071, allocations: 139.2 kB / 1.46 GB, free: 7.727 MB / 1.154 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5071, allocations: 0 / 1.46 GB, free: 7.727 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0002487/0.5074, allocations: 23.94 kB / 1.46 GB, free: 7.703 MB / 1.154 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.0006567/0.508, allocations: 0.7475 MB / 1.461 GB, free: 6.926 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0002778/0.5083, allocations: 75.89 kB / 1.461 GB, free: 6.852 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5083, allocations: 0 / 1.461 GB, free: 6.852 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.5084, allocations: 35.97 kB / 1.461 GB, free: 6.816 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.5088, allocations: 47.8 kB / 1.461 GB, free: 6.77 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.5111, allocations: 1.766 MB / 1.463 GB, free: 4.926 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.5112, allocations: 102.1 kB / 1.463 GB, free: 4.805 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 7.739e-05/0.5113, allocations: 8.969 kB / 1.463 GB, free: 4.797 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.125e-05/0.5114, allocations: 43.42 kB / 1.463 GB, free: 4.758 MB / 1.154 GB Notification: Performance of SimCode: time 8.32e-07/0.5114, allocations: 4 kB / 1.463 GB, free: 4.754 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.5345, allocations: 3.51 MB / 1.467 GB, free: 1.434 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.99, allocations: 6.438 kB / 1.467 GB, free: 1.43 MB / 1.154 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.419798903982155]