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.467/1.467, allocations: 249.5 MB / 257 MB, free: 6.977 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.001533/0.001533, allocations: 184.8 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0008156/0.0008157, allocations: 102 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.205e-05, allocations: 8 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1866, allocations: 106.3 MB / 0.8853 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.67/5.856, allocations: 2.175 GB / 3.06 GB, free: 190.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/5.857, allocations: 88.19 kB / 3.06 GB, free: 190.8 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.07321/5.93, allocations: 39.91 MB / 3.099 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.422e-06/5.93, allocations: 0 / 3.099 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.228e-05/5.93, allocations: 4 kB / 3.099 GB, free: 158.2 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.0005256/5.93, allocations: 449.2 kB / 3.1 GB, free: 157.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/5.931, allocations: 8.031 kB / 3.1 GB, free: 157.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000251/5.931, allocations: 43.73 kB / 3.1 GB, free: 157.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/5.931, allocations: 209.7 kB / 3.1 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/5.931, allocations: 4 kB / 3.1 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/5.931, allocations: 4 kB / 3.1 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001372/5.931, allocations: 61 kB / 3.1 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/5.931, allocations: 91.52 kB / 3.1 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/5.931, allocations: 7.891 kB / 3.1 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/5.931, allocations: 0 / 3.1 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/5.931, allocations: 0 / 3.1 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006037/5.932, allocations: 415 kB / 3.101 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/5.932, allocations: 79.94 kB / 3.101 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.477e-05/5.932, allocations: 27.86 kB / 3.101 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/5.932, allocations: 7.984 kB / 3.101 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/5.932, allocations: 30.56 kB / 3.101 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/5.932, allocations: 0 / 3.101 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.000206/5.933, allocations: 76.27 kB / 3.101 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/5.933, allocations: 51.41 kB / 3.101 GB, free: 156.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/5.933, allocations: 143.9 kB / 3.101 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/5.933, allocations: 25.7 kB / 3.101 GB, free: 156.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.186e-05/5.933, allocations: 115 kB / 3.101 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/5.933, allocations: 26.97 kB / 3.101 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/5.933, allocations: 0 / 3.101 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.31e-05/5.933, allocations: 326.7 kB / 3.102 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.271e-05/5.933, allocations: 19.25 kB / 3.102 GB, free: 156 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.886e-05/5.933, allocations: 19.45 kB / 3.102 GB, free: 156 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.084e-05/5.933, allocations: 27.5 kB / 3.102 GB, free: 156 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/5.933, allocations: 8 kB / 3.102 GB, free: 156 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001077/5.933, allocations: 84.48 kB / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/5.933, allocations: 4 kB / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/5.933, allocations: 0 / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/5.933, allocations: 0 / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/5.933, allocations: 19.98 kB / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/5.933, allocations: 0 / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.079e-05/5.933, allocations: 11.98 kB / 3.102 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/5.933, allocations: 8 kB / 3.102 GB, free: 155.9 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 7.297e-05/5.934, allocations: 115.3 kB / 3.102 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001078/5.934, allocations: 76.56 kB / 3.102 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.607e-05/5.934, allocations: 11.53 kB / 3.102 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/5.934, allocations: 89.36 kB / 3.102 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/5.934, allocations: 4 kB / 3.102 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/5.934, allocations: 3.938 kB / 3.102 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/5.934, allocations: 3.953 kB / 3.102 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/5.934, allocations: 199.7 kB / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/5.934, allocations: 4 kB / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.996e-05/5.934, allocations: 15.98 kB / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/5.934, allocations: 0 / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/5.934, allocations: 4 kB / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/5.934, allocations: 3.984 kB / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/5.934, allocations: 0 / 3.102 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/5.934, allocations: 181.3 kB / 3.102 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/5.934, allocations: 81.02 kB / 3.102 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/5.934, allocations: 4 kB / 3.102 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/5.935, allocations: 7.984 kB / 3.102 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/5.935, allocations: 7.938 kB / 3.102 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/5.935, allocations: 0 / 3.102 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.779e-05/5.935, allocations: 117.5 kB / 3.103 GB, free: 155 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/5.935, allocations: 0 / 3.103 GB, free: 155 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003245/5.935, allocations: 53.95 kB / 3.103 GB, free: 155 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.001014/5.936, allocations: 1.255 MB / 3.104 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001435/5.936, allocations: 54.48 kB / 3.104 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/5.936, allocations: 0 / 3.104 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.159e-05/5.936, allocations: 23 kB / 3.104 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/5.937, allocations: 43.22 kB / 3.104 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007177/5.937, allocations: 182 kB / 3.104 GB, free: 153.4 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/5.938, allocations: 0.7196 MB / 3.105 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.858e-05/5.938, allocations: 4.438 kB / 3.105 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.804e-05/5.938, allocations: 37.48 kB / 3.105 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of SimCode: time 2.51e-07/5.938, allocations: 0 / 3.105 GB, free: 152.6 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/5.961, allocations: 6.588 MB / 3.111 GB, free: 146.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/5.961, allocations: 159.9 kB / 3.111 GB, free: 145.9 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/7.576, allocations: 0 / 3.111 GB, free: 145.9 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)