Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008035/0.008035, allocations: 99.14 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 196.9 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 60.25 kB / 0.9504 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2636, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1482/0.4119, allocations: 149 MB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.4134, allocations: 1.133 MB / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.4136, allocations: 4 kB / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003569/0.414, allocations: 55.67 kB / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007913/0.4148, allocations: 306.6 kB / 1.234 GB, free: 10.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000377/0.4152, allocations: 171.3 kB / 1.235 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004619/0.4157, allocations: 215.3 kB / 1.235 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.4158, allocations: 59.89 kB / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.243e-05/0.4159, allocations: 55.78 kB / 1.235 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.08e-05/0.416, allocations: 55.77 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.416, allocations: 12 kB / 1.235 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005798/0.4166, allocations: 371.2 kB / 1.235 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.743e-05/0.4167, allocations: 27.86 kB / 1.235 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.545e-05/0.4168, allocations: 71.64 kB / 1.235 GB, free: 9.914 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004836/0.4173, allocations: 288.1 kB / 1.236 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4173, allocations: 0 / 1.236 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.542e-06/0.4173, allocations: 0 / 1.236 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.4173, allocations: 0 / 1.236 GB, free: 9.633 MB / 0.9981 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.0006692/0.418, allocations: 474.8 kB / 1.236 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.418, allocations: 8.031 kB / 1.236 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.81e-05/0.4181, allocations: 46.73 kB / 1.236 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.4184, allocations: 44.66 kB / 1.236 GB, free: 9.016 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.4187, allocations: 201.3 kB / 1.236 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.4187, allocations: 8 kB / 1.236 GB, free: 8.773 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.4187, allocations: 12 kB / 1.236 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.419, allocations: 117.5 kB / 1.237 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.419, allocations: 0 / 1.237 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.419, allocations: 8 kB / 1.237 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4191, allocations: 0 / 1.237 GB, free: 8.633 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.4193, allocations: 95.92 kB / 1.237 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007077/0.42, allocations: 456 kB / 1.237 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.4203, allocations: 98.53 kB / 1.237 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.4204, allocations: 40.89 kB / 1.237 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.4204, allocations: 0 / 1.237 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4204, allocations: 30.56 kB / 1.237 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.4204, allocations: 0 / 1.237 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004503/0.4209, allocations: 145.5 kB / 1.237 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/0.4209, allocations: 55.41 kB / 1.237 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.4211, allocations: 187.3 kB / 1.238 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.4211, allocations: 29.7 kB / 1.238 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.072e-05/0.4212, allocations: 115.9 kB / 1.238 GB, free: 7.297 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.4212, allocations: 23.66 kB / 1.238 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.4213, allocations: 21.7 kB / 1.238 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.4214, allocations: 326.8 kB / 1.238 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.4215, allocations: 31.92 kB / 1.238 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.4216, allocations: 35.91 kB / 1.238 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.4218, allocations: 80.75 kB / 1.238 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4219, allocations: 0 / 1.238 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002797/0.4221, allocations: 121.5 kB / 1.238 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4222, allocations: 4 kB / 1.238 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4222, allocations: 0 / 1.238 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.4222, allocations: 0 / 1.238 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.4223, allocations: 23.92 kB / 1.238 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4223, allocations: 0 / 1.238 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.4225, allocations: 19.77 kB / 1.238 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.4225, allocations: 8 kB / 1.238 GB, free: 6.59 MB / 0.9981 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.206e-05/0.4226, allocations: 117.8 kB / 1.239 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.4226, allocations: 11.81 kB / 1.239 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003293/0.4229, allocations: 127.6 kB / 1.239 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.423, allocations: 0 / 1.239 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.423, allocations: 4 kB / 1.239 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.423, allocations: 7.875 kB / 1.239 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.4232, allocations: 217.6 kB / 1.239 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4232, allocations: 0 / 1.239 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.4233, allocations: 23.98 kB / 1.239 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4233, allocations: 0 / 1.239 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.4233, allocations: 4 kB / 1.239 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4233, allocations: 0 / 1.239 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4234, allocations: 0 / 1.239 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.4237, allocations: 215.3 kB / 1.239 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.4237, allocations: 85.02 kB / 1.239 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.4238, allocations: 8 kB / 1.239 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.4239, allocations: 7.984 kB / 1.239 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.4239, allocations: 7.875 kB / 1.239 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.4239, allocations: 4 kB / 1.239 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001004/0.424, allocations: 135.2 kB / 1.239 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.424, allocations: 0 / 1.239 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00024/0.4243, allocations: 23.94 kB / 1.239 GB, free: 5.516 MB / 0.9981 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.0006126/0.4249, allocations: 0.7435 MB / 1.24 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002794/0.4252, allocations: 83.88 kB / 1.24 GB, free: 4.66 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4252, allocations: 4 kB / 1.24 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.4253, allocations: 43.91 kB / 1.24 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.4257, allocations: 37.58 kB / 1.24 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.4278, allocations: 1.747 MB / 1.242 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.4281, allocations: 0.7002 MB / 1.243 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.2e-05/0.4282, allocations: 16.88 kB / 1.243 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.412e-05/0.4283, allocations: 43.36 kB / 1.243 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/0.4283, allocations: 0 / 1.243 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.4466, allocations: 3.238 MB / 1.246 GB, free: 14.86 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.156/7.603, allocations: 7.984 kB / 1.246 GB, free: 14.86 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches