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.001484/0.001484, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001598/0.001598, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.421/1.421, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.847/2.847, allocations: 0.5003 GB / 0.8026 GB, free: 6.668 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_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.001955/0.001955, allocations: 75.89 kB / 1.165 GB, free: 456 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8636/0.8656, allocations: 178.9 MB / 1.34 GB, free: 16.23 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1839/1.049, allocations: 152.3 MB / 1.489 GB, free: 13.61 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.001624/1.051, allocations: 1.152 MB / 1.49 GB, free: 12.68 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/1.051, allocations: 1.156 kB / 1.49 GB, free: 12.68 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0003499/1.052, allocations: 69.83 kB / 1.49 GB, free: 12.62 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.0008695/1.052, allocations: 302.3 kB / 1.49 GB, free: 12.4 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/1.053, allocations: 176.2 kB / 1.491 GB, free: 12.28 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.000474/1.053, allocations: 218 kB / 1.491 GB, free: 12.16 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/1.054, allocations: 46.16 kB / 1.491 GB, free: 12.12 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 8.776e-05/1.054, allocations: 56.44 kB / 1.491 GB, free: 12.09 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 9.857e-05/1.054, allocations: 65.66 kB / 1.491 GB, free: 12.04 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/1.054, allocations: 11.72 kB / 1.491 GB, free: 12.04 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006031/1.054, allocations: 385.8 kB / 1.491 GB, free: 11.82 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/1.054, allocations: 25.08 kB / 1.491 GB, free: 11.8 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/1.054, allocations: 64.67 kB / 1.491 GB, free: 11.76 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0004585/1.055, allocations: 306 kB / 1.492 GB, free: 11.57 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/1.055, allocations: 1.5 kB / 1.492 GB, free: 11.57 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.392e-06/1.055, allocations: 0 / 1.492 GB, free: 11.57 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.092e-06/1.055, allocations: 0 / 1.492 GB, free: 11.57 MB / 1.17 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.0007065/1.056, allocations: 473.7 kB / 1.492 GB, free: 11.11 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/1.056, allocations: 13.12 kB / 1.492 GB, free: 11.11 MB / 1.17 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.017e-05/1.056, allocations: 7.531 kB / 1.492 GB, free: 11.1 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.415e-05/1.056, allocations: 45.95 kB / 1.492 GB, free: 11.05 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004726/1.056, allocations: 50.05 kB / 1.492 GB, free: 11.03 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/1.057, allocations: 214.4 kB / 1.492 GB, free: 10.79 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/1.057, allocations: 11.97 kB / 1.492 GB, free: 10.79 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/1.057, allocations: 6.375 kB / 1.492 GB, free: 10.79 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/1.057, allocations: 124.9 kB / 1.493 GB, free: 10.7 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/1.057, allocations: 0 / 1.493 GB, free: 10.7 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/1.057, allocations: 5.25 kB / 1.493 GB, free: 10.7 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/1.057, allocations: 6.578 kB / 1.493 GB, free: 10.69 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/1.057, allocations: 88.78 kB / 1.493 GB, free: 10.65 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006952/1.058, allocations: 459.8 kB / 1.493 GB, free: 10.23 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/1.058, allocations: 95.42 kB / 1.493 GB, free: 10.16 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/1.058, allocations: 33.55 kB / 1.493 GB, free: 10.14 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/1.058, allocations: 1.375 kB / 1.493 GB, free: 10.14 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/1.058, allocations: 35.34 kB / 1.493 GB, free: 10.1 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/1.058, allocations: 4 kB / 1.493 GB, free: 10.09 MB / 1.17 GB Notification: Performance of matching and sorting (n=7): time 0.0004723/1.059, allocations: 139.5 kB / 1.493 GB, free: 10.01 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/1.059, allocations: 52.47 kB / 1.493 GB, free: 9.949 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/1.059, allocations: 188 kB / 1.494 GB, free: 9.801 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/1.059, allocations: 25.7 kB / 1.494 GB, free: 9.77 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 8.502e-05/1.059, allocations: 118.3 kB / 1.494 GB, free: 9.656 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/1.059, allocations: 31.12 kB / 1.494 GB, free: 9.629 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/1.059, allocations: 19.59 kB / 1.494 GB, free: 9.609 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001416/1.059, allocations: 321 kB / 1.494 GB, free: 9.289 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/1.059, allocations: 32.64 kB / 1.494 GB, free: 9.273 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/1.059, allocations: 33.91 kB / 1.494 GB, free: 9.258 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/1.06, allocations: 77.45 kB / 1.494 GB, free: 9.215 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.06, allocations: 4 kB / 1.494 GB, free: 9.211 MB / 1.17 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002791/1.06, allocations: 117.9 kB / 1.494 GB, free: 9.137 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.06, allocations: 5.875 kB / 1.494 GB, free: 9.137 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/1.06, allocations: 0 / 1.494 GB, free: 9.137 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/1.06, allocations: 5.219 kB / 1.494 GB, free: 9.133 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/1.06, allocations: 20.83 kB / 1.494 GB, free: 9.125 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/1.06, allocations: 5.406 kB / 1.494 GB, free: 9.121 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/1.06, allocations: 21.28 kB / 1.494 GB, free: 9.105 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/1.06, allocations: 1.219 kB / 1.494 GB, free: 9.105 MB / 1.17 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.0001122/1.06, allocations: 119.1 kB / 1.495 GB, free: 8.984 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/1.06, allocations: 9.922 kB / 1.495 GB, free: 8.98 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003309/1.061, allocations: 126.8 kB / 1.495 GB, free: 8.898 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/1.061, allocations: 1.469 kB / 1.495 GB, free: 8.898 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/1.061, allocations: 3.938 kB / 1.495 GB, free: 8.895 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/1.061, allocations: 0 / 1.495 GB, free: 8.895 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/1.061, allocations: 227.8 kB / 1.495 GB, free: 8.648 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.061, allocations: 0 / 1.495 GB, free: 8.648 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/1.061, allocations: 20.64 kB / 1.495 GB, free: 8.641 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/1.061, allocations: 3.938 kB / 1.495 GB, free: 8.637 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/1.061, allocations: 5.062 kB / 1.495 GB, free: 8.633 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/1.061, allocations: 0 / 1.495 GB, free: 8.633 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.061, allocations: 5.219 kB / 1.495 GB, free: 8.629 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/1.061, allocations: 214 kB / 1.495 GB, free: 8.449 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 6.045e-05/1.061, allocations: 88.67 kB / 1.495 GB, free: 8.348 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/1.062, allocations: 0 / 1.495 GB, free: 8.348 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/1.062, allocations: 8.297 kB / 1.495 GB, free: 8.344 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/1.062, allocations: 11.06 kB / 1.495 GB, free: 8.336 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/1.062, allocations: 1.094 kB / 1.495 GB, free: 8.336 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001191/1.062, allocations: 139.1 kB / 1.495 GB, free: 8.23 MB / 1.17 GB Notification: Performance of sort global known variables: time 1e-07/1.062, allocations: 0 / 1.495 GB, free: 8.23 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002436/1.062, allocations: 26.97 kB / 1.495 GB, free: 8.223 MB / 1.17 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.0006607/1.063, allocations: 0.7444 MB / 1.496 GB, free: 7.516 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0002768/1.063, allocations: 80.72 kB / 1.496 GB, free: 7.477 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.063, allocations: 0.875 kB / 1.496 GB, free: 7.477 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/1.063, allocations: 37.88 kB / 1.496 GB, free: 7.461 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/1.063, allocations: 37.8 kB / 1.496 GB, free: 7.438 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/1.066, allocations: 1.768 MB / 1.498 GB, free: 5.949 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/1.066, allocations: 0.7106 MB / 1.499 GB, free: 5.234 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 6.771e-05/1.066, allocations: 15.14 kB / 1.499 GB, free: 5.227 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.186e-05/1.066, allocations: 36.95 kB / 1.499 GB, free: 5.195 MB / 1.17 GB Notification: Performance of SimCode: time 2.71e-07/1.066, allocations: 0 / 1.499 GB, free: 5.195 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01742/1.084, allocations: 3.269 MB / 1.502 GB, free: 2.312 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.976, allocations: 7.188 kB / 1.502 GB, free: 2.309 MB / 1.17 GB " [Timeout remaining time 291] (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: 15.087416108988691]