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.486/1.486, allocations: 249.3 MB / 261.8 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001178/0.001179, allocations: 182.5 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.1 MB / 0.572 GB, free: 10.7 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.0008795/0.00088, allocations: 82.48 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.64e-05/3.642e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2487, allocations: 106.3 MB / 0.8919 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.405/6.653, allocations: 2.175 GB / 3.067 GB, free: 195 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/6.654, allocations: 94.16 kB / 3.067 GB, free: 194.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.07881/6.733, allocations: 40.56 MB / 3.106 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.405e-06/6.733, allocations: 0 / 3.106 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.357e-05/6.733, allocations: 0 / 3.106 GB, free: 153.8 MB / 0.8698 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.0006107/6.733, allocations: 454.2 kB / 3.107 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/6.733, allocations: 12.03 kB / 3.107 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.395e-05/6.733, allocations: 46.55 kB / 3.107 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/6.734, allocations: 35.75 kB / 3.107 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/6.734, allocations: 202.9 kB / 3.107 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/6.734, allocations: 4 kB / 3.107 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/6.734, allocations: 15.94 kB / 3.107 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/6.734, allocations: 102.9 kB / 3.107 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/6.734, allocations: 3.938 kB / 3.107 GB, free: 152.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/6.734, allocations: 7.953 kB / 3.107 GB, free: 152.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/6.734, allocations: 8 kB / 3.107 GB, free: 152.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/6.734, allocations: 67.98 kB / 3.107 GB, free: 152.8 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006547/6.735, allocations: 464.2 kB / 3.108 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/6.735, allocations: 78.5 kB / 3.108 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.08e-05/6.735, allocations: 28.92 kB / 3.108 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/6.735, allocations: 0 / 3.108 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/6.735, allocations: 34.59 kB / 3.108 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 8.41e-07/6.735, allocations: 0 / 3.108 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.000226/6.736, allocations: 93.64 kB / 3.108 GB, free: 152 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/6.736, allocations: 55.41 kB / 3.108 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/6.736, allocations: 163 kB / 3.108 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/6.736, allocations: 29.7 kB / 3.108 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/6.736, allocations: 115.9 kB / 3.108 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/6.736, allocations: 27.64 kB / 3.108 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/6.736, allocations: 0 / 3.108 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.901e-05/6.736, allocations: 322.8 kB / 3.109 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.817e-05/6.736, allocations: 24 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.522e-05/6.736, allocations: 24 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.536e-05/6.736, allocations: 16 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/6.736, allocations: 4 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001207/6.736, allocations: 85.59 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/6.736, allocations: 4 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/6.736, allocations: 3.984 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/6.736, allocations: 3.938 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/6.736, allocations: 23.98 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/6.736, allocations: 7.953 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.541e-05/6.737, allocations: 15.91 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/6.737, allocations: 4 kB / 3.109 GB, free: 151.1 MB / 0.8698 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 () * 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 6.412e-05/6.737, allocations: 101 kB / 3.109 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/6.737, allocations: 15.81 kB / 3.109 GB, free: 150.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/6.737, allocations: 107.1 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/6.737, allocations: 4 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/6.737, allocations: 7.938 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/6.737, allocations: 3.953 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/6.737, allocations: 217.5 kB / 3.109 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/6.737, allocations: 0 / 3.109 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/6.737, allocations: 19.98 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/6.737, allocations: 0 / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/6.737, allocations: 3.938 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/6.737, allocations: 4 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/6.737, allocations: 0 / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/6.737, allocations: 199.2 kB / 3.109 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/6.738, allocations: 85.02 kB / 3.11 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/6.738, allocations: 8 kB / 3.11 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/6.738, allocations: 7.984 kB / 3.11 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.896e-05/6.738, allocations: 4 kB / 3.11 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/6.738, allocations: 0 / 3.11 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 9.695e-05/6.738, allocations: 144.2 kB / 3.11 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/6.738, allocations: 0 / 3.11 GB, free: 150.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003905/6.738, allocations: 52 kB / 3.11 GB, free: 150 MB / 0.8698 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 () * 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.000987/6.739, allocations: 1.189 MB / 3.111 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000146/6.739, allocations: 59.92 kB / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/6.739, allocations: 0 / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.059e-05/6.739, allocations: 28 kB / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/6.74, allocations: 25.7 kB / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005392/6.74, allocations: 211.5 kB / 3.111 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/6.741, allocations: 0.7121 MB / 3.112 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 7.547e-05/6.741, allocations: 16.86 kB / 3.112 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.267e-05/6.741, allocations: 39.42 kB / 3.112 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of SimCode: time 3.2e-07/6.741, allocations: 0 / 3.112 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/6.768, allocations: 13.56 MB / 3.125 GB, free: 134.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/6.768, allocations: 180.4 kB / 3.125 GB, free: 134 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/8.954, allocations: 4.062 kB / 3.125 GB, free: 134 MB / 0.8698 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)