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.001502/0.001502, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 200.6 kB / 16.64 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.6/1.6, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001495/0.001495, allocations: 79 kB / 0.6718 GB, free: 26.03 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1959, allocations: 114.5 MB / 0.7836 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.509/0.705, allocations: 149 MB / 0.9291 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.7062, allocations: 1.135 MB / 0.9302 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.7063, allocations: 2.625 kB / 0.9302 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002903/0.7066, allocations: 58.45 kB / 0.9303 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006115/0.7072, allocations: 300.7 kB / 0.9306 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.7076, allocations: 170.1 kB / 0.9307 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000346/0.7079, allocations: 218.1 kB / 0.9309 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.708, allocations: 59.28 kB / 0.931 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.13e-05/0.7081, allocations: 57.47 kB / 0.9311 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.199e-05/0.7082, allocations: 62.88 kB / 0.9311 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.7082, allocations: 10.5 kB / 0.9311 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000487/0.7087, allocations: 371.9 kB / 0.9315 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.7088, allocations: 26.97 kB / 0.9315 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.318e-05/0.7088, allocations: 66.22 kB / 0.9316 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.7092, allocations: 291.2 kB / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.7092, allocations: 3.828 kB / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.754e-06/0.7092, allocations: 0 / 0.9319 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.7092, allocations: 0 / 0.9319 GB, free: 2.84 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.0006582/0.7099, allocations: 471.1 kB / 0.9323 GB, free: 18.43 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.7099, allocations: 11.7 kB / 0.9323 GB, free: 18.43 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.71, allocations: 43.52 kB / 0.9324 GB, free: 18.39 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.7102, allocations: 35.97 kB / 0.9324 GB, free: 18.38 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.7105, allocations: 216.4 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.7105, allocations: 12.03 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.7106, allocations: 12 kB / 0.9326 GB, free: 18.16 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.7108, allocations: 114.3 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.7108, allocations: 6.859 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.7108, allocations: 3.938 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.7109, allocations: 2.844 kB / 0.9327 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002434/0.7111, allocations: 90.97 kB / 0.9328 GB, free: 18.12 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.7117, allocations: 460.6 kB / 0.9333 GB, free: 17.82 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.7119, allocations: 88.83 kB / 0.9334 GB, free: 17.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.712, allocations: 37.69 kB / 0.9334 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.712, allocations: 2.625 kB / 0.9334 GB, free: 17.79 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.7121, allocations: 41.03 kB / 0.9334 GB, free: 17.75 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.7121, allocations: 0 / 0.9334 GB, free: 17.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003956/0.7125, allocations: 144.8 kB / 0.9336 GB, free: 17.7 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.7125, allocations: 54.41 kB / 0.9336 GB, free: 17.64 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.7127, allocations: 179.3 kB / 0.9338 GB, free: 17.54 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.7127, allocations: 25.7 kB / 0.9338 GB, free: 17.51 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.495e-05/0.7127, allocations: 120.7 kB / 0.9339 GB, free: 17.41 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.7128, allocations: 25.17 kB / 0.934 GB, free: 17.4 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.629e-05/0.7128, allocations: 18.53 kB / 0.934 GB, free: 17.39 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.7129, allocations: 327.9 kB / 0.9343 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.713, allocations: 31.38 kB / 0.9343 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.112e-05/0.7131, allocations: 35.59 kB / 0.9344 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.7133, allocations: 76.52 kB / 0.9344 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7133, allocations: 0 / 0.9344 GB, free: 17.06 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002391/0.7135, allocations: 119 kB / 0.9345 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.7136, allocations: 5 kB / 0.9345 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.7136, allocations: 2.875 kB / 0.9345 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7136, allocations: 2.906 kB / 0.9345 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.7137, allocations: 15.41 kB / 0.9346 GB, free: 17.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.7137, allocations: 4 kB / 0.9346 GB, free: 17.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.495e-05/0.7138, allocations: 16.36 kB / 0.9346 GB, free: 17.01 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.7138, allocations: 2.688 kB / 0.9346 GB, free: 17.01 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.003e-05/0.7139, allocations: 123.9 kB / 0.9347 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.244e-05/0.714, allocations: 19.16 kB / 0.9347 GB, free: 16.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000287/0.7142, allocations: 123 kB / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.7143, allocations: 5.203 kB / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.7143, allocations: 0 / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.7143, allocations: 2.109 kB / 0.9348 GB, free: 16.84 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.7145, allocations: 221.8 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.7145, allocations: 2.297 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.358e-05/0.7146, allocations: 13.69 kB / 0.9351 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.7146, allocations: 7.719 kB / 0.9351 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.7146, allocations: 3.312 kB / 0.9351 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.7146, allocations: 0 / 0.9351 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/0.7146, allocations: 1.5 kB / 0.9351 GB, free: 16.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.7149, allocations: 224 kB / 0.9353 GB, free: 16.49 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.7149, allocations: 91.23 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.715, allocations: 0 / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.7151, allocations: 8.062 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.7151, allocations: 5.062 kB / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.7151, allocations: 0 / 0.9354 GB, free: 16.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.666e-05/0.7152, allocations: 142.9 kB / 0.9355 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.7e-07/0.7152, allocations: 0.8438 kB / 0.9355 GB, free: 16.31 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002385/0.7155, allocations: 22.47 kB / 0.9356 GB, free: 16.31 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 (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.0005517/0.716, allocations: 0.7544 MB / 0.9363 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002511/0.7163, allocations: 79.89 kB / 0.9364 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7163, allocations: 0 / 0.9364 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.7164, allocations: 41.31 kB / 0.9364 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.7168, allocations: 36.77 kB / 0.9364 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.7186, allocations: 1.759 MB / 0.9382 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.7189, allocations: 0.7123 MB / 0.9389 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.563e-05/0.7189, allocations: 10.62 kB / 0.9389 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.261e-05/0.719, allocations: 39.19 kB / 0.9389 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of SimCode: time 7.61e-07/0.719, allocations: 0 / 0.9389 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01921/0.7382, allocations: 3.163 MB / 0.942 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/8.038, allocations: 10.3 kB / 0.942 GB, free: 13.22 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1)