Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_10_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.007639/0.007639, allocations: 104.1 kB / 15.73 MB, free: 5.578 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.001699/0.001699, allocations: 190 kB / 16.67 MB, free: 5.516 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.37/2.37, allocations: 437 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 64.12 kB / 1.018 GB, free: 9.867 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7764/0.7779, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1532/0.9311, allocations: 149 MB / 1.312 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001405/0.9326, allocations: 1.121 MB / 1.313 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.926e-05/0.9327, allocations: 8 kB / 1.313 GB, free: 13.04 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003223/0.933, allocations: 67.59 kB / 1.313 GB, free: 12.98 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0006774/0.9337, allocations: 310.6 kB / 1.313 GB, free: 12.67 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.934, allocations: 171.4 kB / 1.313 GB, free: 12.5 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003944/0.9344, allocations: 223.2 kB / 1.314 GB, free: 12.29 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.9346, allocations: 55.34 kB / 1.314 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.827e-05/0.9346, allocations: 51.78 kB / 1.314 GB, free: 12.18 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.175e-05/0.9347, allocations: 63.7 kB / 1.314 GB, free: 12.12 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.9348, allocations: 12 kB / 1.314 GB, free: 12.11 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005335/0.9353, allocations: 363.3 kB / 1.314 GB, free: 11.75 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.794e-05/0.9354, allocations: 35.86 kB / 1.314 GB, free: 11.72 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.9354, allocations: 63.66 kB / 1.314 GB, free: 11.66 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.9358, allocations: 299.1 kB / 1.314 GB, free: 11.36 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.9359, allocations: 0 / 1.314 GB, free: 11.36 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9359, allocations: 0 / 1.314 GB, free: 11.36 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.9359, allocations: 0 / 1.314 GB, free: 11.36 MB / 1.045 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.0006171/0.9365, allocations: 462.9 kB / 1.315 GB, free: 10.86 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.9365, allocations: 8.922 kB / 1.315 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.014e-05/0.9366, allocations: 46.73 kB / 1.315 GB, free: 10.8 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.9369, allocations: 40.72 kB / 1.315 GB, free: 10.76 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.9371, allocations: 214 kB / 1.315 GB, free: 10.52 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.9372, allocations: 12 kB / 1.315 GB, free: 10.5 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.9372, allocations: 7.938 kB / 1.315 GB, free: 10.5 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.9374, allocations: 119.8 kB / 1.315 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.9374, allocations: 0 / 1.315 GB, free: 10.38 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.9375, allocations: 4 kB / 1.315 GB, free: 10.37 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.9375, allocations: 8 kB / 1.315 GB, free: 10.36 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002363/0.9377, allocations: 87.94 kB / 1.315 GB, free: 10.28 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006386/0.9384, allocations: 456.1 kB / 1.316 GB, free: 9.781 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.9386, allocations: 90.55 kB / 1.316 GB, free: 9.684 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.9387, allocations: 48.92 kB / 1.316 GB, free: 9.633 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.9387, allocations: 0 / 1.316 GB, free: 9.633 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.9388, allocations: 34.56 kB / 1.316 GB, free: 9.59 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 9.31e-07/0.9388, allocations: 0 / 1.316 GB, free: 9.59 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004295/0.9392, allocations: 149.4 kB / 1.316 GB, free: 9.438 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.9392, allocations: 55.41 kB / 1.316 GB, free: 9.371 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.9394, allocations: 182.4 kB / 1.316 GB, free: 9.184 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.9394, allocations: 25.7 kB / 1.316 GB, free: 9.152 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.9395, allocations: 112 kB / 1.316 GB, free: 9.039 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.9395, allocations: 19.72 kB / 1.317 GB, free: 9.02 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.9396, allocations: 21.7 kB / 1.317 GB, free: 8.992 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.9397, allocations: 330.8 kB / 1.317 GB, free: 8.66 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.9398, allocations: 35.92 kB / 1.317 GB, free: 8.625 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.443e-05/0.9399, allocations: 36.28 kB / 1.317 GB, free: 8.59 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.9401, allocations: 72.97 kB / 1.317 GB, free: 8.516 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.9401, allocations: 0 / 1.317 GB, free: 8.516 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002524/0.9404, allocations: 125.4 kB / 1.317 GB, free: 8.387 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.9404, allocations: 10.66 kB / 1.317 GB, free: 8.379 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.9404, allocations: 0 / 1.317 GB, free: 8.379 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.9404, allocations: 4 kB / 1.317 GB, free: 8.375 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.9406, allocations: 19.98 kB / 1.317 GB, free: 8.355 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.9406, allocations: 0 / 1.317 GB, free: 8.355 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.679e-05/0.9407, allocations: 7.938 kB / 1.317 GB, free: 8.348 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.9407, allocations: 4 kB / 1.317 GB, free: 8.344 MB / 1.045 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.0001006/0.9408, allocations: 125.8 kB / 1.317 GB, free: 8.211 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.536e-05/0.9408, allocations: 19.81 kB / 1.317 GB, free: 8.191 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000307/0.9412, allocations: 126.9 kB / 1.317 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.9412, allocations: 0 / 1.317 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.9412, allocations: 3.984 kB / 1.317 GB, free: 8.059 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.9412, allocations: 0 / 1.317 GB, free: 8.059 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.9414, allocations: 225.5 kB / 1.318 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.9414, allocations: 4 kB / 1.318 GB, free: 7.785 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.9415, allocations: 15.98 kB / 1.318 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.9415, allocations: 4 kB / 1.318 GB, free: 7.766 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.9415, allocations: 0 / 1.318 GB, free: 7.766 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.9415, allocations: 0 / 1.318 GB, free: 7.766 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.9416, allocations: 0 / 1.318 GB, free: 7.766 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.9419, allocations: 215.2 kB / 1.318 GB, free: 7.539 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.9419, allocations: 92.94 kB / 1.318 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.9419, allocations: 0 / 1.318 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.9421, allocations: 15.98 kB / 1.318 GB, free: 7.414 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.907e-05/0.9421, allocations: 4 kB / 1.318 GB, free: 7.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.9421, allocations: 0 / 1.318 GB, free: 7.41 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001139/0.9422, allocations: 136.2 kB / 1.318 GB, free: 7.277 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9422, allocations: 0 / 1.318 GB, free: 7.277 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002347/0.9425, allocations: 23.91 kB / 1.318 GB, free: 7.254 MB / 1.045 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.0006054/0.9431, allocations: 0.7513 MB / 1.319 GB, free: 6.473 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.9434, allocations: 75.94 kB / 1.319 GB, free: 6.398 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.9434, allocations: 0 / 1.319 GB, free: 6.398 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.9435, allocations: 39.92 kB / 1.319 GB, free: 6.359 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.9438, allocations: 36.53 kB / 1.319 GB, free: 6.324 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.9459, allocations: 1.756 MB / 1.321 GB, free: 4.484 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.9461, allocations: 0.7157 MB / 1.321 GB, free: 3.742 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 6.47e-05/0.9462, allocations: 20.86 kB / 1.321 GB, free: 3.723 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.077e-05/0.9463, allocations: 35.64 kB / 1.321 GB, free: 3.688 MB / 1.045 GB Notification: Performance of SimCode: time 2.2e-07/0.9463, allocations: 0 / 1.321 GB, free: 3.688 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.9648, allocations: 3.207 MB / 1.325 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.089/8.054, allocations: 5.109 kB / 1.325 GB, free: 0.6133 MB / 1.045 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches