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.001726/0.001726, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002066/0.002066, allocations: 218.8 kB / 23.04 MB, free: 5.074 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.428/1.428, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.684/2.684, allocations: 476.7 MB / 0.7714 GB, free: 4.258 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.001967/0.001967, allocations: 63.34 kB / 1.118 GB, free: 40.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2928, allocations: 169.9 MB / 1.284 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1738/0.4665, allocations: 152.3 MB / 1.433 GB, free: 2.809 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.001706/0.4682, allocations: 1.16 MB / 1.434 GB, free: 1.648 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.4683, allocations: 0 / 1.434 GB, free: 1.648 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.0002206/0.4685, allocations: 55.67 kB / 1.434 GB, free: 1.594 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.0007738/0.4693, allocations: 322.6 kB / 1.434 GB, free: 1.277 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.4697, allocations: 167.3 kB / 1.435 GB, free: 1.113 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.0004369/0.4701, allocations: 227.3 kB / 1.435 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.4703, allocations: 45.22 kB / 1.435 GB, free: 0.8438 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 8.537e-05/0.4703, allocations: 51.84 kB / 1.435 GB, free: 0.793 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 9.914e-05/0.4704, allocations: 63.69 kB / 1.435 GB, free: 0.7305 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.4705, allocations: 12 kB / 1.435 GB, free: 0.7188 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006189/0.4711, allocations: 383.2 kB / 1.435 GB, free: 352 kB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 5.391e-05/0.4711, allocations: 31.91 kB / 1.435 GB, free: 320 kB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 6.424e-05/0.4712, allocations: 59.67 kB / 1.435 GB, free: 260 kB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.0004888/0.4717, allocations: 307 kB / 1.436 GB, free: 15.95 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4717, allocations: 4 kB / 1.436 GB, free: 15.95 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4717, allocations: 0 / 1.436 GB, free: 15.95 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.4717, allocations: 0 / 1.436 GB, free: 15.95 MB / 1.139 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.0006589/0.4724, allocations: 401.3 kB / 1.436 GB, free: 15.52 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4724, allocations: 12.03 kB / 1.436 GB, free: 15.51 MB / 1.139 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.19e-05/0.4724, allocations: 192 / 1.436 GB, free: 15.51 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.4725, allocations: 42.75 kB / 1.436 GB, free: 15.46 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004684/0.4729, allocations: 48.8 kB / 1.436 GB, free: 15.41 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.4732, allocations: 163.5 kB / 1.436 GB, free: 15.23 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.4732, allocations: 8 kB / 1.436 GB, free: 15.22 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.4732, allocations: 12 kB / 1.436 GB, free: 15.21 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.4735, allocations: 118.9 kB / 1.436 GB, free: 15.09 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4735, allocations: 0 / 1.436 GB, free: 15.09 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.4735, allocations: 7.938 kB / 1.436 GB, free: 15.08 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4735, allocations: 4 kB / 1.436 GB, free: 15.08 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002668/0.4738, allocations: 91.94 kB / 1.437 GB, free: 14.99 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.4745, allocations: 431.2 kB / 1.437 GB, free: 14.53 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.4747, allocations: 86.55 kB / 1.437 GB, free: 14.43 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.4749, allocations: 40.94 kB / 1.437 GB, free: 14.39 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.4749, allocations: 0 / 1.437 GB, free: 14.39 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.4749, allocations: 34.56 kB / 1.437 GB, free: 14.35 MB / 1.139 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.4749, allocations: 3.938 kB / 1.437 GB, free: 14.34 MB / 1.139 GB Notification: Performance of matching and sorting (n=7): time 0.0004449/0.4753, allocations: 145.5 kB / 1.437 GB, free: 14.2 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.4754, allocations: 51.41 kB / 1.437 GB, free: 14.13 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.4756, allocations: 187.5 kB / 1.438 GB, free: 13.94 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.4756, allocations: 25.7 kB / 1.438 GB, free: 13.91 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 8.079e-05/0.4757, allocations: 120 kB / 1.438 GB, free: 13.79 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.4757, allocations: 23.78 kB / 1.438 GB, free: 13.77 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.4757, allocations: 21.72 kB / 1.438 GB, free: 13.74 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4759, allocations: 330.8 kB / 1.438 GB, free: 13.41 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.476, allocations: 35.97 kB / 1.438 GB, free: 13.37 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.959e-05/0.4761, allocations: 27.98 kB / 1.438 GB, free: 13.34 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.4763, allocations: 76.75 kB / 1.438 GB, free: 13.27 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4763, allocations: 0 / 1.438 GB, free: 13.27 MB / 1.139 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002838/0.4766, allocations: 125.5 kB / 1.438 GB, free: 13.14 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.4766, allocations: 4 kB / 1.438 GB, free: 13.13 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4766, allocations: 4 kB / 1.438 GB, free: 13.13 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.4766, allocations: 0 / 1.438 GB, free: 13.13 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.4767, allocations: 15.98 kB / 1.438 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.4768, allocations: 0 / 1.438 GB, free: 13.11 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.227e-05/0.4768, allocations: 11.98 kB / 1.438 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-06/0.4769, allocations: 0 / 1.438 GB, free: 13.1 MB / 1.139 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.0001058/0.477, allocations: 135.5 kB / 1.438 GB, free: 12.96 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.477, allocations: 15.89 kB / 1.438 GB, free: 12.95 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003253/0.4773, allocations: 123.6 kB / 1.439 GB, free: 12.82 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4773, allocations: 0 / 1.439 GB, free: 12.82 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4773, allocations: 0 / 1.439 GB, free: 12.82 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4773, allocations: 3.938 kB / 1.439 GB, free: 12.81 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.4776, allocations: 200.5 kB / 1.439 GB, free: 12.57 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.4776, allocations: 0 / 1.439 GB, free: 12.57 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.4777, allocations: 19.98 kB / 1.439 GB, free: 12.55 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4777, allocations: 0 / 1.439 GB, free: 12.55 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.4777, allocations: 0 / 1.439 GB, free: 12.55 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4777, allocations: 0 / 1.439 GB, free: 12.55 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.4777, allocations: 8.016 kB / 1.439 GB, free: 12.55 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003197/0.478, allocations: 215.3 kB / 1.439 GB, free: 12.32 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 2.678e-05/0.478, allocations: 11.91 kB / 1.439 GB, free: 12.31 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.478, allocations: 8 kB / 1.439 GB, free: 12.3 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.4782, allocations: 7.984 kB / 1.439 GB, free: 12.29 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.4782, allocations: 7.984 kB / 1.439 GB, free: 12.29 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.4782, allocations: 4 kB / 1.439 GB, free: 12.28 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0001241/0.4783, allocations: 135.2 kB / 1.439 GB, free: 12.15 MB / 1.139 GB Notification: Performance of sort global known variables: time 8e-08/0.4783, allocations: 0 / 1.439 GB, free: 12.15 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0002507/0.4786, allocations: 27.88 kB / 1.439 GB, free: 12.12 MB / 1.139 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.0006526/0.4792, allocations: 0.7475 MB / 1.44 GB, free: 11.34 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0002673/0.4795, allocations: 75.94 kB / 1.44 GB, free: 11.27 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4795, allocations: 4 kB / 1.44 GB, free: 11.27 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.4796, allocations: 35.92 kB / 1.44 GB, free: 11.23 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.48, allocations: 34 kB / 1.44 GB, free: 11.2 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.4822, allocations: 1.748 MB / 1.442 GB, free: 9.379 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.4825, allocations: 0.708 MB / 1.442 GB, free: 8.645 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 6.42e-05/0.4826, allocations: 12.98 kB / 1.442 GB, free: 8.633 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.667e-05/0.4826, allocations: 35.42 kB / 1.443 GB, free: 8.598 MB / 1.139 GB Notification: Performance of SimCode: time 4.61e-07/0.4826, allocations: 0 / 1.443 GB, free: 8.598 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/0.5053, allocations: 3.363 MB / 1.446 GB, free: 5.395 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.24, allocations: 16 kB / 1.446 GB, free: 5.387 MB / 1.139 GB " [Timeout remaining time 288] (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.56708340300247]