Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009844/0.0009844, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009883/0.0009884, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.854/1.854, allocations: 292.6 MB / 0.5497 GB, free: 14.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005561/0.0005561, allocations: 14.06 kB / 0.6737 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2565, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6294/0.8859, allocations: 125.9 MB / 0.9102 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.8873, allocations: 0.8528 MB / 0.911 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.8874, allocations: 1.75 kB / 0.911 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.8876, allocations: 34.17 kB / 0.911 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.8881, allocations: 147.9 kB / 0.9112 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.8883, allocations: 95.98 kB / 0.9113 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005618/0.8889, allocations: 224.2 kB / 0.9115 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.889, allocations: 42.58 kB / 0.9115 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.962e-05/0.8891, allocations: 34.19 kB / 0.9116 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.526e-05/0.8892, allocations: 40.45 kB / 0.9116 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.8892, allocations: 2.75 kB / 0.9116 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004311/0.8896, allocations: 216.8 kB / 0.9118 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.032e-05/0.8897, allocations: 15.58 kB / 0.9118 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.131e-05/0.8897, allocations: 47.25 kB / 0.9119 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.89, allocations: 161.4 kB / 0.912 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.89, allocations: 1.156 kB / 0.912 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.784e-06/0.89, allocations: 0 / 0.912 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.8901, allocations: 0 / 0.912 GB, free: 5.863 MB / 0.7169 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.0008691/0.8909, allocations: 438.9 kB / 0.9124 GB, free: 21.46 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.891, allocations: 9.75 kB / 0.9125 GB, free: 21.46 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.891, allocations: 49.77 kB / 0.9125 GB, free: 21.42 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003131/0.8914, allocations: 43.89 kB / 0.9125 GB, free: 21.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.8916, allocations: 204.2 kB / 0.9127 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.8916, allocations: 7.312 kB / 0.9127 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.8916, allocations: 13.41 kB / 0.9128 GB, free: 21.2 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.8919, allocations: 129.9 kB / 0.9129 GB, free: 21.16 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.892, allocations: 0 / 0.9129 GB, free: 21.16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.892, allocations: 8.125 kB / 0.9129 GB, free: 21.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.892, allocations: 2.281 kB / 0.9129 GB, free: 21.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.8923, allocations: 103.7 kB / 0.913 GB, free: 21.15 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006696/0.8929, allocations: 454.9 kB / 0.9134 GB, free: 20.87 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.8932, allocations: 92.7 kB / 0.9135 GB, free: 20.84 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.8932, allocations: 4 kB / 0.9135 GB, free: 20.84 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.8932, allocations: 31.22 kB / 0.9135 GB, free: 20.8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.8933, allocations: 2.906 kB / 0.9135 GB, free: 20.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004869/0.8937, allocations: 160.8 kB / 0.9137 GB, free: 20.76 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.8938, allocations: 56.64 kB / 0.9138 GB, free: 20.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/0.894, allocations: 175.2 kB / 0.9139 GB, free: 20.6 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.894, allocations: 33.45 kB / 0.914 GB, free: 20.56 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.78e-05/0.8941, allocations: 116 kB / 0.9141 GB, free: 20.47 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.8941, allocations: 20.59 kB / 0.9141 GB, free: 20.46 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.8941, allocations: 0 / 0.9141 GB, free: 20.46 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.8943, allocations: 324.3 kB / 0.9144 GB, free: 20.15 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.8944, allocations: 41.53 kB / 0.9144 GB, free: 20.15 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.8945, allocations: 43.42 kB / 0.9145 GB, free: 20.14 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.8946, allocations: 40.09 kB / 0.9145 GB, free: 20.14 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.8946, allocations: 0 / 0.9145 GB, free: 20.14 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003012/0.8949, allocations: 130.9 kB / 0.9146 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.895, allocations: 5.125 kB / 0.9146 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.895, allocations: 0 / 0.9146 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.895, allocations: 0.9062 kB / 0.9146 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.8952, allocations: 26.2 kB / 0.9147 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.8952, allocations: 1.641 kB / 0.9147 GB, free: 20.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.985e-05/0.8953, allocations: 26.95 kB / 0.9147 GB, free: 20.08 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.8953, allocations: 1.031 kB / 0.9147 GB, free: 20.08 MB / 0.7325 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.0001026/0.8954, allocations: 119.6 kB / 0.9148 GB, free: 19.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.8954, allocations: 9.812 kB / 0.9148 GB, free: 19.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003402/0.8958, allocations: 141.8 kB / 0.915 GB, free: 19.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.8958, allocations: 1.094 kB / 0.915 GB, free: 19.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8958, allocations: 0 / 0.915 GB, free: 19.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.8958, allocations: 0.9688 kB / 0.915 GB, free: 19.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.896, allocations: 222.2 kB / 0.9152 GB, free: 19.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.896, allocations: 7.812 kB / 0.9152 GB, free: 19.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.8961, allocations: 17.94 kB / 0.9152 GB, free: 19.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.8962, allocations: 1 kB / 0.9152 GB, free: 19.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.8962, allocations: 1.062 kB / 0.9152 GB, free: 19.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.8962, allocations: 6 kB / 0.9152 GB, free: 19.72 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.8962, allocations: 3.906 kB / 0.9152 GB, free: 19.72 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003095/0.8965, allocations: 219.7 kB / 0.9154 GB, free: 19.59 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.8966, allocations: 103 kB / 0.9155 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.8966, allocations: 0.7812 kB / 0.9155 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.8967, allocations: 9.812 kB / 0.9155 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.8968, allocations: 6.359 kB / 0.9155 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.8968, allocations: 1.031 kB / 0.9155 GB, free: 19.48 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001075/0.8969, allocations: 137.9 kB / 0.9157 GB, free: 19.4 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8969, allocations: 3.719 kB / 0.9157 GB, free: 19.4 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000244/0.8972, allocations: 21.34 kB / 0.9157 GB, free: 19.4 MB / 0.7325 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.00062/0.8978, allocations: 0.7652 MB / 0.9164 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002656/0.8981, allocations: 80.56 kB / 0.9165 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.8981, allocations: 0.9375 kB / 0.9165 GB, free: 18.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.8982, allocations: 50.66 kB / 0.9166 GB, free: 18.72 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.8986, allocations: 28.52 kB / 0.9166 GB, free: 18.72 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.9001, allocations: 0.8476 MB / 0.9174 GB, free: 18.3 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.9004, allocations: 0.7155 MB / 0.9181 GB, free: 17.6 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.755e-05/0.9005, allocations: 9.172 kB / 0.9181 GB, free: 17.6 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.922e-05/0.9006, allocations: 44.12 kB / 0.9182 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.9006, allocations: 0 / 0.9182 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3553/1.256, allocations: 2.862 MB / 0.921 GB, free: 17.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/1.256, allocations: 199.3 kB / 0.9211 GB, free: 17.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/3.027, allocations: 0 / 0.9211 GB, free: 17.11 MB / 0.7325 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) Environment - environmentSimulation: