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.001426/0.001426, 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.001599/0.001599, allocations: 215.2 kB / 23.04 MB, free: 5.07 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.351/1.351, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.874/2.874, allocations: 0.49 GB / 0.7959 GB, free: 33.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.001868/0.001868, allocations: 66.08 kB / 1.155 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2725, allocations: 176.1 MB / 1.327 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1674/0.4399, allocations: 152.3 MB / 1.475 GB, free: 9.008 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.4415, allocations: 1.164 MB / 1.477 GB, free: 7.84 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.706e-05/0.4415, allocations: 4 kB / 1.477 GB, free: 7.836 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0003021/0.4418, allocations: 59.61 kB / 1.477 GB, free: 7.777 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.0007258/0.4426, allocations: 306.7 kB / 1.477 GB, free: 7.477 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.4429, allocations: 171.3 kB / 1.477 GB, free: 7.309 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0004323/0.4434, allocations: 231.3 kB / 1.477 GB, free: 7.082 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.4435, allocations: 37.3 kB / 1.477 GB, free: 7.047 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 7.933e-05/0.4435, allocations: 55.78 kB / 1.477 GB, free: 6.992 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 9.448e-05/0.4436, allocations: 67.62 kB / 1.477 GB, free: 6.926 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.4437, allocations: 15.94 kB / 1.477 GB, free: 6.91 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005883/0.4442, allocations: 379.2 kB / 1.478 GB, free: 6.539 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 5.43e-05/0.4443, allocations: 39.89 kB / 1.478 GB, free: 6.5 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.4444, allocations: 63.67 kB / 1.478 GB, free: 6.438 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0004494/0.4448, allocations: 295 kB / 1.478 GB, free: 6.148 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.4448, allocations: 0 / 1.478 GB, free: 6.148 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.212e-06/0.4448, allocations: 0 / 1.478 GB, free: 6.148 MB / 1.17 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.4448, allocations: 0 / 1.478 GB, free: 6.148 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.0006452/0.4455, allocations: 405.3 kB / 1.479 GB, free: 5.723 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.4455, allocations: 12.03 kB / 1.479 GB, free: 5.711 MB / 1.17 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.503e-05/0.4455, allocations: 4.188 kB / 1.479 GB, free: 5.707 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.4456, allocations: 38.75 kB / 1.479 GB, free: 5.66 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004318/0.446, allocations: 52.78 kB / 1.479 GB, free: 5.609 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.4463, allocations: 153.9 kB / 1.479 GB, free: 5.434 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.4463, allocations: 8 kB / 1.479 GB, free: 5.426 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.048e-05/0.4463, allocations: 12 kB / 1.479 GB, free: 5.414 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.4466, allocations: 121.6 kB / 1.479 GB, free: 5.289 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.4466, allocations: 3.938 kB / 1.479 GB, free: 5.285 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.4466, allocations: 4 kB / 1.479 GB, free: 5.281 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4466, allocations: 4 kB / 1.479 GB, free: 5.277 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.4468, allocations: 91.94 kB / 1.479 GB, free: 5.188 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.4475, allocations: 431.2 kB / 1.48 GB, free: 4.723 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.4477, allocations: 86.55 kB / 1.48 GB, free: 4.629 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.4478, allocations: 40.88 kB / 1.48 GB, free: 4.586 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.4478, allocations: 0 / 1.48 GB, free: 4.586 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.4479, allocations: 38.56 kB / 1.48 GB, free: 4.539 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 8.21e-07/0.4479, allocations: 0 / 1.48 GB, free: 4.539 MB / 1.17 GB Notification: Performance of matching and sorting (n=7): time 0.0004323/0.4483, allocations: 137.6 kB / 1.48 GB, free: 4.398 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.4483, allocations: 55.39 kB / 1.48 GB, free: 4.332 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.4485, allocations: 178.8 kB / 1.48 GB, free: 4.148 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.4485, allocations: 29.7 kB / 1.48 GB, free: 4.113 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 8.411e-05/0.4486, allocations: 120 kB / 1.48 GB, free: 3.992 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.4487, allocations: 27.78 kB / 1.48 GB, free: 3.965 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.4487, allocations: 17.72 kB / 1.48 GB, free: 3.941 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4488, allocations: 326.8 kB / 1.481 GB, free: 3.613 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.449, allocations: 39.89 kB / 1.481 GB, free: 3.574 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.4491, allocations: 31.98 kB / 1.481 GB, free: 3.543 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.4493, allocations: 80.81 kB / 1.481 GB, free: 3.461 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4493, allocations: 0 / 1.481 GB, free: 3.461 MB / 1.17 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002768/0.4495, allocations: 113.6 kB / 1.481 GB, free: 3.344 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.4496, allocations: 4 kB / 1.481 GB, free: 3.34 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.4496, allocations: 3.938 kB / 1.481 GB, free: 3.336 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.4496, allocations: 7.984 kB / 1.481 GB, free: 3.328 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.4497, allocations: 19.92 kB / 1.481 GB, free: 3.309 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.4497, allocations: 0 / 1.481 GB, free: 3.309 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.699e-05/0.4498, allocations: 11.98 kB / 1.481 GB, free: 3.297 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.4498, allocations: 4 kB / 1.481 GB, free: 3.293 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 9.546e-05/0.4499, allocations: 122.3 kB / 1.481 GB, free: 3.164 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.984e-05/0.4499, allocations: 15.91 kB / 1.481 GB, free: 3.148 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000327/0.4503, allocations: 127 kB / 1.481 GB, free: 3.016 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.4503, allocations: 0 / 1.481 GB, free: 3.016 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.4503, allocations: 0 / 1.481 GB, free: 3.016 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4503, allocations: 4 kB / 1.481 GB, free: 3.012 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.4505, allocations: 196.5 kB / 1.481 GB, free: 2.777 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4505, allocations: 3.938 kB / 1.481 GB, free: 2.773 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.4506, allocations: 19.98 kB / 1.481 GB, free: 2.754 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4506, allocations: 3.938 kB / 1.481 GB, free: 2.75 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.4506, allocations: 0 / 1.481 GB, free: 2.75 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.4506, allocations: 3.984 kB / 1.481 GB, free: 2.746 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4506, allocations: 0 / 1.481 GB, free: 2.746 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.4509, allocations: 211.4 kB / 1.482 GB, free: 2.523 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.451, allocations: 15.91 kB / 1.482 GB, free: 2.508 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.451, allocations: 0 / 1.482 GB, free: 2.508 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.4511, allocations: 11.98 kB / 1.482 GB, free: 2.496 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.4511, allocations: 7.984 kB / 1.482 GB, free: 2.488 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.4511, allocations: 3.938 kB / 1.482 GB, free: 2.484 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001204/0.4513, allocations: 135.2 kB / 1.482 GB, free: 2.352 MB / 1.17 GB Notification: Performance of sort global known variables: time 9e-08/0.4513, allocations: 4 kB / 1.482 GB, free: 2.348 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002379/0.4515, allocations: 23.94 kB / 1.482 GB, free: 2.324 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.0006622/0.4522, allocations: 0.7443 MB / 1.482 GB, free: 1.551 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.4524, allocations: 83.94 kB / 1.483 GB, free: 1.469 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.4524, allocations: 4 kB / 1.483 GB, free: 1.465 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.4526, allocations: 31.98 kB / 1.483 GB, free: 1.434 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.4529, allocations: 35.84 kB / 1.483 GB, free: 1.398 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.4552, allocations: 1.765 MB / 1.484 GB, free: 15.55 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.4555, allocations: 0.7156 MB / 1.485 GB, free: 14.81 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 6.888e-05/0.4556, allocations: 8.984 kB / 1.485 GB, free: 14.8 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.648e-05/0.4557, allocations: 39.41 kB / 1.485 GB, free: 14.77 MB / 1.186 GB Notification: Performance of SimCode: time 3.51e-07/0.4557, allocations: 4 kB / 1.485 GB, free: 14.76 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.4778, allocations: 3.357 MB / 1.488 GB, free: 11.57 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.13, allocations: 11.67 kB / 1.488 GB, free: 11.57 MB / 1.186 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.10117092396831]