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.001436/0.001436, 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.001831/0.001831, allocations: 219.6 kB / 23.03 MB, free: 4.941 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.354/1.354, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.929/2.929, allocations: 0.5003 GB / 0.8062 GB, free: 28.28 MB / 0.6231 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.001816/0.001816, allocations: 71.08 kB / 1.171 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3096, allocations: 179 MB / 1.345 GB, free: 15.92 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1521/0.4618, allocations: 130.9 MB / 1.473 GB, free: 12.5 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.001569/0.4633, allocations: 1.048 MB / 1.474 GB, free: 11.45 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.4635, allocations: 4 kB / 1.474 GB, free: 11.45 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.0003372/0.4638, allocations: 51.62 kB / 1.474 GB, free: 11.4 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.0008293/0.4646, allocations: 314.7 kB / 1.475 GB, free: 11.09 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.465, allocations: 163.3 kB / 1.475 GB, free: 10.93 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.4655, allocations: 233.8 kB / 1.475 GB, free: 10.7 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.4656, allocations: 37.3 kB / 1.475 GB, free: 10.66 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 9.027e-05/0.4657, allocations: 55.83 kB / 1.475 GB, free: 10.61 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.4658, allocations: 63.64 kB / 1.475 GB, free: 10.55 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.4658, allocations: 12 kB / 1.475 GB, free: 10.54 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004202/0.4662, allocations: 239.5 kB / 1.475 GB, free: 10.3 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.4663, allocations: 27.91 kB / 1.475 GB, free: 10.27 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.4664, allocations: 55.67 kB / 1.475 GB, free: 10.22 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.4668, allocations: 275 kB / 1.476 GB, free: 9.949 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4668, allocations: 4 kB / 1.476 GB, free: 9.945 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4668, allocations: 0 / 1.476 GB, free: 9.945 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.4668, allocations: 0 / 1.476 GB, free: 9.945 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.0006455/0.4675, allocations: 401.3 kB / 1.476 GB, free: 9.523 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.4675, allocations: 8.031 kB / 1.476 GB, free: 9.516 MB / 1.17 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.441e-05/0.4675, allocations: 4.188 kB / 1.476 GB, free: 9.512 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.4676, allocations: 46.73 kB / 1.476 GB, free: 9.457 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004569/0.468, allocations: 44.8 kB / 1.476 GB, free: 9.414 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.4683, allocations: 158.7 kB / 1.476 GB, free: 9.234 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.4683, allocations: 8 kB / 1.476 GB, free: 9.227 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.4683, allocations: 8 kB / 1.476 GB, free: 9.219 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.4686, allocations: 125.5 kB / 1.476 GB, free: 9.09 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.4686, allocations: 0 / 1.476 GB, free: 9.09 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.4686, allocations: 4 kB / 1.476 GB, free: 9.086 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.4686, allocations: 7.938 kB / 1.476 GB, free: 9.078 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.4689, allocations: 87.94 kB / 1.477 GB, free: 8.992 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006904/0.4696, allocations: 407.3 kB / 1.477 GB, free: 8.551 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.4698, allocations: 86.53 kB / 1.477 GB, free: 8.457 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.4699, allocations: 40.94 kB / 1.477 GB, free: 8.414 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.4699, allocations: 3.984 kB / 1.477 GB, free: 8.41 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.47, allocations: 34.56 kB / 1.477 GB, free: 8.367 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.47, allocations: 4 kB / 1.477 GB, free: 8.363 MB / 1.17 GB Notification: Performance of matching and sorting (n=7): time 0.0004403/0.4704, allocations: 137.5 kB / 1.477 GB, free: 8.223 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.4704, allocations: 51.41 kB / 1.477 GB, free: 8.16 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.4706, allocations: 186.2 kB / 1.477 GB, free: 7.969 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.4706, allocations: 25.7 kB / 1.477 GB, free: 7.938 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 7.676e-05/0.4707, allocations: 116 kB / 1.478 GB, free: 7.82 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 2.847e-05/0.4707, allocations: 31.77 kB / 1.478 GB, free: 7.789 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.4708, allocations: 21.72 kB / 1.478 GB, free: 7.762 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.4709, allocations: 318.8 kB / 1.478 GB, free: 7.441 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.471, allocations: 35.97 kB / 1.478 GB, free: 7.406 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.542e-05/0.4711, allocations: 35.98 kB / 1.478 GB, free: 7.371 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.4713, allocations: 76.81 kB / 1.478 GB, free: 7.293 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4713, allocations: 0 / 1.478 GB, free: 7.293 MB / 1.17 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002649/0.4716, allocations: 117.5 kB / 1.478 GB, free: 7.172 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.4716, allocations: 9.719 kB / 1.478 GB, free: 7.164 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.4716, allocations: 0 / 1.478 GB, free: 7.164 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.4716, allocations: 4 kB / 1.478 GB, free: 7.16 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.4718, allocations: 15.98 kB / 1.478 GB, free: 7.145 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4718, allocations: 3.938 kB / 1.478 GB, free: 7.141 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.4719, allocations: 19.94 kB / 1.478 GB, free: 7.121 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.4719, allocations: 0 / 1.478 GB, free: 7.121 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.736e-05/0.472, allocations: 121.8 kB / 1.478 GB, free: 6.992 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.472, allocations: 7.953 kB / 1.478 GB, free: 6.984 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.4723, allocations: 127 kB / 1.478 GB, free: 6.855 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4723, allocations: 4 kB / 1.478 GB, free: 6.852 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4723, allocations: 3.938 kB / 1.478 GB, free: 6.848 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.4723, allocations: 0 / 1.478 GB, free: 6.848 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.4725, allocations: 192.5 kB / 1.479 GB, free: 6.617 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4725, allocations: 0 / 1.479 GB, free: 6.617 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.4726, allocations: 15.98 kB / 1.479 GB, free: 6.602 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.4726, allocations: 0 / 1.479 GB, free: 6.602 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.4727, allocations: 4 kB / 1.479 GB, free: 6.598 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4727, allocations: 3.938 kB / 1.479 GB, free: 6.594 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4727, allocations: 3.938 kB / 1.479 GB, free: 6.59 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.4729, allocations: 208 kB / 1.479 GB, free: 6.371 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.473, allocations: 19.89 kB / 1.479 GB, free: 6.352 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.473, allocations: 0 / 1.479 GB, free: 6.352 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.4731, allocations: 4 kB / 1.479 GB, free: 6.348 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.4732, allocations: 11.92 kB / 1.479 GB, free: 6.336 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.4732, allocations: 4 kB / 1.479 GB, free: 6.332 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0001168/0.4733, allocations: 140.2 kB / 1.479 GB, free: 6.195 MB / 1.17 GB Notification: Performance of sort global known variables: time 1e-07/0.4733, allocations: 0 / 1.479 GB, free: 6.195 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002355/0.4735, allocations: 20 kB / 1.479 GB, free: 6.176 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.0006557/0.4742, allocations: 0.7553 MB / 1.48 GB, free: 5.391 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0002558/0.4744, allocations: 67.95 kB / 1.48 GB, free: 5.324 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.4744, allocations: 0 / 1.48 GB, free: 5.324 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.4745, allocations: 43.92 kB / 1.48 GB, free: 5.281 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.4749, allocations: 35.81 kB / 1.48 GB, free: 5.246 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.477, allocations: 1.755 MB / 1.482 GB, free: 3.414 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.492e-05/0.4771, allocations: 102.1 kB / 1.482 GB, free: 3.297 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 7.326e-05/0.4772, allocations: 20.95 kB / 1.482 GB, free: 3.277 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.274e-05/0.4773, allocations: 31.44 kB / 1.482 GB, free: 3.246 MB / 1.17 GB Notification: Performance of SimCode: time 2.61e-07/0.4773, allocations: 0 / 1.482 GB, free: 3.246 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.499, allocations: 3.528 MB / 1.485 GB, free: 15.9 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.85, allocations: 4.062 kB / 1.485 GB, free: 15.9 MB / 1.186 GB " [Timeout remaining time 289] (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: 16.95053110003937]