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.544/1.544, allocations: 252 MB / 267.3 MB, free: 10.85 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.001158/0.001157, allocations: 172.1 kB / 327 MB, free: 2.109 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.4 MB / 0.578 GB, free: 20.07 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.0009097/0.0009098, allocations: 78.38 kB / 0.6826 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003581, allocations: 12.66 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2507, allocations: 106.3 MB / 0.9009 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1698/0.4205, allocations: 144.9 MB / 1.042 GB, free: 14 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.4222, allocations: 1.129 MB / 1.043 GB, free: 12.87 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.4223, allocations: 11.94 kB / 1.043 GB, free: 12.86 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.4227, allocations: 39.8 kB / 1.044 GB, free: 12.82 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0007952/0.4235, allocations: 286.9 kB / 1.044 GB, free: 12.54 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003178/0.4238, allocations: 151.5 kB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.4243, allocations: 227.3 kB / 1.044 GB, free: 12.16 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.4244, allocations: 53.11 kB / 1.044 GB, free: 12.11 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.672e-05/0.4245, allocations: 43.83 kB / 1.044 GB, free: 12.07 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.4246, allocations: 47.72 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.4247, allocations: 4 kB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006019/0.4253, allocations: 407.1 kB / 1.045 GB, free: 11.62 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.4253, allocations: 19.86 kB / 1.045 GB, free: 11.6 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 7.894e-05/0.4254, allocations: 77.38 kB / 1.045 GB, free: 11.52 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0004297/0.4259, allocations: 299.4 kB / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4259, allocations: 0 / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4259, allocations: 0 / 1.045 GB, free: 11.22 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.4259, allocations: 0 / 1.045 GB, free: 11.22 MB / 0.698 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.0006634/0.4266, allocations: 447 kB / 1.045 GB, free: 10.74 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.4266, allocations: 8.031 kB / 1.046 GB, free: 10.73 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.813e-05/0.4267, allocations: 50.73 kB / 1.046 GB, free: 10.67 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.427, allocations: 36.72 kB / 1.046 GB, free: 10.64 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.4273, allocations: 221.9 kB / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.4273, allocations: 11.94 kB / 1.046 GB, free: 10.37 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.4273, allocations: 12 kB / 1.046 GB, free: 10.36 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.4276, allocations: 114.3 kB / 1.046 GB, free: 10.24 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4276, allocations: 3.938 kB / 1.046 GB, free: 10.24 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.4276, allocations: 8 kB / 1.046 GB, free: 10.23 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.4277, allocations: 3.984 kB / 1.046 GB, free: 10.23 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.4279, allocations: 103.9 kB / 1.046 GB, free: 10.12 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007462/0.4287, allocations: 452.1 kB / 1.046 GB, free: 9.633 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.4289, allocations: 102.5 kB / 1.047 GB, free: 9.523 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.4291, allocations: 44.95 kB / 1.047 GB, free: 9.477 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.4291, allocations: 7.938 kB / 1.047 GB, free: 9.469 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.4292, allocations: 30.56 kB / 1.047 GB, free: 9.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 3.306e-06/0.4292, allocations: 4 kB / 1.047 GB, free: 9.426 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004818/0.4296, allocations: 157.5 kB / 1.047 GB, free: 9.266 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.4297, allocations: 51.41 kB / 1.047 GB, free: 9.203 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.4299, allocations: 194.6 kB / 1.047 GB, free: 9.004 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.4299, allocations: 25.7 kB / 1.047 GB, free: 8.973 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.903e-05/0.43, allocations: 116 kB / 1.047 GB, free: 8.855 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.43, allocations: 27.58 kB / 1.047 GB, free: 8.828 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.4301, allocations: 4 kB / 1.047 GB, free: 8.824 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4302, allocations: 326.8 kB / 1.048 GB, free: 8.496 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4303, allocations: 35.98 kB / 1.048 GB, free: 8.461 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.4304, allocations: 43.91 kB / 1.048 GB, free: 8.418 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.4306, allocations: 80.83 kB / 1.048 GB, free: 8.336 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4307, allocations: 4 kB / 1.048 GB, free: 8.332 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002836/0.4309, allocations: 126 kB / 1.048 GB, free: 8.203 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.431, allocations: 7.984 kB / 1.048 GB, free: 8.195 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.431, allocations: 4 kB / 1.048 GB, free: 8.191 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.431, allocations: 4 kB / 1.048 GB, free: 8.188 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.4311, allocations: 27.92 kB / 1.048 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.4312, allocations: 80 / 1.048 GB, free: 8.16 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.054e-05/0.4313, allocations: 11.91 kB / 1.048 GB, free: 8.148 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.4313, allocations: 3.984 kB / 1.048 GB, free: 8.145 MB / 0.698 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.0001039/0.4314, allocations: 132 kB / 1.048 GB, free: 8.008 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.775e-05/0.4314, allocations: 11.81 kB / 1.048 GB, free: 7.996 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003365/0.4318, allocations: 131 kB / 1.048 GB, free: 7.863 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4318, allocations: 4 kB / 1.048 GB, free: 7.859 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4318, allocations: 0 / 1.048 GB, free: 7.859 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.4318, allocations: 3.984 kB / 1.048 GB, free: 7.855 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.432, allocations: 221.5 kB / 1.048 GB, free: 7.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.432, allocations: 0 / 1.048 GB, free: 7.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.4322, allocations: 27.92 kB / 1.048 GB, free: 7.562 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.4322, allocations: 0 / 1.048 GB, free: 7.562 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.4322, allocations: 4 kB / 1.048 GB, free: 7.559 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4322, allocations: 0 / 1.048 GB, free: 7.559 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4322, allocations: 4 kB / 1.048 GB, free: 7.555 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.4325, allocations: 223.2 kB / 1.049 GB, free: 7.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.126e-05/0.4326, allocations: 85 kB / 1.049 GB, free: 7.219 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.4326, allocations: 8 kB / 1.049 GB, free: 7.211 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.4328, allocations: 7.938 kB / 1.049 GB, free: 7.203 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.4328, allocations: 7.984 kB / 1.049 GB, free: 7.195 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.4328, allocations: 0 / 1.049 GB, free: 7.195 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001239/0.433, allocations: 147.2 kB / 1.049 GB, free: 7.051 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.433, allocations: 3.938 kB / 1.049 GB, free: 7.047 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002188/0.4332, allocations: 20 kB / 1.049 GB, free: 7.027 MB / 0.698 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.0006827/0.4339, allocations: 0.7591 MB / 1.05 GB, free: 6.238 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00027/0.4341, allocations: 95.88 kB / 1.05 GB, free: 6.145 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.4342, allocations: 0 / 1.05 GB, free: 6.145 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.4343, allocations: 39.98 kB / 1.05 GB, free: 6.105 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.4347, allocations: 31.91 kB / 1.05 GB, free: 6.074 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.437, allocations: 1.814 MB / 1.052 GB, free: 4.184 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.4374, allocations: 0.7121 MB / 1.052 GB, free: 3.445 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.553e-05/0.4375, allocations: 20.86 kB / 1.052 GB, free: 3.426 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.4375, allocations: 35.42 kB / 1.052 GB, free: 3.391 MB / 0.698 GB Notification: Performance of SimCode: time 6.51e-07/0.4375, allocations: 0 / 1.052 GB, free: 3.391 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.4524, allocations: 2.862 MB / 1.055 GB, free: 0.7031 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/0.4527, allocations: 237 kB / 1.055 GB, free: 456 kB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.412, allocations: 0 / 1.055 GB, free: 456 kB / 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)