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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_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.001048/0.001048, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 194 kB / 16.53 MB, free: 6.391 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.599/2.599, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 71.75 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2703, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1502/0.4205, allocations: 149 MB / 1.198 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.422, allocations: 1.137 MB / 1.2 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.4221, allocations: 0 / 1.2 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.4225, allocations: 59.66 kB / 1.2 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0007302/0.4232, allocations: 306.6 kB / 1.2 GB, free: 1.215 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.4236, allocations: 163.3 kB / 1.2 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.424, allocations: 215.3 kB / 1.2 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.4242, allocations: 61.31 kB / 1.2 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.609e-05/0.4242, allocations: 55.78 kB / 1.2 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.209e-05/0.4243, allocations: 55.77 kB / 1.2 GB, free: 0.6758 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.4244, allocations: 12 kB / 1.2 GB, free: 0.6641 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005693/0.4249, allocations: 367.2 kB / 1.201 GB, free: 312 kB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.402e-05/0.425, allocations: 31.86 kB / 1.201 GB, free: 280 kB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.179e-05/0.4251, allocations: 67.66 kB / 1.201 GB, free: 212 kB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000467/0.4256, allocations: 287.3 kB / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4256, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4256, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.4256, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9669 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.0006857/0.4263, allocations: 462.9 kB / 1.202 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4263, allocations: 12.62 kB / 1.202 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.49e-05/0.4264, allocations: 42.73 kB / 1.202 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002837/0.4267, allocations: 40.72 kB / 1.202 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.4269, allocations: 213 kB / 1.202 GB, free: 15.08 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.4269, allocations: 12 kB / 1.202 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.62e-05/0.427, allocations: 8 kB / 1.202 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.4272, allocations: 115.1 kB / 1.202 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.4273, allocations: 3.938 kB / 1.202 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.4273, allocations: 4 kB / 1.202 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.4273, allocations: 8 kB / 1.202 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.4276, allocations: 91.94 kB / 1.202 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.4283, allocations: 464 kB / 1.203 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.4285, allocations: 86.55 kB / 1.203 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.4286, allocations: 40.94 kB / 1.203 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.4286, allocations: 4 kB / 1.203 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.4287, allocations: 30.56 kB / 1.203 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.4287, allocations: 4 kB / 1.203 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004509/0.4291, allocations: 145.5 kB / 1.203 GB, free: 14 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.4292, allocations: 51.41 kB / 1.203 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.4294, allocations: 180.1 kB / 1.203 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.4294, allocations: 25.7 kB / 1.203 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.4295, allocations: 127.8 kB / 1.203 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.4295, allocations: 19.66 kB / 1.203 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.4295, allocations: 29.7 kB / 1.203 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4296, allocations: 326.8 kB / 1.204 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.4298, allocations: 27.98 kB / 1.204 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.652e-05/0.4299, allocations: 31.97 kB / 1.204 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.4301, allocations: 76.83 kB / 1.204 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4301, allocations: 0 / 1.204 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000264/0.4304, allocations: 121.5 kB / 1.204 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.4304, allocations: 8 kB / 1.204 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4304, allocations: 4 kB / 1.204 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.4304, allocations: 0 / 1.204 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.4305, allocations: 15.98 kB / 1.204 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.4306, allocations: 0 / 1.204 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.563e-05/0.4307, allocations: 19.84 kB / 1.204 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.4307, allocations: 0 / 1.204 GB, free: 12.9 MB / 0.9669 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.527e-05/0.4308, allocations: 129.8 kB / 1.204 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.4308, allocations: 11.81 kB / 1.204 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003245/0.4311, allocations: 123.5 kB / 1.204 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4312, allocations: 0 / 1.204 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4312, allocations: 3.984 kB / 1.204 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4312, allocations: 4 kB / 1.204 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.4314, allocations: 225.5 kB / 1.204 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4314, allocations: 0 / 1.204 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.4315, allocations: 15.98 kB / 1.204 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.4315, allocations: 0 / 1.204 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.4316, allocations: 4 kB / 1.204 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4316, allocations: 0 / 1.204 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4316, allocations: 7.938 kB / 1.204 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.4319, allocations: 211.4 kB / 1.205 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.4319, allocations: 92.91 kB / 1.205 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.432, allocations: 4 kB / 1.205 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.4321, allocations: 7.984 kB / 1.205 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.4321, allocations: 4 kB / 1.205 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.4321, allocations: 0 / 1.205 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001151/0.4323, allocations: 148.2 kB / 1.205 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4323, allocations: 0 / 1.205 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002442/0.4325, allocations: 24 kB / 1.205 GB, free: 11.81 MB / 0.9669 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.0005964/0.4331, allocations: 0.7512 MB / 1.206 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000268/0.4334, allocations: 87.94 kB / 1.206 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4334, allocations: 0 / 1.206 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.4335, allocations: 43.91 kB / 1.206 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.4339, allocations: 31.97 kB / 1.206 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.436, allocations: 1.729 MB / 1.207 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.4363, allocations: 0.708 MB / 1.208 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.793e-05/0.4364, allocations: 16.88 kB / 1.208 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.4364, allocations: 39.36 kB / 1.208 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.4364, allocations: 0 / 1.208 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.057/3.493, allocations: 3.168 MB / 1.211 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.898/13.39, allocations: 5.062 kB / 1.211 GB, free: 5.238 MB / 0.9669 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) 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) Reference file matches