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.001666/0.001666, allocations: 108.4 kB / 16.46 MB, free: 6.453 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.001807/0.001807, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.429/1.429, allocations: 230.6 MB / 252.8 MB, free: 8.949 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 3.121/3.121, allocations: 0.49 GB / 0.7916 GB, free: 33.29 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_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.002269/0.002269, allocations: 71.2 kB / 1.149 GB, free: 26.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3256, allocations: 176.1 MB / 1.321 GB, free: 3.301 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1793/0.505, allocations: 152.3 MB / 1.47 GB, free: 10.43 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.001828/0.5068, allocations: 1.164 MB / 1.471 GB, free: 9.266 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.507, allocations: 8 kB / 1.471 GB, free: 9.258 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0004048/0.5074, allocations: 59.66 kB / 1.471 GB, free: 9.199 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.0009524/0.5083, allocations: 298.6 kB / 1.471 GB, free: 8.906 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.5088, allocations: 175.3 kB / 1.471 GB, free: 8.734 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0005527/0.5094, allocations: 223.3 kB / 1.471 GB, free: 8.516 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.5095, allocations: 45.02 kB / 1.471 GB, free: 8.473 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.5096, allocations: 51.86 kB / 1.472 GB, free: 8.422 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.5097, allocations: 63.69 kB / 1.472 GB, free: 8.359 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.5098, allocations: 12 kB / 1.472 GB, free: 8.348 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007051/0.5105, allocations: 383.2 kB / 1.472 GB, free: 7.973 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 6.604e-05/0.5105, allocations: 31.92 kB / 1.472 GB, free: 7.941 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 7.636e-05/0.5106, allocations: 63.66 kB / 1.472 GB, free: 7.879 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0006109/0.5112, allocations: 302.9 kB / 1.472 GB, free: 7.582 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.5112, allocations: 0 / 1.472 GB, free: 7.582 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.552e-06/0.5112, allocations: 0 / 1.472 GB, free: 7.582 MB / 1.17 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.5112, allocations: 0 / 1.472 GB, free: 7.582 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.0008073/0.512, allocations: 478.4 kB / 1.473 GB, free: 7.066 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5121, allocations: 15.98 kB / 1.473 GB, free: 7.051 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.706e-05/0.5122, allocations: 46.67 kB / 1.473 GB, free: 6.996 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005226/0.5127, allocations: 52.8 kB / 1.473 GB, free: 6.945 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.513, allocations: 217.6 kB / 1.473 GB, free: 6.695 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.513, allocations: 8 kB / 1.473 GB, free: 6.688 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.5131, allocations: 12 kB / 1.473 GB, free: 6.676 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.5134, allocations: 123.3 kB / 1.473 GB, free: 6.551 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.5134, allocations: 0 / 1.473 GB, free: 6.551 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.5134, allocations: 4 kB / 1.473 GB, free: 6.547 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.5134, allocations: 3.938 kB / 1.473 GB, free: 6.543 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.5137, allocations: 91.94 kB / 1.473 GB, free: 6.453 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007724/0.5144, allocations: 460.2 kB / 1.474 GB, free: 5.953 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.5147, allocations: 82.48 kB / 1.474 GB, free: 5.863 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.5148, allocations: 44.94 kB / 1.474 GB, free: 5.816 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.5148, allocations: 3.984 kB / 1.474 GB, free: 5.812 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.5148, allocations: 30.56 kB / 1.474 GB, free: 5.773 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.5149, allocations: 4 kB / 1.474 GB, free: 5.77 MB / 1.17 GB Notification: Performance of matching and sorting (n=7): time 0.0005518/0.5154, allocations: 141.5 kB / 1.474 GB, free: 5.625 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.5154, allocations: 51.41 kB / 1.474 GB, free: 5.562 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.5156, allocations: 174.9 kB / 1.474 GB, free: 5.383 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.5157, allocations: 25.7 kB / 1.474 GB, free: 5.352 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 9.574e-05/0.5158, allocations: 124 kB / 1.474 GB, free: 5.227 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.5158, allocations: 19.84 kB / 1.474 GB, free: 5.207 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.5158, allocations: 25.72 kB / 1.474 GB, free: 5.176 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.516, allocations: 326.8 kB / 1.475 GB, free: 4.848 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.5161, allocations: 31.97 kB / 1.475 GB, free: 4.816 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.5162, allocations: 27.98 kB / 1.475 GB, free: 4.789 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.5164, allocations: 76.8 kB / 1.475 GB, free: 4.711 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5164, allocations: 8 kB / 1.475 GB, free: 4.703 MB / 1.17 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003049/0.5168, allocations: 121.5 kB / 1.475 GB, free: 4.578 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5168, allocations: 4 kB / 1.475 GB, free: 4.574 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5168, allocations: 0 / 1.475 GB, free: 4.574 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.5168, allocations: 0 / 1.475 GB, free: 4.574 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5169, allocations: 19.98 kB / 1.475 GB, free: 4.555 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.5169, allocations: 0 / 1.475 GB, free: 4.555 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.517, allocations: 15.88 kB / 1.475 GB, free: 4.539 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.5171, allocations: 8 kB / 1.475 GB, free: 4.531 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.0001051/0.5172, allocations: 121.8 kB / 1.475 GB, free: 4.402 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.148e-05/0.5172, allocations: 11.95 kB / 1.475 GB, free: 4.391 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003561/0.5176, allocations: 127 kB / 1.475 GB, free: 4.262 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5176, allocations: 4 kB / 1.475 GB, free: 4.258 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.5176, allocations: 0 / 1.475 GB, free: 4.258 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5176, allocations: 0 / 1.475 GB, free: 4.258 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.5178, allocations: 237.3 kB / 1.476 GB, free: 3.977 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.5178, allocations: 0 / 1.476 GB, free: 3.977 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.5179, allocations: 15.98 kB / 1.476 GB, free: 3.961 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.518, allocations: 4 kB / 1.476 GB, free: 3.957 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.518, allocations: 4 kB / 1.476 GB, free: 3.953 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.518, allocations: 4 kB / 1.476 GB, free: 3.949 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.518, allocations: 0 / 1.476 GB, free: 3.949 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003447/0.5183, allocations: 216 kB / 1.476 GB, free: 3.723 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.5184, allocations: 88.95 kB / 1.476 GB, free: 3.617 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.5184, allocations: 8 kB / 1.476 GB, free: 3.609 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.5185, allocations: 7.984 kB / 1.476 GB, free: 3.602 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.265e-05/0.5186, allocations: 3.984 kB / 1.476 GB, free: 3.598 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.5186, allocations: 4 kB / 1.476 GB, free: 3.594 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001251/0.5187, allocations: 136.2 kB / 1.476 GB, free: 3.461 MB / 1.17 GB Notification: Performance of sort global known variables: time 7e-08/0.5187, allocations: 0 / 1.476 GB, free: 3.461 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002615/0.519, allocations: 20 kB / 1.476 GB, free: 3.441 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.0007662/0.5197, allocations: 0.7631 MB / 1.477 GB, free: 2.648 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.52, allocations: 71.95 kB / 1.477 GB, free: 2.578 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.52, allocations: 0 / 1.477 GB, free: 2.578 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.5202, allocations: 39.91 kB / 1.477 GB, free: 2.539 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.5206, allocations: 39.81 kB / 1.477 GB, free: 2.5 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.5231, allocations: 1.756 MB / 1.479 GB, free: 0.6641 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.5235, allocations: 0.7117 MB / 1.479 GB, free: 15.93 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 7.907e-05/0.5236, allocations: 16.88 kB / 1.479 GB, free: 15.91 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.79e-05/0.5237, allocations: 35.64 kB / 1.479 GB, free: 15.88 MB / 1.186 GB Notification: Performance of SimCode: time 4.91e-07/0.5237, allocations: 0 / 1.479 GB, free: 15.88 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.551, allocations: 3.202 MB / 1.483 GB, free: 12.8 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.556, allocations: 9.453 kB / 1.483 GB, free: 12.8 MB / 1.186 GB " [Timeout remaining time 291] (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: 14.992657850962132]