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.001259/0.001259, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001286/0.001286, allocations: 192.3 kB / 16.14 MB, free: 6.727 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.388/1.388, allocations: 222.9 MB / 239.8 MB, free: 4.574 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.694/2.694, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 63.91 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6193/0.6209, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1459/0.7668, allocations: 146.7 MB / 1.16 GB, free: 15.49 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.7684, allocations: 1.149 MB / 1.161 GB, free: 14.34 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.7685, allocations: 0 / 1.161 GB, free: 14.34 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.7689, allocations: 51.73 kB / 1.161 GB, free: 14.29 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0006343/0.7695, allocations: 278.9 kB / 1.161 GB, free: 14.01 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.7698, allocations: 147.5 kB / 1.162 GB, free: 13.87 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.7702, allocations: 235.3 kB / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.7703, allocations: 59.33 kB / 1.162 GB, free: 13.58 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.219e-05/0.7704, allocations: 43.8 kB / 1.162 GB, free: 13.54 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.19e-05/0.7705, allocations: 59.69 kB / 1.162 GB, free: 13.48 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.7705, allocations: 12 kB / 1.162 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005337/0.7711, allocations: 407.2 kB / 1.162 GB, free: 13.07 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.7711, allocations: 23.86 kB / 1.162 GB, free: 13.05 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.752e-05/0.7712, allocations: 67.59 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004523/0.7716, allocations: 295.2 kB / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.7716, allocations: 4 kB / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7717, allocations: 0 / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7717, allocations: 0 / 1.163 GB, free: 12.69 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.0006405/0.7723, allocations: 468.8 kB / 1.163 GB, free: 12.18 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.7724, allocations: 8.031 kB / 1.163 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.7724, allocations: 42.73 kB / 1.163 GB, free: 12.12 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.7727, allocations: 40.72 kB / 1.163 GB, free: 12.09 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.7729, allocations: 207.9 kB / 1.163 GB, free: 11.84 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.7729, allocations: 8 kB / 1.163 GB, free: 11.84 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.773, allocations: 12 kB / 1.163 GB, free: 11.82 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002521/0.7732, allocations: 119.1 kB / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.7732, allocations: 0 / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.7732, allocations: 4 kB / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7733, allocations: 4 kB / 1.164 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.7735, allocations: 87.94 kB / 1.164 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007272/0.7742, allocations: 464 kB / 1.164 GB, free: 11.11 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.7745, allocations: 94.52 kB / 1.164 GB, free: 11 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.7746, allocations: 44.89 kB / 1.164 GB, free: 10.96 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.7746, allocations: 4 kB / 1.164 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.7746, allocations: 34.5 kB / 1.164 GB, free: 10.91 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.7747, allocations: 0 / 1.164 GB, free: 10.91 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004198/0.7751, allocations: 149.5 kB / 1.164 GB, free: 10.76 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.7751, allocations: 51.41 kB / 1.164 GB, free: 10.7 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.7753, allocations: 186.7 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.7753, allocations: 25.7 kB / 1.165 GB, free: 10.47 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.7754, allocations: 119.9 kB / 1.165 GB, free: 10.35 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.7754, allocations: 19.72 kB / 1.165 GB, free: 10.33 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/0.7755, allocations: 21.7 kB / 1.165 GB, free: 10.3 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001818/0.7756, allocations: 326.8 kB / 1.165 GB, free: 9.977 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.7758, allocations: 27.98 kB / 1.165 GB, free: 9.949 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.661e-05/0.7759, allocations: 35.97 kB / 1.165 GB, free: 9.914 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.7761, allocations: 76.81 kB / 1.165 GB, free: 9.836 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.7761, allocations: 4 kB / 1.165 GB, free: 9.832 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003083/0.7764, allocations: 117.5 kB / 1.165 GB, free: 9.711 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.7764, allocations: 4 kB / 1.165 GB, free: 9.707 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.7764, allocations: 0 / 1.165 GB, free: 9.707 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.7764, allocations: 0 / 1.165 GB, free: 9.707 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.7766, allocations: 27.97 kB / 1.165 GB, free: 9.68 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.7766, allocations: 0 / 1.165 GB, free: 9.68 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.265e-05/0.7767, allocations: 19.83 kB / 1.165 GB, free: 9.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.7767, allocations: 4 kB / 1.165 GB, free: 9.656 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 8.907e-05/0.7768, allocations: 122.3 kB / 1.166 GB, free: 9.527 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.7768, allocations: 7.906 kB / 1.166 GB, free: 9.52 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.7771, allocations: 130.9 kB / 1.166 GB, free: 9.387 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.7772, allocations: 4 kB / 1.166 GB, free: 9.383 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7772, allocations: 0 / 1.166 GB, free: 9.383 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.7772, allocations: 0 / 1.166 GB, free: 9.383 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.7774, allocations: 225.5 kB / 1.166 GB, free: 9.113 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.7774, allocations: 4 kB / 1.166 GB, free: 9.109 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.7775, allocations: 15.98 kB / 1.166 GB, free: 9.094 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.7775, allocations: 0 / 1.166 GB, free: 9.094 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.7775, allocations: 4 kB / 1.166 GB, free: 9.09 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7775, allocations: 3.938 kB / 1.166 GB, free: 9.086 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7775, allocations: 4 kB / 1.166 GB, free: 9.082 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.7778, allocations: 211.3 kB / 1.166 GB, free: 8.859 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.684e-05/0.7779, allocations: 92.86 kB / 1.166 GB, free: 8.75 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.7779, allocations: 4 kB / 1.166 GB, free: 8.746 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.778, allocations: 7.984 kB / 1.166 GB, free: 8.738 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.7781, allocations: 0 / 1.166 GB, free: 8.738 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.852e-06/0.7781, allocations: 8 kB / 1.166 GB, free: 8.73 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001082/0.7782, allocations: 137.2 kB / 1.166 GB, free: 8.598 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7782, allocations: 3.938 kB / 1.166 GB, free: 8.594 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002495/0.7785, allocations: 24 kB / 1.166 GB, free: 8.57 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.0005893/0.779, allocations: 0.7558 MB / 1.167 GB, free: 7.789 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002797/0.7793, allocations: 76.02 kB / 1.167 GB, free: 7.715 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7793, allocations: 0 / 1.167 GB, free: 7.715 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.7795, allocations: 43.91 kB / 1.167 GB, free: 7.672 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.7799, allocations: 33.23 kB / 1.167 GB, free: 7.641 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.782, allocations: 1.784 MB / 1.169 GB, free: 5.777 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.7823, allocations: 0.7082 MB / 1.17 GB, free: 5.043 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 8.715e-05/0.7824, allocations: 12.88 kB / 1.17 GB, free: 5.031 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.426e-05/0.7825, allocations: 35.64 kB / 1.17 GB, free: 4.996 MB / 0.92 GB Notification: Performance of SimCode: time 4.2e-07/0.7825, allocations: 0 / 1.17 GB, free: 4.996 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4502/1.233, allocations: 2.946 MB / 1.173 GB, free: 2.188 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002778/1.233, allocations: 216.8 kB / 1.173 GB, free: 1.934 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.97/3.203, allocations: 0 / 1.173 GB, free: 1.934 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