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.001237/0.001237, allocations: 108 kB / 15.6 MB, free: 132 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.001199/0.001199, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.206/1.206, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.567/1.567, allocations: 292.3 MB / 0.5489 GB, free: 12.8 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.00131/0.00131, allocations: 71.41 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1933, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.4707/0.6641, allocations: 149 MB / 0.929 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.6652, allocations: 1.132 MB / 0.9301 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.6653, allocations: 3.219 kB / 0.9301 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.6656, allocations: 60.88 kB / 0.9301 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005669/0.6662, allocations: 294.9 kB / 0.9304 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.6665, allocations: 169 kB / 0.9306 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.6668, allocations: 227.9 kB / 0.9308 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.6669, allocations: 57.14 kB / 0.9309 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.867e-05/0.667, allocations: 50.56 kB / 0.9309 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.667, allocations: 59.75 kB / 0.931 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.6671, allocations: 11.38 kB / 0.931 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004764/0.6676, allocations: 371.4 kB / 0.9313 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.456e-05/0.6676, allocations: 33.36 kB / 0.9314 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.175e-05/0.6677, allocations: 58.91 kB / 0.9314 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.668, allocations: 293.2 kB / 0.9317 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.668, allocations: 0 / 0.9317 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.668, allocations: 0 / 0.9317 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.6681, allocations: 0 / 0.9317 GB, free: 3.27 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.0006605/0.6687, allocations: 474 kB / 0.9321 GB, free: 18.86 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.6688, allocations: 8.625 kB / 0.9322 GB, free: 18.86 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.626e-05/0.6688, allocations: 43.64 kB / 0.9322 GB, free: 18.82 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.6691, allocations: 34.62 kB / 0.9322 GB, free: 18.81 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.6693, allocations: 216 kB / 0.9324 GB, free: 18.6 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-06/0.6693, allocations: 7.688 kB / 0.9324 GB, free: 18.6 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.6693, allocations: 13.28 kB / 0.9325 GB, free: 18.59 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.6695, allocations: 115.3 kB / 0.9326 GB, free: 18.56 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.6696, allocations: 3.984 kB / 0.9326 GB, free: 18.56 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.271e-05/0.6696, allocations: 6.594 kB / 0.9326 GB, free: 18.56 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-06/0.6696, allocations: 4.016 kB / 0.9326 GB, free: 18.56 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002313/0.6698, allocations: 86.61 kB / 0.9327 GB, free: 18.56 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.6704, allocations: 469.3 kB / 0.9331 GB, free: 18.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.6706, allocations: 88.45 kB / 0.9332 GB, free: 18.23 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.6707, allocations: 45.2 kB / 0.9332 GB, free: 18.22 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.6707, allocations: 0 / 0.9332 GB, free: 18.22 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.653e-05/0.6707, allocations: 33.19 kB / 0.9333 GB, free: 18.18 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.6707, allocations: 0 / 0.9333 GB, free: 18.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003896/0.6711, allocations: 143.8 kB / 0.9334 GB, free: 18.14 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.6712, allocations: 52.5 kB / 0.9335 GB, free: 18.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.6713, allocations: 188.3 kB / 0.9336 GB, free: 17.97 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.6713, allocations: 29.64 kB / 0.9337 GB, free: 17.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.488e-05/0.6714, allocations: 115.3 kB / 0.9338 GB, free: 17.84 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.6714, allocations: 25.08 kB / 0.9338 GB, free: 17.83 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.6714, allocations: 20.28 kB / 0.9338 GB, free: 17.82 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.6715, allocations: 325.2 kB / 0.9341 GB, free: 17.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.6717, allocations: 31.62 kB / 0.9342 GB, free: 17.5 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.04e-05/0.6717, allocations: 34.11 kB / 0.9342 GB, free: 17.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.6719, allocations: 77.77 kB / 0.9343 GB, free: 17.49 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.672, allocations: 1.203 kB / 0.9343 GB, free: 17.49 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002384/0.6722, allocations: 122.3 kB / 0.9344 GB, free: 17.45 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.6722, allocations: 7.406 kB / 0.9344 GB, free: 17.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.6722, allocations: 0 / 0.9344 GB, free: 17.45 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.6723, allocations: 4 kB / 0.9344 GB, free: 17.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.6724, allocations: 15.89 kB / 0.9344 GB, free: 17.44 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.6724, allocations: 0 / 0.9344 GB, free: 17.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.59e-05/0.6725, allocations: 12.5 kB / 0.9344 GB, free: 17.44 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.6725, allocations: 9.094 kB / 0.9344 GB, free: 17.44 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 7.628e-05/0.6726, allocations: 121.9 kB / 0.9345 GB, free: 17.32 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.6726, allocations: 13.06 kB / 0.9346 GB, free: 17.31 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002924/0.6729, allocations: 128.3 kB / 0.9347 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6729, allocations: 2.625 kB / 0.9347 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.6729, allocations: 2.203 kB / 0.9347 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6729, allocations: 0.7031 kB / 0.9347 GB, free: 17.27 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.6731, allocations: 220 kB / 0.9349 GB, free: 17.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.6731, allocations: 5.25 kB / 0.9349 GB, free: 17.08 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.6733, allocations: 12.28 kB / 0.9349 GB, free: 17.08 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.6733, allocations: 2.625 kB / 0.9349 GB, free: 17.08 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.6733, allocations: 1.781 kB / 0.9349 GB, free: 17.08 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.6733, allocations: 4 kB / 0.9349 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6733, allocations: 1.094 kB / 0.9349 GB, free: 17.07 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002765/0.6736, allocations: 224.5 kB / 0.9351 GB, free: 16.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.6736, allocations: 90.44 kB / 0.9352 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.6737, allocations: 0 / 0.9352 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.6738, allocations: 13.88 kB / 0.9352 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.6738, allocations: 10.19 kB / 0.9352 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.6738, allocations: 2.625 kB / 0.9352 GB, free: 16.82 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.671e-05/0.6739, allocations: 134.9 kB / 0.9354 GB, free: 16.74 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6739, allocations: 0 / 0.9354 GB, free: 16.74 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002366/0.6742, allocations: 24.47 kB / 0.9354 GB, free: 16.74 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.00056/0.6747, allocations: 0.749 MB / 0.9361 GB, free: 16.07 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.675, allocations: 80.88 kB / 0.9362 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.675, allocations: 0 / 0.9362 GB, free: 16.06 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.6751, allocations: 47.22 kB / 0.9362 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.6756, allocations: 28.39 kB / 0.9363 GB, free: 16.05 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.6774, allocations: 1.753 MB / 0.938 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.6777, allocations: 0.7081 MB / 0.9387 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.604e-05/0.6777, allocations: 9.328 kB / 0.9387 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.6778, allocations: 36.69 kB / 0.9387 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.6778, allocations: 7.969 kB / 0.9387 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.542/4.22, allocations: 3.155 MB / 0.9418 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.71/18.93, allocations: 5.031 kB / 0.9418 GB, free: 13.64 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/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)