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.0008704/0.0008702, allocations: 89.81 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005345/0.005346, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.44/1.44, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.664/1.664, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.000483/0.0004831, allocations: 14.81 kB / 0.6744 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2259, allocations: 116.3 MB / 0.788 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.5593/0.7853, allocations: 144.8 MB / 0.9295 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001221/0.7866, allocations: 1.129 MB / 0.9306 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.457e-05/0.7867, allocations: 2.875 kB / 0.9306 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003257/0.787, allocations: 48.92 kB / 0.9306 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.7877, allocations: 281 kB / 0.9309 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.788, allocations: 155.2 kB / 0.931 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003739/0.7884, allocations: 231.3 kB / 0.9312 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.7885, allocations: 56.98 kB / 0.9313 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.522e-05/0.7886, allocations: 34.22 kB / 0.9313 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.304e-05/0.7886, allocations: 56.19 kB / 0.9314 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.382e-05/0.7887, allocations: 5.531 kB / 0.9314 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005027/0.7892, allocations: 407.2 kB / 0.9318 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.789e-05/0.7892, allocations: 18.92 kB / 0.9318 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.7894, allocations: 71.91 kB / 0.9319 GB, free: 17.6 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.7898, allocations: 302.5 kB / 0.9322 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7898, allocations: 0 / 0.9322 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7898, allocations: 4 kB / 0.9322 GB, free: 17.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.7898, allocations: 0 / 0.9322 GB, free: 17.57 MB / 0.7325 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.0005891/0.7904, allocations: 443.8 kB / 0.9326 GB, free: 17.16 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.7904, allocations: 7.938 kB / 0.9326 GB, free: 17.16 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.7905, allocations: 45.33 kB / 0.9326 GB, free: 17.12 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002647/0.7907, allocations: 41.03 kB / 0.9327 GB, free: 17.11 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.791, allocations: 217.7 kB / 0.9329 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.791, allocations: 12 kB / 0.9329 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.791, allocations: 10.42 kB / 0.9329 GB, free: 16.89 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.7913, allocations: 124.6 kB / 0.933 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.7913, allocations: 0 / 0.933 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.7913, allocations: 8.812 kB / 0.933 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.7913, allocations: 2.438 kB / 0.933 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.7916, allocations: 98.62 kB / 0.9331 GB, free: 16.86 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.7922, allocations: 451 kB / 0.9336 GB, free: 16.56 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.7924, allocations: 99.36 kB / 0.9336 GB, free: 16.54 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.7926, allocations: 46.75 kB / 0.9337 GB, free: 16.52 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.7926, allocations: 2.469 kB / 0.9337 GB, free: 16.52 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.7926, allocations: 31.55 kB / 0.9337 GB, free: 16.48 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.7926, allocations: 0 / 0.9337 GB, free: 16.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004423/0.7931, allocations: 170.8 kB / 0.9339 GB, free: 16.44 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.7931, allocations: 51.41 kB / 0.9339 GB, free: 16.38 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.7933, allocations: 178 kB / 0.9341 GB, free: 16.28 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.7933, allocations: 31.5 kB / 0.9341 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.7934, allocations: 117.8 kB / 0.9342 GB, free: 16.15 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.7934, allocations: 20.61 kB / 0.9343 GB, free: 16.14 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.7934, allocations: 16.22 kB / 0.9343 GB, free: 16.12 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.7936, allocations: 325.1 kB / 0.9346 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.7937, allocations: 38.28 kB / 0.9346 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.59e-05/0.7938, allocations: 41.38 kB / 0.9347 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.794, allocations: 80.45 kB / 0.9347 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.794, allocations: 0 / 0.9347 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002538/0.7942, allocations: 137.2 kB / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.7943, allocations: 7.547 kB / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.7943, allocations: 0 / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.7943, allocations: 2.625 kB / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.7944, allocations: 18.33 kB / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.7944, allocations: 0 / 0.9349 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.7945, allocations: 18.53 kB / 0.9349 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.7945, allocations: 6.5 kB / 0.9349 GB, free: 15.74 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 9.415e-05/0.7946, allocations: 123.2 kB / 0.935 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.2e-05/0.7947, allocations: 14.28 kB / 0.9351 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000327/0.795, allocations: 142.2 kB / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.795, allocations: 2.906 kB / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.795, allocations: 0.6875 kB / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.795, allocations: 3.094 kB / 0.9352 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.7952, allocations: 219 kB / 0.9354 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.7953, allocations: 0 / 0.9354 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.7954, allocations: 22.47 kB / 0.9354 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.7954, allocations: 6.625 kB / 0.9354 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-06/0.7954, allocations: 0 / 0.9354 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7954, allocations: 0.7969 kB / 0.9354 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.7954, allocations: 0 / 0.9354 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/0.7957, allocations: 233.9 kB / 0.9357 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.611e-05/0.7958, allocations: 90.22 kB / 0.9357 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.7958, allocations: 5.125 kB / 0.9358 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.7959, allocations: 7.828 kB / 0.9358 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.699e-05/0.796, allocations: 8.562 kB / 0.9358 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.796, allocations: 2.625 kB / 0.9358 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001066/0.7961, allocations: 138.7 kB / 0.9359 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7961, allocations: 0 / 0.9359 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002386/0.7963, allocations: 30.22 kB / 0.9359 GB, free: 15.03 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.0006337/0.797, allocations: 0.7587 MB / 0.9367 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002429/0.7972, allocations: 86.59 kB / 0.9368 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.7973, allocations: 4 kB / 0.9368 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.7974, allocations: 48.48 kB / 0.9368 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.7978, allocations: 27.83 kB / 0.9368 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.7996, allocations: 1.83 MB / 0.9386 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.7999, allocations: 0.7107 MB / 0.9393 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.855e-05/0.8, allocations: 8.859 kB / 0.9393 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.488e-05/0.8001, allocations: 43.23 kB / 0.9394 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.8001, allocations: 1.859 kB / 0.9394 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3337/1.134, allocations: 2.854 MB / 0.9422 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003053/1.134, allocations: 222.6 kB / 0.9424 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.202/3.336, allocations: 0 / 0.9424 GB, free: 11.86 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)