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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009674/0.0009675, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006614/0.006614, allocations: 170 kB / 16.26 MB, free: 6.613 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.371/1.371, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.583/2.583, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003762, allocations: 12 kB / 0.873 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7636, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1659/0.9296, allocations: 144.8 MB / 1.165 GB, free: 14.45 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001586/0.9312, allocations: 1.137 MB / 1.166 GB, free: 13.31 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.9314, allocations: 4 kB / 1.166 GB, free: 13.3 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.9317, allocations: 51.8 kB / 1.166 GB, free: 13.25 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0008285/0.9326, allocations: 266.9 kB / 1.166 GB, free: 12.99 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.933, allocations: 155.5 kB / 1.166 GB, free: 12.84 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004612/0.9334, allocations: 235.2 kB / 1.166 GB, free: 12.61 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.9336, allocations: 55.34 kB / 1.166 GB, free: 12.56 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.666e-05/0.9337, allocations: 31.86 kB / 1.166 GB, free: 12.53 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.508e-05/0.9338, allocations: 55.69 kB / 1.167 GB, free: 12.48 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.9338, allocations: 4 kB / 1.167 GB, free: 12.47 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006156/0.9344, allocations: 411.1 kB / 1.167 GB, free: 12.07 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.503e-05/0.9345, allocations: 19.92 kB / 1.167 GB, free: 12.05 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.915e-05/0.9346, allocations: 73.31 kB / 1.167 GB, free: 11.97 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.935, allocations: 291.2 kB / 1.167 GB, free: 11.69 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.935, allocations: 7.938 kB / 1.167 GB, free: 11.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.845e-06/0.9351, allocations: 0 / 1.167 GB, free: 11.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.9351, allocations: 0 / 1.167 GB, free: 11.68 MB / 0.92 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.0007061/0.9358, allocations: 447 kB / 1.168 GB, free: 11.2 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.9358, allocations: 8.031 kB / 1.168 GB, free: 11.19 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.655e-05/0.9359, allocations: 46.73 kB / 1.168 GB, free: 11.13 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003094/0.9362, allocations: 48.66 kB / 1.168 GB, free: 11.09 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.9365, allocations: 205.5 kB / 1.168 GB, free: 10.85 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.9365, allocations: 8 kB / 1.168 GB, free: 10.84 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.9365, allocations: 12 kB / 1.168 GB, free: 10.83 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.9368, allocations: 126.8 kB / 1.168 GB, free: 10.7 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.9368, allocations: 7.984 kB / 1.168 GB, free: 10.69 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.9369, allocations: 4 kB / 1.168 GB, free: 10.69 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.9369, allocations: 4 kB / 1.168 GB, free: 10.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002788/0.9372, allocations: 99.92 kB / 1.168 GB, free: 10.59 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.9379, allocations: 460 kB / 1.169 GB, free: 10.09 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.9381, allocations: 102.5 kB / 1.169 GB, free: 9.977 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.9383, allocations: 44.83 kB / 1.169 GB, free: 9.93 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.9383, allocations: 4 kB / 1.169 GB, free: 9.926 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.9383, allocations: 30.56 kB / 1.169 GB, free: 9.887 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.9384, allocations: 0 / 1.169 GB, free: 9.887 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004732/0.9388, allocations: 161.5 kB / 1.169 GB, free: 9.723 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.9389, allocations: 51.41 kB / 1.169 GB, free: 9.66 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.9391, allocations: 182.7 kB / 1.169 GB, free: 9.473 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.9391, allocations: 33.7 kB / 1.169 GB, free: 9.434 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.604e-05/0.9392, allocations: 115.9 kB / 1.169 GB, free: 9.316 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.9392, allocations: 19.72 kB / 1.169 GB, free: 9.297 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.9393, allocations: 21.64 kB / 1.169 GB, free: 9.27 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.9394, allocations: 326.8 kB / 1.17 GB, free: 8.941 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.9395, allocations: 39.92 kB / 1.17 GB, free: 8.902 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.9396, allocations: 43.95 kB / 1.17 GB, free: 8.859 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.9399, allocations: 80.83 kB / 1.17 GB, free: 8.777 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9399, allocations: 0 / 1.17 GB, free: 8.777 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002942/0.9402, allocations: 125.5 kB / 1.17 GB, free: 8.648 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.9402, allocations: 8 kB / 1.17 GB, free: 8.641 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.9402, allocations: 0 / 1.17 GB, free: 8.641 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.9402, allocations: 0 / 1.17 GB, free: 8.641 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.9404, allocations: 27.92 kB / 1.17 GB, free: 8.613 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.9404, allocations: 4 kB / 1.17 GB, free: 8.609 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.9405, allocations: 15.84 kB / 1.17 GB, free: 8.594 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.9405, allocations: 4 kB / 1.17 GB, free: 8.59 MB / 0.92 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.0001123/0.9406, allocations: 126.3 kB / 1.17 GB, free: 8.457 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.761e-05/0.9407, allocations: 15.81 kB / 1.17 GB, free: 8.441 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000351/0.941, allocations: 131 kB / 1.17 GB, free: 8.309 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.9411, allocations: 3.984 kB / 1.17 GB, free: 8.305 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.9411, allocations: 0 / 1.17 GB, free: 8.305 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.9411, allocations: 3.938 kB / 1.17 GB, free: 8.301 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.9413, allocations: 225.5 kB / 1.171 GB, free: 8.031 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.9413, allocations: 0 / 1.171 GB, free: 8.031 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.9414, allocations: 19.98 kB / 1.171 GB, free: 8.012 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.972e-06/0.9415, allocations: 4 kB / 1.171 GB, free: 8.008 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.9415, allocations: 0 / 1.171 GB, free: 8.008 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.9415, allocations: 0 / 1.171 GB, free: 8.008 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.9415, allocations: 0 / 1.171 GB, free: 8.008 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.9418, allocations: 219.4 kB / 1.171 GB, free: 7.777 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.9419, allocations: 100.8 kB / 1.171 GB, free: 7.66 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.9419, allocations: 0 / 1.171 GB, free: 7.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.9421, allocations: 15.98 kB / 1.171 GB, free: 7.645 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.9421, allocations: 7.938 kB / 1.171 GB, free: 7.637 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.9421, allocations: 3.938 kB / 1.171 GB, free: 7.633 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001292/0.9423, allocations: 137.2 kB / 1.171 GB, free: 7.5 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.094e-06/0.9423, allocations: 4 kB / 1.171 GB, free: 7.496 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002604/0.9425, allocations: 23.94 kB / 1.171 GB, free: 7.473 MB / 0.92 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.000741/0.9433, allocations: 0.7676 MB / 1.172 GB, free: 6.68 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003087/0.9436, allocations: 87.95 kB / 1.172 GB, free: 6.594 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9436, allocations: 4 kB / 1.172 GB, free: 6.59 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.9437, allocations: 43.97 kB / 1.172 GB, free: 6.547 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/0.9444, allocations: 31.98 kB / 1.172 GB, free: 6.516 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002439/0.9468, allocations: 1.82 MB / 1.174 GB, free: 4.617 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.9471, allocations: 0.716 MB / 1.174 GB, free: 3.875 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.999e-05/0.9472, allocations: 8.891 kB / 1.174 GB, free: 3.867 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.771e-05/0.9473, allocations: 39.42 kB / 1.174 GB, free: 3.828 MB / 0.92 GB Notification: Performance of SimCode: time 5.92e-07/0.9473, allocations: 0 / 1.174 GB, free: 3.828 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01461/0.9619, allocations: 2.852 MB / 1.177 GB, free: 1.137 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/0.9623, allocations: 219 kB / 1.177 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.797, allocations: 4.062 kB / 1.177 GB, free: 0.8789 MB / 0.92 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