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.453/1.453, allocations: 251.9 MB / 266.9 MB, free: 11.06 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.001223/0.001223, allocations: 185.2 kB / 326.5 MB, free: 2.254 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.807/1.807, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.000841/0.0008409, allocations: 106.4 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003433, allocations: 21.08 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2061, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1416/0.3478, allocations: 125.9 MB / 1.023 GB, free: 1.613 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.349, allocations: 0.8574 MB / 1.024 GB, free: 0.7539 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.3491, allocations: 0 / 1.024 GB, free: 0.7539 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.3494, allocations: 31.88 kB / 1.024 GB, free: 0.7227 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.3498, allocations: 147.5 kB / 1.024 GB, free: 0.5781 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.35, allocations: 95.73 kB / 1.024 GB, free: 496 kB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.3506, allocations: 227.5 kB / 1.024 GB, free: 268 kB / 0.6667 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.3507, allocations: 41.28 kB / 1.024 GB, free: 224 kB / 0.6667 GB Notification: Performance of NFEvalConstants.evaluate: time 6.574e-05/0.3508, allocations: 31.86 kB / 1.024 GB, free: 192 kB / 0.6667 GB Notification: Performance of NFSimplifyModel.simplify: time 7.694e-05/0.3509, allocations: 43.77 kB / 1.025 GB, free: 148 kB / 0.6667 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.3509, allocations: 4 kB / 1.025 GB, free: 144 kB / 0.6667 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003544/0.3512, allocations: 211.7 kB / 1.025 GB, free: 15.93 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 4.065e-05/0.3513, allocations: 19.86 kB / 1.025 GB, free: 15.91 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.763e-05/0.3513, allocations: 45.64 kB / 1.025 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002824/0.3516, allocations: 163.9 kB / 1.025 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3516, allocations: 0 / 1.025 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3516, allocations: 0 / 1.025 GB, free: 15.7 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.3517, allocations: 0 / 1.025 GB, free: 15.7 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.0006135/0.3523, allocations: 438.8 kB / 1.025 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3523, allocations: 8.031 kB / 1.025 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.601e-05/0.3524, allocations: 50.5 kB / 1.025 GB, free: 15.16 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002878/0.3527, allocations: 35.78 kB / 1.025 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.3529, allocations: 210.8 kB / 1.026 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3529, allocations: 8 kB / 1.026 GB, free: 14.87 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.353, allocations: 4 kB / 1.026 GB, free: 14.87 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.3532, allocations: 126.2 kB / 1.026 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3533, allocations: 3.953 kB / 1.026 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.3533, allocations: 4 kB / 1.026 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3533, allocations: 4 kB / 1.026 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.3535, allocations: 99.94 kB / 1.026 GB, free: 14.63 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.3542, allocations: 452.2 kB / 1.026 GB, free: 14.14 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.3544, allocations: 98.53 kB / 1.026 GB, free: 14.03 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3545, allocations: 4 kB / 1.026 GB, free: 14.03 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.3545, allocations: 42.66 kB / 1.026 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3545, allocations: 0 / 1.026 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004374/0.355, allocations: 165.3 kB / 1.027 GB, free: 13.81 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.355, allocations: 55.34 kB / 1.027 GB, free: 13.74 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3552, allocations: 186.7 kB / 1.027 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.3552, allocations: 29.7 kB / 1.027 GB, free: 13.52 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.3553, allocations: 116.1 kB / 1.027 GB, free: 13.4 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.3553, allocations: 31.62 kB / 1.027 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.3553, allocations: 0 / 1.027 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3555, allocations: 322.8 kB / 1.027 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3556, allocations: 39.92 kB / 1.027 GB, free: 13 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.3557, allocations: 39.97 kB / 1.027 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.3559, allocations: 35.98 kB / 1.027 GB, free: 12.93 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3559, allocations: 0 / 1.027 GB, free: 12.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000276/0.3561, allocations: 137.4 kB / 1.028 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3562, allocations: 4 kB / 1.028 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.3562, allocations: 0 / 1.028 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3562, allocations: 0 / 1.028 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.3563, allocations: 19.98 kB / 1.028 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3564, allocations: 3.953 kB / 1.028 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.468e-05/0.3565, allocations: 15.98 kB / 1.028 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.3565, allocations: 4 kB / 1.028 GB, free: 12.74 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 9.899e-05/0.3566, allocations: 117.8 kB / 1.028 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.3566, allocations: 15.81 kB / 1.028 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003346/0.357, allocations: 143 kB / 1.028 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.357, allocations: 0 / 1.028 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.357, allocations: 0 / 1.028 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.357, allocations: 3.953 kB / 1.028 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.3572, allocations: 221.5 kB / 1.028 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3572, allocations: 0 / 1.028 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.3573, allocations: 15.98 kB / 1.028 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.3574, allocations: 4 kB / 1.028 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3574, allocations: 7.984 kB / 1.028 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3574, allocations: 4 kB / 1.028 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3574, allocations: 0 / 1.028 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.3577, allocations: 219.2 kB / 1.028 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.3578, allocations: 89.02 kB / 1.028 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.3578, allocations: 7.984 kB / 1.028 GB, free: 11.81 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3579, allocations: 11.94 kB / 1.028 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.358, allocations: 3.984 kB / 1.028 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.358, allocations: 4 kB / 1.028 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001103/0.3581, allocations: 131.2 kB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3581, allocations: 0 / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002412/0.3584, allocations: 23.91 kB / 1.029 GB, free: 11.64 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.0006538/0.359, allocations: 0.7687 MB / 1.029 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002613/0.3593, allocations: 75.95 kB / 1.029 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3593, allocations: 4 kB / 1.029 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.3594, allocations: 52.14 kB / 1.029 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.3598, allocations: 31.91 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.3612, allocations: 0.8466 MB / 1.03 GB, free: 9.793 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.3615, allocations: 0.716 MB / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.315e-05/0.3616, allocations: 16.86 kB / 1.031 GB, free: 9.035 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.861e-05/0.3617, allocations: 31.44 kB / 1.031 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of SimCode: time 2.6e-07/0.3617, allocations: 4 kB / 1.031 GB, free: 9 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0141/0.3758, allocations: 2.871 MB / 1.034 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.3761, allocations: 209.8 kB / 1.034 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/1.986, allocations: 0 / 1.034 GB, free: 6.07 MB / 0.6823 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)