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.399/1.399, allocations: 251.9 MB / 266.8 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 186.2 kB / 326.5 MB, free: 2.25 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.956/1.956, allocations: 205.4 MB / 0.5775 GB, free: 20.54 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.001188/0.001188, allocations: 87.92 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003715, allocations: 11.59 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 106.3 MB / 0.9002 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.729/6.014, allocations: 2.175 GB / 3.075 GB, free: 2.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/6.014, allocations: 85.03 kB / 3.075 GB, free: 2.773 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.6059/6.62, allocations: 40.65 MB / 3.115 GB, free: 332.7 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.754e-06/6.62, allocations: 0 / 3.115 GB, free: 332.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.435e-05/6.62, allocations: 0 / 3.115 GB, free: 332.7 MB / 0.8855 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.000688/6.621, allocations: 474.5 kB / 3.115 GB, free: 332.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/6.621, allocations: 12.02 kB / 3.115 GB, free: 332.2 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.537e-05/6.621, allocations: 38.56 kB / 3.115 GB, free: 332.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002666/6.621, allocations: 43.73 kB / 3.115 GB, free: 332.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/6.621, allocations: 213 kB / 3.115 GB, free: 331.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/6.621, allocations: 8 kB / 3.116 GB, free: 331.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/6.621, allocations: 8 kB / 3.116 GB, free: 331.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/6.622, allocations: 118.7 kB / 3.116 GB, free: 331.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/6.622, allocations: 7.938 kB / 3.116 GB, free: 331.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/6.622, allocations: 7.953 kB / 3.116 GB, free: 331.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/6.622, allocations: 0 / 3.116 GB, free: 331.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/6.622, allocations: 103.9 kB / 3.116 GB, free: 331.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/6.623, allocations: 456.2 kB / 3.116 GB, free: 331.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/6.623, allocations: 98.47 kB / 3.116 GB, free: 331.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/6.623, allocations: 4.156 kB / 3.116 GB, free: 331 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/6.623, allocations: 31.69 kB / 3.116 GB, free: 331 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.542e-06/6.623, allocations: 0 / 3.116 GB, free: 331 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004222/6.623, allocations: 165.5 kB / 3.116 GB, free: 330.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/6.623, allocations: 55.36 kB / 3.117 GB, free: 330.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/6.624, allocations: 170.5 kB / 3.117 GB, free: 330.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/6.624, allocations: 29.7 kB / 3.117 GB, free: 330.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/6.624, allocations: 112 kB / 3.117 GB, free: 330.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/6.624, allocations: 19.72 kB / 3.117 GB, free: 330.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/6.624, allocations: 0 / 3.117 GB, free: 330.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001059/6.624, allocations: 326.8 kB / 3.117 GB, free: 330.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/6.624, allocations: 39.91 kB / 3.117 GB, free: 330.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.699e-05/6.624, allocations: 35.98 kB / 3.117 GB, free: 330 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.923e-05/6.624, allocations: 47.91 kB / 3.117 GB, free: 330 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/6.624, allocations: 0 / 3.117 GB, free: 330 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002371/6.624, allocations: 129.5 kB / 3.117 GB, free: 329.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/6.624, allocations: 4 kB / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/6.624, allocations: 0 / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/6.625, allocations: 4 kB / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/6.625, allocations: 31.92 kB / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/6.625, allocations: 4 kB / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/6.625, allocations: 19.88 kB / 3.117 GB, free: 329.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/6.625, allocations: 3.984 kB / 3.117 GB, free: 329.8 MB / 0.8855 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 8.833e-05/6.625, allocations: 121.8 kB / 3.118 GB, free: 329.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/6.625, allocations: 15.81 kB / 3.118 GB, free: 329.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003012/6.625, allocations: 135.6 kB / 3.118 GB, free: 329.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/6.625, allocations: 0 / 3.118 GB, free: 329.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/6.625, allocations: 0 / 3.118 GB, free: 329.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/6.625, allocations: 0 / 3.118 GB, free: 329.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/6.625, allocations: 225.5 kB / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/6.625, allocations: 4 kB / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/6.626, allocations: 23.92 kB / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/6.626, allocations: 0 / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/6.626, allocations: 0 / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/6.626, allocations: 0 / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/6.626, allocations: 80 / 3.118 GB, free: 329.2 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/6.626, allocations: 231.2 kB / 3.118 GB, free: 329 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/6.626, allocations: 88.95 kB / 3.118 GB, free: 328.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/6.626, allocations: 0 / 3.118 GB, free: 328.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/6.626, allocations: 11.98 kB / 3.118 GB, free: 328.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/6.626, allocations: 11.98 kB / 3.118 GB, free: 328.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/6.626, allocations: 4 kB / 3.118 GB, free: 328.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.389e-05/6.626, allocations: 127.2 kB / 3.118 GB, free: 328.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/6.626, allocations: 4 kB / 3.118 GB, free: 328.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004274/6.627, allocations: 59.89 kB / 3.118 GB, free: 328.6 MB / 0.8855 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.001183/6.628, allocations: 1.203 MB / 3.12 GB, free: 327.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002543/6.628, allocations: 87.89 kB / 3.12 GB, free: 327.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/6.628, allocations: 3.938 kB / 3.12 GB, free: 327.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/6.628, allocations: 43.97 kB / 3.12 GB, free: 327.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/6.629, allocations: 39.81 kB / 3.12 GB, free: 327.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/6.63, allocations: 0.8466 MB / 3.121 GB, free: 326.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/6.63, allocations: 0.7121 MB / 3.121 GB, free: 325.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.902e-05/6.63, allocations: 12.89 kB / 3.121 GB, free: 325.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/6.631, allocations: 35.42 kB / 3.121 GB, free: 325.6 MB / 0.8855 GB Notification: Performance of SimCode: time 4.729e-06/6.631, allocations: 0 / 3.121 GB, free: 325.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/6.656, allocations: 11.88 MB / 3.133 GB, free: 313.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/6.657, allocations: 203.2 kB / 3.133 GB, free: 313.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/8.738, allocations: 6.031 kB / 3.133 GB, free: 313.6 MB / 0.8855 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)