Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.385/1.385, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001178/0.001177, allocations: 180.1 kB / 326.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.4 MB / 0.5777 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007371/0.000737, allocations: 86.3 kB / 0.6822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003657, allocations: 12.72 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2505, allocations: 106.3 MB / 0.9003 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1705/0.421, allocations: 135.1 MB / 1.032 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.4225, allocations: 1.056 MB / 1.033 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.4227, allocations: 0 / 1.033 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002787/0.423, allocations: 35.73 kB / 1.033 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0006742/0.4236, allocations: 199 kB / 1.034 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.424, allocations: 139.5 kB / 1.034 GB, free: 6.859 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.4244, allocations: 219.3 kB / 1.034 GB, free: 6.645 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.4245, allocations: 49.28 kB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 7.83e-05/0.4246, allocations: 35.8 kB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 8.387e-05/0.4247, allocations: 43.77 kB / 1.034 GB, free: 6.516 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.4247, allocations: 4 kB / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000473/0.4252, allocations: 283.5 kB / 1.034 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 5.134e-05/0.4253, allocations: 23.84 kB / 1.034 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/0.4253, allocations: 49.64 kB / 1.034 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.4256, allocations: 195.9 kB / 1.035 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4257, allocations: 0 / 1.035 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.033e-06/0.4257, allocations: 0 / 1.035 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.4257, allocations: 0 / 1.035 GB, free: 5.965 MB / 0.6823 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.000723/0.4264, allocations: 450.8 kB / 1.035 GB, free: 5.477 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4265, allocations: 12.03 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.644e-05/0.4265, allocations: 46.5 kB / 1.035 GB, free: 5.41 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002974/0.4268, allocations: 43.72 kB / 1.035 GB, free: 5.367 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.4271, allocations: 210.8 kB / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4271, allocations: 8 kB / 1.035 GB, free: 5.113 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.4272, allocations: 8 kB / 1.035 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.4275, allocations: 125.6 kB / 1.035 GB, free: 4.977 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.4275, allocations: 3.953 kB / 1.035 GB, free: 4.973 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.4275, allocations: 4 kB / 1.035 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.4275, allocations: 4 kB / 1.035 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/0.4278, allocations: 96.59 kB / 1.035 GB, free: 4.871 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007843/0.4286, allocations: 464.2 kB / 1.036 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.4288, allocations: 94.55 kB / 1.036 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.429, allocations: 44.94 kB / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.429, allocations: 0 / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.4291, allocations: 34.56 kB / 1.036 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 8.91e-07/0.4291, allocations: 4 kB / 1.036 GB, free: 4.172 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004968/0.4296, allocations: 161.3 kB / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.4296, allocations: 59.41 kB / 1.036 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.4298, allocations: 186.7 kB / 1.036 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.4299, allocations: 25.7 kB / 1.037 GB, free: 3.715 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.43, allocations: 120 kB / 1.037 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.355e-05/0.43, allocations: 19.7 kB / 1.037 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.43, allocations: 4 kB / 1.037 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.4302, allocations: 318.8 kB / 1.037 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.4303, allocations: 43.97 kB / 1.037 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001051/0.4304, allocations: 31.98 kB / 1.037 GB, free: 3.176 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.4305, allocations: 39.98 kB / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.4305, allocations: 3.938 kB / 1.037 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002901/0.4308, allocations: 137.4 kB / 1.037 GB, free: 2.992 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4309, allocations: 8 kB / 1.037 GB, free: 2.984 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4309, allocations: 0 / 1.037 GB, free: 2.984 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.4309, allocations: 0 / 1.037 GB, free: 2.984 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.4311, allocations: 23.94 kB / 1.037 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.4311, allocations: 4 kB / 1.037 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.4312, allocations: 11.94 kB / 1.037 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.4312, allocations: 11.92 kB / 1.037 GB, free: 2.934 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.4313, allocations: 117.8 kB / 1.037 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/0.4314, allocations: 11.81 kB / 1.037 GB, free: 2.797 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003726/0.4318, allocations: 143.5 kB / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4318, allocations: 0 / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.4318, allocations: 3.953 kB / 1.038 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4318, allocations: 0 / 1.038 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.4321, allocations: 217.6 kB / 1.038 GB, free: 2.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4321, allocations: 0 / 1.038 GB, free: 2.387 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.4322, allocations: 19.98 kB / 1.038 GB, free: 2.367 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.4322, allocations: 4 kB / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.4322, allocations: 4 kB / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4322, allocations: 0 / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4322, allocations: 0 / 1.038 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.4326, allocations: 231.3 kB / 1.038 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.154e-05/0.4326, allocations: 92.94 kB / 1.038 GB, free: 2.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.4327, allocations: 0 / 1.038 GB, free: 2.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.4328, allocations: 15.98 kB / 1.038 GB, free: 1.992 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.4329, allocations: 0 / 1.038 GB, free: 1.992 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.4329, allocations: 4 kB / 1.038 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001194/0.433, allocations: 131.2 kB / 1.038 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.433, allocations: 0 / 1.038 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002338/0.4333, allocations: 35.86 kB / 1.038 GB, free: 1.824 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007652/0.434, allocations: 0.7553 MB / 1.039 GB, free: 1.039 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002806/0.4343, allocations: 79.95 kB / 1.039 GB, free: 0.9609 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4343, allocations: 4 kB / 1.039 GB, free: 0.957 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.4345, allocations: 47.91 kB / 1.039 GB, free: 0.9102 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.4349, allocations: 31.78 kB / 1.039 GB, free: 0.8828 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.4365, allocations: 0.8504 MB / 1.04 GB, free: 15.98 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.4369, allocations: 0.716 MB / 1.041 GB, free: 15.24 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.202e-05/0.4369, allocations: 12.88 kB / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.861e-05/0.437, allocations: 39.36 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of SimCode: time 3.81e-07/0.437, allocations: 0 / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0142/0.4512, allocations: 2.884 MB / 1.044 GB, free: 12.5 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.4515, allocations: 212 kB / 1.044 GB, free: 12.26 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.229, allocations: 0 / 1.044 GB, free: 12.26 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)