Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 1.615/1.615, allocations: 287.4 MB / 302.6 MB, free: 8.16 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.001014/0.001015, allocations: 174.5 kB / 371.1 MB, free: 10.74 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.366/1.366, allocations: 205.4 MB / 0.6298 GB, free: 10.45 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.0009195/0.0009195, allocations: 99.3 kB / 0.7431 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004386/0.0004391, allocations: 12.22 kB / 0.8662 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.217, allocations: 115.3 MB / 0.9787 GB, free: 28.07 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6534/0.8705, allocations: 135.1 MB / 1.111 GB, free: 2.121 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.8719, allocations: 1.056 MB / 1.112 GB, free: 2.051 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.872, allocations: 3.156 kB / 1.112 GB, free: 2.051 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002718/0.8723, allocations: 37.02 kB / 1.112 GB, free: 2.039 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.0006949/0.873, allocations: 195.5 kB / 1.112 GB, free: 1.988 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.8734, allocations: 135.6 kB / 1.112 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.0004397/0.8738, allocations: 219.7 kB / 1.112 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.874, allocations: 46.44 kB / 1.112 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 8.232e-05/0.8741, allocations: 43.39 kB / 1.112 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.8742, allocations: 48.56 kB / 1.112 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.8742, allocations: 2.906 kB / 1.112 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005646/0.8748, allocations: 284.3 kB / 1.113 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.8748, allocations: 22.2 kB / 1.113 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.875, allocations: 47.02 kB / 1.113 GB, free: 17.84 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003401/0.8753, allocations: 202.9 kB / 1.113 GB, free: 17.82 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.8753, allocations: 1.031 kB / 1.113 GB, free: 17.82 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8753, allocations: 0 / 1.113 GB, free: 17.82 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.8753, allocations: 0 / 1.113 GB, free: 17.82 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.0006942/0.876, allocations: 454 kB / 1.113 GB, free: 17.41 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.8761, allocations: 9.406 kB / 1.113 GB, free: 17.41 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.8762, allocations: 50 kB / 1.113 GB, free: 17.36 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.8764, allocations: 37.23 kB / 1.113 GB, free: 17.36 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.8767, allocations: 222.3 kB / 1.114 GB, free: 17.13 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.8767, allocations: 6.906 kB / 1.114 GB, free: 17.13 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.8767, allocations: 10.12 kB / 1.114 GB, free: 17.13 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.877, allocations: 124.5 kB / 1.114 GB, free: 17.09 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.8771, allocations: 1.094 kB / 1.114 GB, free: 17.09 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.8771, allocations: 4.906 kB / 1.114 GB, free: 17.09 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.8771, allocations: 1.766 kB / 1.114 GB, free: 17.09 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.8774, allocations: 105.6 kB / 1.114 GB, free: 17.09 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008093/0.8782, allocations: 457 kB / 1.114 GB, free: 16.79 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.8785, allocations: 98.94 kB / 1.114 GB, free: 16.77 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.8786, allocations: 49.05 kB / 1.114 GB, free: 16.75 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.8787, allocations: 2.562 kB / 1.114 GB, free: 16.75 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.8787, allocations: 33.52 kB / 1.115 GB, free: 16.71 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.8787, allocations: 0 / 1.115 GB, free: 16.71 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0005004/0.8792, allocations: 165.2 kB / 1.115 GB, free: 16.67 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.8793, allocations: 53.11 kB / 1.115 GB, free: 16.61 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.8795, allocations: 179 kB / 1.115 GB, free: 16.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.8795, allocations: 26.41 kB / 1.115 GB, free: 16.47 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.87e-05/0.8796, allocations: 116.7 kB / 1.115 GB, free: 16.38 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.8796, allocations: 20.44 kB / 1.115 GB, free: 16.37 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.8796, allocations: 4 kB / 1.115 GB, free: 16.37 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.8798, allocations: 328.2 kB / 1.115 GB, free: 16.05 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.8799, allocations: 37.05 kB / 1.115 GB, free: 16.05 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.88, allocations: 40.48 kB / 1.115 GB, free: 16.05 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.8803, allocations: 88.81 kB / 1.116 GB, free: 16.04 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.8803, allocations: 0 / 1.116 GB, free: 16.04 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002821/0.8806, allocations: 132.4 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.8806, allocations: 6.188 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.8806, allocations: 0.75 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.8806, allocations: 1.859 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.8808, allocations: 22.25 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8808, allocations: 2.047 kB / 1.116 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.696e-05/0.8809, allocations: 17.75 kB / 1.116 GB, free: 15.98 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.8809, allocations: 6.906 kB / 1.116 GB, free: 15.98 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 9.589e-05/0.881, allocations: 129.1 kB / 1.116 GB, free: 15.86 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.881, allocations: 12.69 kB / 1.116 GB, free: 15.85 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.8814, allocations: 141.4 kB / 1.116 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.8814, allocations: 1.125 kB / 1.116 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.8814, allocations: 0 / 1.116 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.8814, allocations: 1.875 kB / 1.116 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.8817, allocations: 222.1 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.8817, allocations: 1.844 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.8818, allocations: 18.06 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.8818, allocations: 0 / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.8818, allocations: 6.312 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.8819, allocations: 6.844 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8819, allocations: 0.6562 kB / 1.116 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/0.8822, allocations: 221.6 kB / 1.116 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-05/0.8823, allocations: 97.58 kB / 1.117 GB, free: 15.36 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.8823, allocations: 1.656 kB / 1.117 GB, free: 15.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.8824, allocations: 8.531 kB / 1.117 GB, free: 15.36 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.8825, allocations: 8.078 kB / 1.117 GB, free: 15.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.8825, allocations: 5.875 kB / 1.117 GB, free: 15.35 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001196/0.8826, allocations: 133.1 kB / 1.117 GB, free: 15.28 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8826, allocations: 0 / 1.117 GB, free: 15.28 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002336/0.8829, allocations: 25.72 kB / 1.117 GB, free: 15.27 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.0006866/0.8836, allocations: 0.7605 MB / 1.117 GB, free: 14.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003026/0.8839, allocations: 82.11 kB / 1.118 GB, free: 14.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8839, allocations: 0 / 1.118 GB, free: 14.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.8841, allocations: 53.25 kB / 1.118 GB, free: 14.59 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.8845, allocations: 29.02 kB / 1.118 GB, free: 14.59 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.8861, allocations: 0.8457 MB / 1.118 GB, free: 14.17 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.8864, allocations: 0.71 MB / 1.119 GB, free: 13.47 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 9.239e-05/0.8865, allocations: 9.219 kB / 1.119 GB, free: 13.47 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/0.8866, allocations: 37.84 kB / 1.119 GB, free: 13.46 MB / 0.698 GB Notification: Performance of SimCode: time 6.31e-07/0.8866, allocations: 5.344 kB / 1.119 GB, free: 13.46 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01478/0.9014, allocations: 2.869 MB / 1.122 GB, free: 13.21 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.9016, allocations: 207.8 kB / 1.122 GB, free: 12.98 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.574, allocations: 4.047 kB / 1.122 GB, free: 12.98 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)