Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.646/1.646, allocations: 288.2 MB / 303.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 191.2 kB / 371.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.4 MB / 0.6305 GB, free: 9.938 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 98.86 kB / 0.7439 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004273/0.0004273, allocations: 13.47 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2245, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.7134/0.9379, allocations: 125.9 MB / 1.102 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.9392, allocations: 0.8488 MB / 1.103 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.979e-05/0.9393, allocations: 4.016 kB / 1.103 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.9396, allocations: 40.05 kB / 1.103 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.9401, allocations: 148.8 kB / 1.103 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.9403, allocations: 91.73 kB / 1.104 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0006019/0.9409, allocations: 220 kB / 1.104 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.9411, allocations: 44.42 kB / 1.104 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 7.841e-05/0.9412, allocations: 36.58 kB / 1.104 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.9413, allocations: 42.53 kB / 1.104 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.9413, allocations: 4.062 kB / 1.104 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004286/0.9417, allocations: 211.2 kB / 1.104 GB, free: 2.562 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 5.091e-05/0.9418, allocations: 18.28 kB / 1.104 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.942, allocations: 44.61 kB / 1.104 GB, free: 18.52 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.9423, allocations: 159.2 kB / 1.104 GB, free: 18.52 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.9423, allocations: 0 / 1.104 GB, free: 18.52 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.126e-06/0.9423, allocations: 3.875 kB / 1.104 GB, free: 18.52 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.9423, allocations: 1.156 kB / 1.104 GB, free: 18.52 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.0006636/0.943, allocations: 439 kB / 1.105 GB, free: 18.11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.943, allocations: 15.12 kB / 1.105 GB, free: 18.11 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.9431, allocations: 48.28 kB / 1.105 GB, free: 18.07 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003043/0.9434, allocations: 38.64 kB / 1.105 GB, free: 18.05 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.9436, allocations: 207.7 kB / 1.105 GB, free: 17.85 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.9437, allocations: 7.062 kB / 1.105 GB, free: 17.85 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.9437, allocations: 9.875 kB / 1.105 GB, free: 17.85 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.944, allocations: 125.2 kB / 1.105 GB, free: 17.81 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.944, allocations: 3.938 kB / 1.105 GB, free: 17.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.944, allocations: 7.391 kB / 1.105 GB, free: 17.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.944, allocations: 9.062 kB / 1.105 GB, free: 17.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002815/0.9443, allocations: 100.1 kB / 1.105 GB, free: 17.79 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000732/0.9451, allocations: 452.6 kB / 1.106 GB, free: 17.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002248/0.9453, allocations: 95.09 kB / 1.106 GB, free: 17.48 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.9454, allocations: 5.875 kB / 1.106 GB, free: 17.47 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.9454, allocations: 36.75 kB / 1.106 GB, free: 17.43 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.9454, allocations: 0 / 1.106 GB, free: 17.43 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004863/0.9459, allocations: 157.5 kB / 1.106 GB, free: 17.39 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.9459, allocations: 56.67 kB / 1.106 GB, free: 17.32 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/0.9461, allocations: 180 kB / 1.106 GB, free: 17.22 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/0.9462, allocations: 33.83 kB / 1.106 GB, free: 17.19 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.265e-05/0.9462, allocations: 114.8 kB / 1.106 GB, free: 17.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.9463, allocations: 21.69 kB / 1.106 GB, free: 17.09 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.9463, allocations: 0 / 1.106 GB, free: 17.09 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.9464, allocations: 323.2 kB / 1.107 GB, free: 16.77 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.9466, allocations: 38.39 kB / 1.107 GB, free: 16.77 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.9467, allocations: 41.64 kB / 1.107 GB, free: 16.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.9468, allocations: 42.47 kB / 1.107 GB, free: 16.77 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.9468, allocations: 1.125 kB / 1.107 GB, free: 16.77 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002841/0.9471, allocations: 128.4 kB / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.9471, allocations: 4.656 kB / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.9471, allocations: 1.5 kB / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.9472, allocations: 3.016 kB / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.9473, allocations: 18.47 kB / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.9473, allocations: 0 / 1.107 GB, free: 16.72 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.9474, allocations: 29.67 kB / 1.107 GB, free: 16.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.9474, allocations: 1.062 kB / 1.107 GB, free: 16.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.9476, allocations: 125.8 kB / 1.107 GB, free: 16.59 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.9476, allocations: 9.531 kB / 1.107 GB, free: 16.59 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.948, allocations: 135.3 kB / 1.107 GB, free: 16.55 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.948, allocations: 1.281 kB / 1.107 GB, free: 16.55 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.948, allocations: 2.25 kB / 1.107 GB, free: 16.55 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.948, allocations: 2.734 kB / 1.107 GB, free: 16.55 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.9483, allocations: 224.3 kB / 1.107 GB, free: 16.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.9483, allocations: 7.625 kB / 1.107 GB, free: 16.35 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.9484, allocations: 21.7 kB / 1.107 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.9484, allocations: 1.156 kB / 1.107 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.9484, allocations: 4 kB / 1.107 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.9484, allocations: 1 kB / 1.107 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9484, allocations: 0 / 1.107 GB, free: 16.34 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.9488, allocations: 219.8 kB / 1.108 GB, free: 16.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/0.9489, allocations: 98.22 kB / 1.108 GB, free: 16.09 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.9489, allocations: 4.969 kB / 1.108 GB, free: 16.09 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.949, allocations: 9.438 kB / 1.108 GB, free: 16.09 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.9491, allocations: 4.25 kB / 1.108 GB, free: 16.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.9491, allocations: 2.75 kB / 1.108 GB, free: 16.09 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001306/0.9493, allocations: 133.6 kB / 1.108 GB, free: 16.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.663e-06/0.9493, allocations: 0 / 1.108 GB, free: 16.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002431/0.9495, allocations: 21.09 kB / 1.108 GB, free: 16.02 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 (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.0007307/0.9503, allocations: 0.7688 MB / 1.109 GB, free: 15.34 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000314/0.9506, allocations: 87.12 kB / 1.109 GB, free: 15.34 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9506, allocations: 0 / 1.109 GB, free: 15.34 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.9507, allocations: 46.44 kB / 1.109 GB, free: 15.34 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.9511, allocations: 37.53 kB / 1.109 GB, free: 15.33 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.9528, allocations: 0.8451 MB / 1.11 GB, free: 14.91 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.9533, allocations: 0.7169 MB / 1.11 GB, free: 14.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.9534, allocations: 10.31 kB / 1.11 GB, free: 14.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.761e-05/0.9535, allocations: 40.69 kB / 1.11 GB, free: 14.2 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/0.9535, allocations: 0 / 1.11 GB, free: 14.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.969, allocations: 2.872 MB / 1.113 GB, free: 13.93 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.9692, allocations: 201.8 kB / 1.113 GB, free: 13.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/2.677, allocations: 4 kB / 1.113 GB, free: 13.7 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)